-
Notifications
You must be signed in to change notification settings - Fork 10
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
USAGOV-2010-drupal-10.3-upgrade: upgrade to 10.3 #2029
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this out and I'm running into some things:
- First, I merged the latest from dev in, and since someone else had added a module on dev, I'm getting a warning that my composer.lock file is out of date. It's probably just because the hash doesn't match.
bin/composer update
will fix that and, based on what happened for me, bring along a few point version updates. - Three of the patches we specify don't apply! You'll need to find out why. I have high hopes that at least two of them don't apply because they've been merged into core. These are the patches that failed:
- https://www.drupal.org/files/issues/2024-06-06/2118743-251.patch (Show views theme suggestions in twig debug)
- https://www.drupal.org/files/issues/2023-10-26/add-taxonomy-revision-ui-2936995-58.patch (Add a taxonomy revision UI)
- ./patches/drupal/taxonomy_revision_log.patch (Enable taxonomy revision log message)
- Once installed, Drupal fails with this error on any request, drush command, etc:
"NOTICE: PHP message: PHP Fatal error: Cannot redeclare Drupal\taxonomy\Entity\Vocabulary::$new_revision in /var/www/web/core/modules/taxonomy/src/Entity/Vocabulary.php on line 121"
That last one is probably related to the taxonomy patch. I don't know whether it could have applied partially, or if we have something else intervening. Mike D added the revision UI as a patch so we wouldn't have to wait until we upgraded to 10.3 to have it.
I don't know why I get the fatal error and you didn't? My process was:
- check out this branch
docker compose down
docker system prune --all
rm -r vendor
bin/init
docker compose up
- Observe fatal errors, start looking more carefully at errors.
…drupal-10.3-upgrade
…chLevel to avoid stalling, added field_group module to fix drupal error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working much better. I still see these things to fix:
- The "views theme suggestions" patch doesn't apply. Needs a little investigation.
- After I ran
drush updatedb
,drush cim
showed a lot of config changes to apply. It continued to show them (or most of them) after multiple runs ofdrush cim
. It looks like a lot of them are due to a change in conventions where we now use0
,1
, and the empty string instead offalse
,true
, andnull
. We should verify what the changes are and, I think, include updated config/sync yml with this update. - I see a couple of deprecated modules. We can go forward and address them after.
I'm going to make separate tickets for these so we can split the work up if that makes sense.
composer.json
Outdated
"Show views theme suggestions in twig debug": "https://www.drupal.org/files/issues/2024-06-06/2118743-251.patch", | ||
"Add a taxonomy revision UI": "https://www.drupal.org/files/issues/2023-10-26/add-taxonomy-revision-ui-2936995-58.patch", | ||
"Enable taxonomy revision log message": "./patches/drupal/taxonomy_revision_log.patch" | ||
"Show views theme suggestions in twig debug": "https://www.drupal.org/files/issues/2024-06-06/2118743-251.patch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch doesn't apply either. I looked up the corresponding issue and the last couple of comments imply that there isn't a Drupal 10.3-compatible version (see last comment). We can do without it, but I would like to look into this a little more.
…ws theme template suggestions.
USAGOV-2045 - Configuration Sync for Drupal 10.3 Upgrade
…l-10.3-view-suggestions
…work with drupal 10.3
…e giving us trouble
I've started reviewing (by running it locally and doing some editing, running tome, etc.) and it's looking good so far. You'll note I ran the code scans; the two Medium vulnerabilities that were flagged are not new and we're already tracking them. (I've already dismissed the dependabot alert for one because it only applies to Windows systems.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just two small change requests -- see comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My dev site keeps wanting to revert this -- please check and re-export if yours does too.
Jira Task
https://cm-jira.usa.gov/browse/USAGOV-2010
Description
Upgrades drupal core and related modules to Drupal 10.3
Type of Changes
Testing Instructions
Change Requirements
Validation Steps
Security Review
Reviewer Reminders
Post PR Approval Instructions
Follow these steps as soon as you merge the new changes.
Review in Test
and add a comment. State whether the change is already visible on cms-dev.usa.gov and beta-dev.usa.gov, or if the deployment is still in process.