Problem/Motivation
I get this warning when installing the module:
[warning] No schema for cache_tags_simplify.settings. These errors mean there is configuration that does not comply with its schema. This is not a fatal error, but it is recommended to fix these issues. For more information on configuration schemas, check out <a href="https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata">the documentation</a>.
Steps to reproduce
drush en cache_tags_simplify
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork cache_tags_simplify-3612098
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 #4
dkmishra commentedThis MR !7 includes changes to three files:
config/schema/cache_tags_simplify.schema.yml— Adds the missing schema forcache_tags_simplify.settings.config/install/cache_tags_simplify.settings.yml— Changes the default value fromfalseto0so new installations match the updated schema type. The README also shows examples using values such as1638, somax_cache_tags_countshould be an integer rather thanfalse.cache_tags_simplify.install— Addshook_update_10001()to cast the stored configuration value fromfalseto0for existing sites as well, not just new installations. Without this update, sites that already have the module enabled would continue to faildrush config:inspectafter upgrading.Please review.
Comment #5
prudloff commentedI tested the update hook manually and it works correctly.
Also confirmed that using 0 as the default value does not break the logic in CacheTagsSimplifySubscriber.