Skip to content

fix: match excludedConfig against the config name, not the escaped file name - #241

Merged
boazpoolman merged 2 commits into
pluginpal:masterfrom
PaulRichez:fix/excluded-config-names
Nov 9, 2026
Merged

boazpoolman merged 2 commits into
pluginpal:masterfrom
PaulRichez:fix/excluded-config-names

Conversation

@PaulRichez

@PaulRichez PaulRichez commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What does it do?

In getAllConfigFromFiles, the excludedConfig check now uses the config name (formattedName, with :: and /), like every other place in the plugin.

Why is it needed?

An exclusion on a name containing : or / only applied to the database side, so the config stayed in the diff as "Only in sync dir". See #240.

How to test it?

Add a content-manager configuration to excludedConfig with the name shown in the admin, e.g. core-store.plugin_content_manager_configuration_content_types::api::article.article, and run config-sync diff: it's no longer listed. (Checked on a Strapi 5.54 app.)

Lint and integration tests pass locally (Node 22).

Note: an exclusion written with the escaped form (##) used to hide the file only; it no longer has an effect. The name to use is the one shown in the admin.

Related issue(s)/PR(s)

@codecov

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (774c79e) to head (7166c56).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #241   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           22        22           
  Branches         3         3           
=========================================
  Hits            22        22           
Flag Coverage Δ
unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@boazpoolman boazpoolman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@boazpoolman
boazpoolman merged commit 43da11b into pluginpal:master Nov 9, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants