Currently the config provided by this module adds some unused values like form_build_id, form_token, ...
Also cron_last_run is a value that should not be stored in config, but state is a better place for this.
Third, the config schema is currently incorrect and the module uses some dynamic config properties.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 2993576-6.patch | 5.73 KB | jeroent |
| #3 | 2993576-3-move-cron-last-run.patch | 3.04 KB | temkin |
Issue fork db_maintenance-2993576
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
temkin commentedLooks like State API is a better fit for that - https://www.drupal.org/docs/8/api/state-api/overview
I'll try to contribute a patch for that if time permits.
Comment #3
temkin commentedPatch attached.
Comment #4
jeroentI'm not really a fan of this ConfigHandler class, but since it exists, people could extend or use this in their own custom codes. Making this a BC break.
So the change with the least disruption would be to replace the config service with the state service in those 2 methods.
Comment #5
jeroentAlso, this probably needs an update hook to remove this unused config value for users who have this module currently installed.
Comment #6
jeroentIt looks like there are some more problems with the current config. Updated the IS.
Patch attached removes the unused config values like form_build_id_form_token, .... The config schema is updated so table_list now is also recognized by the config manager.
And I provided an upgrade path to fix config for existing sites.
Comment #7
thejimbirch commentedThe patch applies cleanly, and config defaults for all the options in the settings.
Not setting as RTBC because I didn't test the update hook. I applied patch on a new installation.
Thanks!
Comment #8
orkutmuratyilmazHello all,
I've tried the patch #6 on 3 different installations and it worked so smooth. Thank you @JeroenT for the patch.
Also, @thejimbirch, I've tried running
drush updbtoo. They worked well. So I'm setting this issue as RTBC.Best,
Orkut
Comment #9
adamcadot commentedThe patch does not apply to the latest version of the module.
Comment #10
orkutmuratyilmazComment #13
orkutmuratyilmaz@adamcadot can you check the latest 3.0.x-dev? I'm going to change the status of the issue as fixed, if it is okay.
Comment #14
adamcadot commentedConfig exports as expected, and the update hook works without error.
Comment #15
orkutmuratyilmaz@adamcot, thanks for the testing and validating too:)
Comment #17
adamcadot commented@orkutmuratyilmaz Can we get this into a new RC?
Comment #18
orkutmuratyilmazNew RC is released, thanks for reminding.
Comment #19
adamcadot commentedCheers, thanks for cleaning up these multi-year-long issues!