-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Group-Demo: Group type consolidation (#2700)
* PGOV-276 POC: Copy Program into Bureau * PGOV-276 Migrate Program into Bureau/Office. Turn off group sync on Displayed In * Mark bureau/office in default page * PGOV-1033 Migration of Advisory Group * Update drush command to migrate Project. Update Twig. * Update group search result twig. Update revision time stamp * Update teaser display * Configure the Base Group type * Update custom code for Base Group * Update search index and twig * Update base group twig * Allow the migrate_group command to resume * Fix group name bug in drush command * Add command to delete groups * Iterate the usage array to update all fields * Comment out test code * Output field updates * Update message format * Replace referenced group and add unset() * Migrate a single group * Migrate group one by one * Don't print usage migaration details * Truncate more group path. Add usage migrate output. * Show base groups in block visibility settings * Update views before deleting advisory_group * Prepare views to allow group deletion * Update shell script * Fix migrate group Drush command and script * Update media field on group. Update views to include base group. * Remove time command * Fix name of field_certified_advisory_body * Add missing field Neighborhood * Update My Grouops view * Add combined group type filter to My Groups * Update view admin_groups * Migrate rabbit hole related field values. * Update views: group_child_group, group_geo_map, groups_updated_recently * Update view manage_group_subgroups * Use state variable portland.skip_group_sync in portland_groups.module * Migrate field_bureau of Council Document * Fix admin_groups, projects_indx, sitewide_groups_index views * Copy group member and content * Patch group module * Delete group content * Reduce group_content batch count * Fix group roles * Track Media usage as source. * Fix media revision * Comment out lines in migrate_group * Migrate redirects (legacy path) * Fix error in setRedirect * Update Group Creator permissions * Add "terminus self:plugin:reload" * Fix build error * Remove portland:create_group_types * Update conditional fields for Base Group * Update Group Type term ID after syncing with Live * Add the Service Area field * Update composer.lock after merging * Remove field_migration_status after merging * Update composer.lock after merging * Update Base Group display configs * Try to update search_api_solr * Update group type filter in the view "Groups by Term" * Config translation for Base Group * Fix group test * Update translation config for Base Group * Update composer.lock after merging * Restore stopwords_und and synonyms_und * Remove "Base group: " from group full template * Turn on maintenance mode in the migrate_group script * Update the group type filter in the view "views.view.displayed_in.yml : entity_reference_council_document_department" to migra * Turn on Twig debugging to debug base group full display * Turn off Twig debugging and fix base group templates for fields in Project * Remove debugging text in Bureau/office twig * Update admin-group test * Revert group role tag ID in ally.js. Will update the test after group migration. * Update tag ID for group admin fields section title. * Fix text in admin-group.js test * Add unset in group migration * Add GC * Add more unset() statements * Add migration steps * Small fixes to group migration output * Fix permission on Group Subtype field * Increase Base Group title length to 60 characters * Revert search_api_solr to 4.3.3 to match Dev * Disable breadcrumbs based on Site Menu. Add custom breadcrumbs in easy_breadcrumb * Use custom code to alter breadcrumb for Park Facilities * Patch easy_breadcrumb to get link to Home * Disable menu_breadcrumb * Filter HTML on rendered_item. Update easy_breadcrumb custom path.
- Loading branch information
Showing
361 changed files
with
15,772 additions
and
3,881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#! /bin/bash | ||
|
||
# Exit on error | ||
set -e | ||
# Turn off warning that the site is in GIT mode | ||
export TERMINUS_HIDE_GIT_MODE_WARNING=1 | ||
|
||
# Skip the custom code to sync group content. See portland_groups.module | ||
terminus drush portlandor.$1 -- state:set portland.skip_group_sync 1 | ||
|
||
# Turn on maintenance mode | ||
terminus drush portlandor.$1 -- state:set system.maintenance_mode 1 --input-format=integer | ||
|
||
# Turn off email notification on Live | ||
if [[ $1 == "live" ]] | ||
then | ||
terminus drush portlandor.$1 -- config:set mailsystem.settings defaults.sender 'test_mail_collector' -y | ||
fi | ||
|
||
# create taxonomy terms | ||
# terminus drush portlandor.$1 -- cr | ||
# terminus drush portlandor.$1 -- cim -y | ||
# terminus drush portlandor.$1 -- portland:create_group_types | ||
|
||
# advisory_group | ||
# terminus drush portlandor.$1 -- portland:list_group_by_type advisory_group > ids_advisory_group.log | ||
for word in $(cat ids_advisory_group.log | grep -v "^$"); do terminus drush portlandor.$1 -- portland:migrate_group $word; done | ||
|
||
# # program | ||
# terminus drush portlandor.$1 -- portland:list_group_by_type program > ids_program.log | ||
# for word in $(cat ids_program.log | grep -v "^$"); do terminus drush portlandor.$1 -- portland:migrate_group $word; done | ||
|
||
# # project | ||
# terminus drush portlandor.$1 -- portland:list_group_by_type project > ids_project.log | ||
# for word in $(cat ids_project.log | grep -v "^$"); do terminus drush portlandor.$1 -- portland:migrate_group $word; done | ||
|
||
# # bureau_office | ||
# terminus drush portlandor.$1 -- portland:list_group_by_type bureau_office > ids_bureau_office.log | ||
# for word in $(cat ids_bureau_office.log | grep -v "^$"); do terminus drush portlandor.$1 -- portland:migrate_group $word; done | ||
|
||
# Delete groups: | ||
# time terminus drush portlandor.group-demo -- portland:delete_groups advisory_group | ||
# time terminus drush portlandor.group-demo -- portland:delete_groups project | ||
# time terminus drush portlandor.group-demo -- portland:delete_groups program | ||
# time terminus drush portlandor.group-demo -- portland:delete_groups bureau_office | ||
|
||
# # re-index | ||
# terminus drush portlandor.$1 -- sapi-r | ||
# terminus drush portlandor.$1 -- sapi-i | ||
|
||
# retore mailer on Live | ||
if [[ $1 == "live" ]] | ||
then | ||
terminus drush portlandor.$1 -- config:set mailsystem.settings defaults.sender 'sendgrid_integration' -y | ||
fi | ||
|
||
# terminus drush portlandor.$1 -- state:delete portland.skip_group_sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
# À => A | ||
"\u00C0" => "A" | ||
# Á => A | ||
"\u00C1" => "A" | ||
# Â => A | ||
"\u00C2" => "A" | ||
# Ã => A | ||
"\u00C3" => "A" | ||
# Ä => A | ||
"\u00C4" => "A" | ||
# Å => A | ||
"\u00C5" => "A" | ||
# Ą => A | ||
"\u0104" => "A" | ||
# Æ => AE | ||
"\u00C6" => "AE" | ||
# Ç => C | ||
"\u00C7" => "C" | ||
# Ć => C | ||
"\U0106" => "C" | ||
# È => E | ||
"\u00C8" => "E" | ||
# É => E | ||
"\u00C9" => "E" | ||
# Ê => E | ||
"\u00CA" => "E" | ||
# Ë => E | ||
"\u00CB" => "E" | ||
# Ę => E | ||
"\u0118" => "E" | ||
# Ì => I | ||
"\u00CC" => "I" | ||
# Í => I | ||
"\u00CD" => "I" | ||
# Î => I | ||
"\u00CE" => "I" | ||
# Ï => I | ||
"\u00CF" => "I" | ||
# IJ => IJ | ||
"\u0132" => "IJ" | ||
# Ð => D | ||
"\u00D0" => "D" | ||
# Ł => L | ||
"\u0141" => "L" | ||
# Ñ => N | ||
"\u00D1" => "N" | ||
# Ń => N | ||
"\u0143" => "N" | ||
# Ò => O | ||
"\u00D2" => "O" | ||
# Ó => O | ||
"\u00D3" => "O" | ||
# Ô => O | ||
"\u00D4" => "O" | ||
# Õ => O | ||
"\u00D5" => "O" | ||
# Ö => O | ||
"\u00D6" => "O" | ||
# Ø => O | ||
"\u00D8" => "O" | ||
# Œ => OE | ||
"\u0152" => "OE" | ||
# Þ | ||
"\u00DE" => "TH" | ||
# Ù => U | ||
"\u00D9" => "U" | ||
# Ú => U | ||
"\u00DA" => "U" | ||
# Û => U | ||
"\u00DB" => "U" | ||
# Ü => U | ||
"\u00DC" => "U" | ||
# Ý => Y | ||
"\u00DD" => "Y" | ||
# Ÿ => Y | ||
"\u0178" => "Y" | ||
# à => a | ||
"\u00E0" => "a" | ||
# á => a | ||
"\u00E1" => "a" | ||
# â => a | ||
"\u00E2" => "a" | ||
# ã => a | ||
"\u00E3" => "a" | ||
# ä => a | ||
"\u00E4" => "a" | ||
# å => a | ||
"\u00E5" => "a" | ||
# æ => ae | ||
"\u00E6" => "ae" | ||
# ç => c | ||
"\u00E7" => "c" | ||
# è => e | ||
"\u00E8" => "e" | ||
# é => e | ||
"\u00E9" => "e" | ||
# ê => e | ||
"\u00EA" => "e" | ||
# ë => e | ||
"\u00EB" => "e" | ||
# ì => i | ||
"\u00EC" => "i" | ||
# í => i | ||
"\u00ED" => "i" | ||
# î => i | ||
"\u00EE" => "i" | ||
# ï => i | ||
"\u00EF" => "i" | ||
# ij => ij | ||
"\u0133" => "ij" | ||
# ð => d | ||
"\u00F0" => "d" | ||
# ñ => n | ||
"\u00F1" => "n" | ||
# ò => o | ||
"\u00F2" => "o" | ||
# ó => o | ||
"\u00F3" => "o" | ||
# ô => o | ||
"\u00F4" => "o" | ||
# õ => o | ||
"\u00F5" => "o" | ||
# ö => o | ||
"\u00F6" => "o" | ||
# ø => o | ||
"\u00F8" => "o" | ||
# œ => oe | ||
"\u0153" => "oe" | ||
# ß => ss | ||
"\u00DF" => "ss" | ||
# Ś => S | ||
"\u015a" => "S" | ||
# þ => th | ||
"\u00FE" => "th" | ||
# ù => u | ||
"\u00F9" => "u" | ||
# ú => u | ||
"\u00FA" => "u" | ||
# û => u | ||
"\u00FB" => "u" | ||
# ü => u | ||
"\u00FC" => "u" | ||
# ý => y | ||
"\u00FD" => "y" | ||
# ÿ => y | ||
"\u00FF" => "y" | ||
# Ź => Z | ||
"\u0179" => "Z" | ||
# Ż => Z | ||
"\u017b" => "Z" | ||
# ff => ff | ||
"\uFB00" => "ff" | ||
# fi => fi | ||
"\uFB01" => "fi" | ||
# fl => fl | ||
"\uFB02" => "fl" | ||
# ffi => ffi | ||
"\uFB03" => "ffi" | ||
# ffl => ffl | ||
"\uFB04" => "ffl" | ||
# ſt => st | ||
"\uFB05" => "st" | ||
# st => st | ||
"\uFB06" => "st" | ||
# Māori macrons. | ||
# Ā => A | ||
"\u0100" => "A" | ||
# Ē => E | ||
"\u0112" => "E" | ||
# Ī => I | ||
"\u012A" => "I" | ||
# Ō => O | ||
"\u014C" => "O" | ||
# Ū => U | ||
"\u016A" => "U" | ||
# ā => a | ||
"\u0101" => "a" | ||
# ē => e | ||
"\u0113" => "e" | ||
# ī => i | ||
"\u012B" => "i" | ||
# ō => o | ||
"\u014D" => "o" | ||
# ū => u | ||
"\u016B" => "u" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +0,0 @@ | ||
#----------------------------------------------------------------------- | ||
# This file blocks words from being operated on by the stemmer and word delimiter. | ||
& | ||
< | ||
> | ||
' | ||
" | ||
parking | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.