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.
Whilst working on #1464554: Upgrade path for image style configuration I discovered that I created a patch with a critical defect #1669902: Adjust system.performance configuration for new guidelines due to the following code:
function system_update_8017() {
update_variables_to_config('system.site', array(
'cache' => 'cache.page.enabled',
'page_cache_maximum_age' => 'cache.page.max_age',
'page_compression' => 'response.gzip',
'preprocess_css' => 'preprocess.css',
'preprocess_js' => 'preprocess.js',
));
}
We should be updating these variables to the system.performance
config object!!!!
This patch fixes this and includes upgrade path tests for all the system module variables migrated to CMI so far. The patch extends on the excellent work done by @sun in #1464554: Upgrade path for image style configuration.
Comment | File | Size | Author |
---|---|---|---|
#2 | system-config-upgrade-path-1-just-test.patch | 5.74 KB | andypost |
#1 | system-config-upgrade-path-1-just-test.patch | 0 bytes | andypost |
system-config-upgrade-path.patch | 6.29 KB | alexpott | |
Comments
Comment #1
andypostLet's make sure that test detects a problem
Comment #2
andypostAnd again
Comment #4
andypostAwesome patch and it looks like now we have a universal upgrade tests for variables!
Actual fix and a bunch of tests that could be extended.
Comment #5
andypostI've RTBCed a patch #0, skip my patches and no commit credit - my patches just to make sure that fix is right
Comment #6
gddHey nice catch!
Comment #7
chx CreditAttribution: chx commentedComment #8
chx CreditAttribution: chx commentedOh and thanks , #0 is indeed an amazing job.
Comment #9
alexpottSun deserves a big commit credit on this...
Comment #10
webchickWow, great catch. Thanks so much, and also yay critical bug down!
Committed and pushed to 8.x. Credited sun and alexpott, per andypost's request.