Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 46dd017

Browse files
authored
Upgrade dkan to 1.15 (#501)
* Upgrade dkan core to 1.15 * Updates default * Re-runs ahoy build post-build * Adds cmd-proxy to rebuild steps * One more remake * Reads site * Add version info to the .info files
1 parent 2c7562a commit 46dd017

501 files changed

Lines changed: 22054 additions & 11003 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ahoy/site/build.ahoy.yml

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,19 @@ commands:
3434
remake:
3535
usage: Rebuild all the dkan projects from the build.make file.
3636
cmd: |
37-
set -e
38-
AHOY_CMD_PROXY=''
3937
DIRNAME=${PWD##*/}
4038
# IF this is dkan_starter
4139
if [[ "$DIRNAME" == "dkan_starter" ]]; then
4240
# Building in a new directory
4341
# drush make is stupid, delete docroot_new just in case
44-
rm -rf docroot_new
42+
ahoy cmd-proxy rm -rf docroot_new
4543
ahoy drush -y make build.make --no-recursion --no-cache --verbose docroot_new
46-
rm -rf docroot
47-
mv docroot_new docroot
44+
ahoy cmd-proxy rm -rf docroot
45+
ahoy cmd-proxy mv docroot_new docroot
4846
# Move dkan folder from docroot/profiles to base folder
49-
mv dkan dkan_old
50-
mv docroot/profiles/dkan ./
51-
ln -s ../../dkan docroot/profiles/dkan
52-
rm -rf dkan_old
47+
ahoy cmd-proxy mv "dkan dkan_old; mv docroot/profiles/dkan ./"
48+
ahoy cmd-proxy ln "-s ../../dkan docroot/profiles/dkan"
49+
ahoy cmd-proxy rm "-rf dkan_old"
5350
# No recursive prevents dkan build to happen. Run it now from dkan remake.
5451
ahoy dkan remake
5552
fi
@@ -125,35 +122,35 @@ commands:
125122
usage: Runs (what used to be buildmanager) post build commands.
126123
cmd: |
127124
# Setup a folder for contrib modules and themes.
128-
mkdir -p docroot/sites/all/modules/contrib
129-
mkdir -p docroot/sites/all/themes/contrib
125+
ahoy cmd-proxy "mkdir -p docroot/sites/all/modules/contrib"
126+
ahoy cmd-proxy "mkdir -p docroot/sites/all/themes/contrib"
130127
# Replace the default .htaccess file with our own that includes a working non-www to www example for acquia.
131128
if [ -f config/.htaccess ]; then
132-
rm -rf docroot/.htaccess
133-
ln -s ../config/.htaccess docroot/.htaccess
129+
ahoy cmd-proxy "rm -rf docroot/.htaccess"
130+
ahoy cmd-proxy "ln -s ../config/.htaccess docroot/.htaccess"
134131
fi
135132
# Replace sites/default with our own sites/default outside of the drupal root.
136-
rm -rf docroot/sites/default;
137-
ln -s ../../assets/sites/default docroot/sites/default
133+
ahoy cmd-proxy "rm -rf docroot/sites/default;"
134+
ahoy cmd-proxy "ln -s ../../assets/sites/default docroot/sites/default"
138135
# Add .htaccess to the files directory if it does not exist.
139136
if [ ! -f docroot/sites/default/files/.htaccess ]; then
140-
ln -s ../../config/files/.htaccess docroot/sites/default/files/.htaccess
137+
ahoy cmd-proxy "ln -s ../../config/files/.htaccess docroot/sites/default/files/.htaccess"
141138
fi
142139
# Clean out any .gitignore files imported from other modules, libraries, and profiles.
143-
find dkan -type f -name .gitignore -exec rm -rf {} \;
144-
find dkan -type d -name .git -exec rm -rf {} \;
145-
find docroot/sites/all -type f -name .gitignore -exec rm -rf {} \;
146-
find docroot/sites/all -type d -name .git -exec rm -rf {} \;
140+
ahoy cmd-proxy "find dkan -type f -name .gitignore -exec rm -rf {} \;"
141+
ahoy cmd-proxy "find dkan -type d -name .git -exec rm -rf {} \;"
142+
ahoy cmd-proxy "find docroot/sites/all -type f -name .gitignore -exec rm -rf {} \;"
143+
ahoy cmd-proxy "find docroot/sites/all -type d -name .git -exec rm -rf {} \;"
147144
# Setup custom modules folder outside of the drupal root.
148-
rm -rf docroot/sites/all/modules/custom
149-
rm -rf docroot/sites/all/modules/data_config
150-
ln -s ../../../../assets/modules/data_config docroot/sites/all/modules/data_config
151-
ln -s ../../../../config/modules/custom docroot/sites/all/modules/custom
152-
ln -s ../../../../config/themes/custom docroot/sites/all/themes/custom
145+
ahoy cmd-proxy "rm -rf docroot/sites/all/modules/custom"
146+
ahoy cmd-proxy "rm -rf docroot/sites/all/modules/data_config"
147+
ahoy cmd-proxy "ln -s ../../../../assets/modules/data_config docroot/sites/all/modules/data_config"
148+
ahoy cmd-proxy "ln -s ../../../../config/modules/custom docroot/sites/all/modules/custom"
149+
ahoy cmd-proxy "ln -s ../../../../config/themes/custom docroot/sites/all/themes/custom"
153150
# Remove README/INSTALL files for security reasons CIVIC-3122
154-
find ./docroot -type f -name "README*" -exec rm -f {} \;
155-
find ./docroot -type f -name "INSTALL*" -exec rm -f {} \;
156-
find ./docroot -type f -name "CHANGELOG*" -exec rm -rf {} \;
151+
ahoy cmd-proxy find ./docroot -type f -name "README*" -exec rm -f {} \;
152+
ahoy cmd-proxy find ./docroot -type f -name "INSTALL*" -exec rm -f {} \;
153+
ahoy cmd-proxy find ./docroot -type f -name "CHANGELOG*" -exec rm -rf {} \;
157154
if [ "$(ahoy custom | grep post-build)" != '' ]
158155
then
159156
ahoy custom post-build

build-dkan.make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ projects:
88
download:
99
type: git
1010
url: https://github.com/GetDKAN/dkan.git
11-
tag: 7.x-1.14.5
11+
tag: 7.x-1.15

config/tests/behat.custom.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
---
2-
default:
3-
suites:
4-
custom:
5-
paths:
6-
- '%paths.base%/../config/tests/features'
7-
contexts:
1+
---
2+
default:
3+
suites:
4+
custom:
5+
paths:
6+
- "%paths.base%/../config/tests/features"
7+
contexts:
88
- CustomContext
99
- FeatureContext
1010
- Drupal\DrupalExtension\Context\MinkContext

config/themes/custom/custom

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../config/themes/custom

dkan/.ahoy/.docker/etc/solr/3.x/elevate.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Otherwise, place it with the other configuration files into the conf/
1616
directory.
1717
18-
See http://wiki.apache.org/solr/QueryElevationComponent for more information.
18+
See https://wiki.apache.org/solr/QueryElevationComponent for more information.
1919
-->
2020

2121
<elevate>

dkan/.ahoy/.docker/etc/solr/3.x/schema.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
or located where the classloader for the Solr webapp can find it.
88
99
For more information, on how to customize this file, please see
10-
http://wiki.apache.org/solr/SchemaXml
10+
https://wiki.apache.org/solr/SchemaXml
1111
-->
1212

1313
<schema name="drupal-4.3-solr-3.x" version="1.3">
@@ -101,7 +101,7 @@
101101

102102
<!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
103103
is a more restricted form of the canonical representation of dateTime
104-
http://www.w3.org/TR/xmlschema-2/#dateTime
104+
https://www.w3.org/TR/xmlschema-2/#dateTime
105105
The trailing "Z" designates UTC time and is mandatory.
106106
Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
107107
All other components are mandatory.
@@ -133,7 +133,7 @@
133133
matching across fields.
134134
135135
For more info on customizing your analyzer chain, please see
136-
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
136+
https://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
137137
-->
138138

139139
<!-- One can also specify an existing Analyzer class that has a
@@ -326,14 +326,14 @@
326326
<fieldType name="location" class="solr.LatLonType" subFieldType="tdouble"/>
327327

328328
<!-- A Geohash is a compact representation of a latitude longitude pair in a single field.
329-
See http://wiki.apache.org/solr/SpatialSearch
329+
See https://wiki.apache.org/solr/SpatialSearch
330330
-->
331331
<fieldtype name="geohash" class="solr.GeoHashField"/>
332332
<!-- End added Solr 3.4+ types -->
333333
</types>
334334

335335
<!-- Following is a dynamic way to include other types, added by other contrib modules -->
336-
<xi:include href="schema_extra_types.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
336+
<xi:include href="schema_extra_types.xml" xmlns:xi="https://www.w3.org/2001/XInclude">
337337
<xi:fallback></xi:fallback>
338338
</xi:include>
339339

@@ -499,7 +499,7 @@
499499
<dynamicField name="zm_*" type="string" indexed="false" stored="true" multiValued="true"/>
500500

501501
<!-- Begin added fields to use features in Solr 3.4+
502-
http://wiki.apache.org/solr/SpatialSearch#geodist_-_The_distance_function -->
502+
https://wiki.apache.org/solr/SpatialSearch#geodist_-_The_distance_function -->
503503
<dynamicField name="points_*" type="point" indexed="true" stored="true" multiValued="false"/>
504504
<dynamicField name="pointm_*" type="point" indexed="true" stored="true" multiValued="true"/>
505505
<dynamicField name="locs_*" type="location" indexed="true" stored="true" multiValued="false"/>
@@ -528,7 +528,7 @@
528528
</fields>
529529

530530
<!-- Following is a dynamic way to include other fields, added by other contrib modules -->
531-
<xi:include href="schema_extra_fields.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
531+
<xi:include href="schema_extra_fields.xml" xmlns:xi="https://www.w3.org/2001/XInclude">
532532
<xi:fallback></xi:fallback>
533533
</xi:include>
534534

0 commit comments

Comments
 (0)