Problem/Motivation
Follow-up from #2575105: Use cache collector for state, these are only requested on container build, so don't need to go into state which is more for frequently accessed things.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3437162-nr-bot.txt | 90 bytes | needs-review-queue-bot |
Issue fork drupal-3437162
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:
- 3437162-move-twigdebug-keyvalue
changes, plain diff MR !7299
Comments
Comment #4
plopescTwig debug and related development toggles from "Development settings" page moved to raw key value storage as part of the MR.
Comment #5
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #6
plopescConflicts resolved and tests are green again. Back to NR.
Comment #7
smustgrave commentedSo tested this one out by applying the MR locally and still using the new development setting for debugging
From what I can tell everything remained the same.
Refactoring appears fine to me.
Comment #8
berdirThanks for working on this.
The update function should also delete those keys then from state.
Not sure if we should do a change record just in case someone wrote some custom code related to these keys or used drush sset in their workflow.
Comment #9
plopescThank you for your feedback.
Obsolete state keys are removed as part of the post_update hook.
Created change record draft: https://www.drupal.org/node/3438802
Comment #10
smustgrave commentedDeletion from state has been added
Reviewed the CR and it reads well. Always get a huge thank you for adding before/after examples
Comment #14
catchCommitted/pushed to 11.x and cherry-picked to 10.3.x, thanks! I have to resolve a couple of merge conflicts on the 10.3.x cherry-pick. Straightforward enough but let's hope they actually were (had to add an extra commit for one thing already).
Comment #17
moshe weitzman commentedI wish Drupal would make an API for stuff like this. Then callers like
drush twig:debugwould be isolated from implementation changes. Raw key-value is not enough of an API.