Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
See #2594425-137: Add the option in system menu block to "Expand all items in this tree"
This issue broke the upgrade test for DER 1.x to 2.x https://www.drupal.org/pift-ci-job/1147416.
Proposed resolution
Add block module check or move the post-update hook to block module
Remaining tasks
- Finalize the approach.
- Add more upgrade path test.
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
None
Comment | File | Size | Author |
---|---|---|---|
#15 | 3020718-15.patch | 34.65 KB | jibran |
Comments
Comment #2
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedGood catch, I thought "block" may have been one of those required modules like "user" that core doesn't work without, but installing from "testing", it is indeed disabled.
I'd vote to keep the hook in system, so the name of the function does't have to change for folks who may have already started using the patch.
I suppose testing this would involve creating a new DB fixture, probably from the "testing" profile, and simply running running updb against it. That would probably help catch dependency issues in the future, so worth doing IMO.
Comment #3
jibranDER install minimum so I think minimum DB dump should work.
Comment #4
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedMinimal contains block as a dependency:
Comment #5
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #7
jibranWell that is surprising because I generated DER DB from Minimal.EDIT: I lied it was indeed created from testing profile. Please ignore my holiday mind.
Comment #8
jibranThanks, for the patch and tests.
Comment #9
Wim Leers🤓
Comment #10
jibranThanks, 😂
Comment #11
alexpottIs this really built on 8.0.0?
Comment #12
jibranSeems like 8.1.0
Comment #13
jibranChanged the DB name.
Comment #14
alexpottWell we jump from system_update_8014 to system_update_8200 and I think system_update_8014() was prior to 8.0.0 so ... but I think maybe we should have a more up-to-date db. something like 8.6.0 instead.
Comment #15
jibranHere we go. I excluded DB from interdiff.
Comment #16
shahzad-anwar CreditAttribution: shahzad-anwar as a volunteer and at Devtron Genesis commentedAs #14 has been addressed, so setting it back to RTBC.
Comment #17
alexpottCommitted 48eb105 and pushed to 8.7.x. Thanks!
Comment #19
jibranThanks, DER is green again https://www.drupal.org/pift-ci-job/1159989.