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.
This is a sub-task of #1775842: [meta] Convert all variables to state and/or config systems
Comments
Comment #1
vijaycs85Comment #2
alexpottTagging
Comment #3
alexpottNeeds a hook_update_N in system.install.
Comment #4
vijaycs85Here is the update hook
Comment #5
alexpottThe update function description needs works - 80 characters and capitalisation.
Comment #6
vijaycs85Fixed here.
Comment #7
vijaycs85Fixed error in #4.
Comment #8
vijaycs85Fixed error in #4.
Comment #9
vijaycs85Fixed error in #4, sorry for the duplicate comments.
Comment #10
gddIn default.settings.php there are the following variables commented out by default
These should be changed to use the new format for referring to config variables in $conf, which is
$conf[<config_object_name>][<config_variable>]
. So this should becomeComment #11
vijaycs85Fixed default.settings.php
Comment #12
alexpottThere's two missing single quotes... at the end of
system.performance
Comment #13
vijaycs85fixed.
Comment #14
aspilicious CreditAttribution: aspilicious commented#13: 1824778-css_gzip_compression-js_gzip_compression-7.patch queued for re-testing.
Comment #16
pcambraJust rerolling and seeing if the testbot wakes up.
Comment #17
aspilicious CreditAttribution: aspilicious commented#16: 1824778-css_gzip_compression-js_gzip_compression-16.patch queued for re-testing.
Comment #18
Cameron Tod CreditAttribution: Cameron Tod commentedCode looks good to me, pending a retest.
Comment #19
Cameron Tod CreditAttribution: Cameron Tod commented#16: 1824778-css_gzip_compression-js_gzip_compression-16.patch queued for re-testing.
Comment #21
Cameron Tod CreditAttribution: Cameron Tod commentedFixed duplicate update function name.
Comment #22
longwaveIs using both "gzip" and "compression" in the key redundant? Couldn't they just be "gzip.css" and "gzip.js"? Note that "response.gzip" is just that, not "response.gzip_compression".
Comment #23
alexpottI agree with #22
gzip.js
andgzip.css
is concise and meaningful.Comment #24
alexpotthmmm...
Actually this could then become...
Comment #25
longwaveThat, or maybe
Comment #26
alexpottI like the proposal in #25
Comment #27
ACF CreditAttribution: ACF commentedDid a re-roll of the patch but changed the system.performance.yml config file to look like the layout in #25. It meant I had to rename the preprocess variables.
Comment #28
gddThis looks good to me, and I like the new file layout a lot better. Thanks!
Comment #29
gddComment #30
ACF CreditAttribution: ACF commentedJust rerolling for system.install upgrade number hopefully can go back to rtbc.
Comment #31
adammaloneApplies, and looks good from here!
Comment #32
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks.
Comment #33
catchI'm not sure this was entirely OK to convert as is:
- the $conf overrides were mainly useful in the case that you had page_cache_without_database enabled, that's broken at the moment - see #1576322: page_cache_without_database doesn't return cached pages without the database which I've just re-opened, but this patch added to the inability to do that.
- if there's a UI for these and we're going to require CMI access to serve cached pages whatever happens, then they could be removed from settings.php
- should we reverse the extension_load() and the config() calls? - this would save loading the configuration object if it's never going to needed anyway.
Comment #34
vijaycs85Comment #35
alexpott@catch I can't see how the ability to return a cached page without the database is affected by this one. The compression config should not be accessed if we are doing this.
So yep let's remove from settings.php and you're correct that we should swap the extension_load and config calls.
Comment #35.0
alexpottUpdated issue summary.
Comment #36
alexpottOpened #1824778: Convert css_gzip_compression and js_gzip_compression variables to CMI system
Comment #37
jibranIt is #2183075: Tidy up css.gzip and js.gzip configuration. :-) Thanks for the followup @alexpott.