Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-8284: Platform V3 updates #319

Merged
merged 44 commits into from
Nov 7, 2023
Merged

Conversation

juho-lehmonen
Copy link
Contributor

@juho-lehmonen juho-lehmonen commented Oct 11, 2023

UHF-8284

What was done

Updates all shared modules, project base and project tools to use Platform V3.

How to install

  • Start from develop (make sure it's up-to-date) and install content to test with:
    • git checkout develop
    • make new
  • Generate basic test content and pull in integration data:
    • drush en paatokset_test_content -y;drush pmu paatokset_test_content -y
    • drush migrate-import ahjo_decisionmakers:all;drush migrate-import ahjo_decisionmakers:all_sv
    • drush migrate-import ahjo_trustees:all;drush migrate-import ahjo_trustees:all_sv
    • drush migrate-import ahjo_meetings:latest;drush migrate-import ahjo_decisions:latest
    • drush migrate-import paatokset_meeting_videos --update
  • Run TPR migrations so we can check how the upgrade path workrs:
    • drush migrate-import tpr_unit --limit=100;drush migrate-import tpr_service --limit=100
  • Fetch specific cases and decisions to test with:
drush ap:update organization U3212002040VH1 -v
drush ap:update cases hel-2014-000497 -v
drush ap:update cases hel-2016-012511 -v
drush ap:update decisions b4b8e27f-9763-4fd0-810c-96ada6c1c4b7 -v
drush ap:update decisions 2b1c3a6c-f0f2-411e-b6f0-23b56cd0e0ea -v
drush ap:update decisions afe79ec8-328f-414d-85c6-35de280ef0a9 -v
drush ap:update decisions 0e036367-174a-47fb-8ac5-37f923981c16 -v
drush ap:update decisions ffe61d01-9ecb-47b7-a5b3-4eaf1ebe598d -v
drush ap:update decisions fb53d9ca-efaa-4aa2-b417-fe09efeea58a -v
drush ap:update decisions 5940cd98-f540-40b1-947f-c76ff233b93e -v
drush ap:update decisions 20af8888-1394-4c84-96ac-43f78ff8ff4c -v

Install Platform V3 upgrades:

  • Read the platform v3 update documentation: https://github.com/City-of-Helsinki/drupal-helfi-platform-config/blob/3.x/documentation/update.md#update-instructions
  • Checkout this branch: git checkout UHF-8284-platform-v3-updates
    • If you get unable to unlink old ... errors on theme assets or setting.php files, you might need to run some variation of: chmod ug+w public/sites/default or chown, chgrp commands on them.
  • Run composer install and then make shell
  • Run drush cr, drush helfi:platform-config:update-database and re-import configuration drush cim -y
    • If the import fails because of field_hero_design or field_dm_org_above , run: drush config-delete field.storage.paragraph.field_hero_design;drush config-delete field.storage.node.field_dm_org_above;drush cr;drush cim -y;drush config-delete field.storage.paragraph.field_banner_design -y
    • If the configuration import fails for some other reason, run drush cr and drush cim -y
  • If you run drush cex (answer no to actually modifying the files), you'll see some configs are still left unimported. Go to https://helsinki-paatokset.docker.so/fi/admin/config/development/configuration/ignore and only leave these two lines:
system.site:page.front
easy_breadcrumb.settings:home_segment_title

How to test

@juho-lehmonen juho-lehmonen force-pushed the UHF-8284-platform-v3-updates branch from d0e06d8 to 45a5eef Compare October 24, 2023 11:52
@juho-lehmonen juho-lehmonen marked this pull request as ready for review October 26, 2023 07:40
@hyrsky hyrsky self-requested a review October 26, 2023 07:51
composer.lock Outdated Show resolved Hide resolved
conf/cmi/core.extension.yml Outdated Show resolved Hide resolved
@juho-lehmonen juho-lehmonen changed the base branch from develop to dev November 2, 2023 08:51
@juho-lehmonen juho-lehmonen merged commit 1f0b8ef into dev Nov 7, 2023
5 of 8 checks passed
@hyrsky hyrsky mentioned this pull request Nov 17, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants