Problem/Motivation

The module currently does not provide default configuration values for orphan cleanup settings during installation.

Without default configuration, cleanup-related settings may be missing until manually configured, leading to inconsistent behavior and incomplete configuration exports.

Steps to reproduce

  1. Install the Block Content Explorer module on a fresh Drupal site
  2. Inspect the block_content_explorer.settings configuration object
  3. Observe that orphan cleanup configuration values are not initialized by default

Proposed resolution

  • Create config/install/block_content_explorer.settings.yml
  • Add default values for orphan cleanup configuration settings
  • Set:
    • auto_cleanup_enabled: true
    • cleanup_interval_days: 15
    • max_blocks_per_cron: 50
  • Ensure configuration is automatically imported during module installation

Remaining tasks

  • Create default configuration file
  • Add orphan cleanup default values
  • Test fresh module installation
  • Verify configuration values using drush cget

User interface changes

None.

API changes

Adds default configuration for:

block_content_explorer.settings

Data model changes

None.

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

mohnish s. yadav created an issue. See original summary.

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

oshi02’s picture

Status: Active » Needs review

mohnish s. yadav’s picture

Status: Needs review » Fixed

Changes made to config/install/block_content_explorer.settings.yml.

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.

Status: Fixed » Closed (fixed)

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