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

Command icon 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

prudloff created an issue. See original summary.

dkmishra made their first commit to this issue’s fork.

dkmishra’s picture

Version: 1.1.0 » 1.1.x-dev
Status: Active » Needs review

This MR !7 includes changes to three files:

  1. config/schema/cache_tags_simplify.schema.yml — Adds the missing schema for cache_tags_simplify.settings.
  2. config/install/cache_tags_simplify.settings.yml — Changes the default value from false to 0 so new installations match the updated schema type. The README also shows examples using values such as 1638, so max_cache_tags_count should be an integer rather than false.
  3. cache_tags_simplify.install — Adds hook_update_10001() to cast the stored configuration value from false to 0 for existing sites as well, not just new installations. Without this update, sites that already have the module enabled would continue to fail drush config:inspect after upgrading.

Please review.

prudloff’s picture

Status: Needs review » Fixed

I 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.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • prudloff committed 1b33720d on 1.1.x authored by dkmishra
    fix: #3612098 No schema for cache_tags_simplify.settings
    
    By: prudloff...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.