Skip to content

fix: deduplicate named overrides when merging feature fragments#139

Merged
mlorenzofr merged 1 commit into
validatedpatterns:mainfrom
minmzzhang:duplicated-entra-id
May 26, 2026
Merged

fix: deduplicate named overrides when merging feature fragments#139
mlorenzofr merged 1 commit into
validatedpatterns:mainfrom
minmzzhang:duplicated-entra-id

Conversation

@minmzzhang
Copy link
Copy Markdown
Collaborator

When combining supply-chain and entra-id features, the entra-id merge_into_applications produced duplicate rhtas.zeroTrust.email.issuer entries because list merging blindly appended. Switch to upsert semantics for "named" lists (lists of dicts with a 'name' key) so that later fragments replace existing entries instead of duplicating them. Also add duplicate-override validation in validate_output().

When combining supply-chain and entra-id features, the entra-id
merge_into_applications produced duplicate rhtas.zeroTrust.email.issuer
entries because list merging blindly appended. Switch to upsert
semantics for "named" lists (lists of dicts with a 'name' key) so
that later fragments replace existing entries instead of duplicating
them. Also add duplicate-override validation in validate_output().

Signed-off-by: Min Zhang <minzhang@redhat.com>
Copy link
Copy Markdown
Collaborator

@sabre1041 sabre1041 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Collaborator

@mlorenzofr mlorenzofr left a comment

Choose a reason for hiding this comment

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

LGTM

@mlorenzofr mlorenzofr merged commit 89edf48 into validatedpatterns:main May 26, 2026
3 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.

Duplicate rhtas.zeroTrust.email.issuer generated with supply-chain,entra-id option

3 participants