Skip to content

Ignores taxonomy vocabulary configuration during configuration imports - #822

Merged
vincent-gao merged 3 commits into
developfrom
fix/ignore-taxonomy-vocabulary-config
Sep 16, 2026
Merged

vincent-gao merged 3 commits into
developfrom
fix/ignore-taxonomy-vocabulary-config

Conversation

@vincent-gao

Copy link
Copy Markdown
Contributor

No description provided.

Ignores taxonomy vocabulary configuration during configuration imports
@vincent-gao vincent-gao changed the title Ignores taxonomy vocabulary config Ignores taxonomy vocabulary configuration during configuration imports Sep 7, 2026
@vincent-gao vincent-gao self-assigned this Sep 7, 2026
@vincent-gao
vincent-gao requested a balanced review from Copilot September 7, 2026 05:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A subsequent configuration import can overwrite the active-only ignore rule, disabling it for future imports.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds taxonomy vocabulary configuration to Config Ignore for fresh and existing installations.

Changes:

  • Adds a reusable configuration-ignore operation.
  • Runs it during installation and update hook 10048.
File summaries
File Description
tide_core.install Invokes the ignore operation during install and update.
src/TideCoreOperation.php Adds the taxonomy vocabulary ignore rule.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/TideCoreOperation.php Outdated
Comment on lines +352 to +359
$config = \Drupal::configFactory()->getEditable('config_ignore.settings');
$ignored_config_entities = (array) $config->get('ignored_config_entities');

if (!in_array('taxonomy.vocabulary.*', $ignored_config_entities, TRUE)) {
$ignored_config_entities[] = 'taxonomy.vocabulary.*';
$config
->set('ignored_config_entities', $ignored_config_entities)
->save();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well played Copilot!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The runtime hook correctly prevents configuration imports from removing the taxonomy vocabulary ignore rule.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

Use hook_config_ignore_settings_alter() to ensure importing config_ignore.settings cannot remove the taxonomy.vocabulary.* ignore rule.

Remove the configuration helper and its install and update hooks.
@vincent-gao
vincent-gao force-pushed the fix/ignore-taxonomy-vocabulary-config branch from f73345d to 3ce5c6b Compare September 7, 2026 22:50

@anthony-malkoun anthony-malkoun left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot made a good call!

@vincent-gao

Copy link
Copy Markdown
Contributor Author

Copilot made a good call!

🤖 🎉

@vincent-gao
vincent-gao merged commit 33792cd into develop Sep 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants