Skip to content

fix: Duplicated config items issue - #2954

Merged
timcassell merged 1 commit into
dotnet:masterfrom
filzrev:fix-duplicated-config-items
Jan 4, 2026
Merged

timcassell merged 1 commit into
dotnet:masterfrom
filzrev:fix-duplicated-config-items

Conversation

@filzrev

@filzrev filzrev commented Jan 4, 2026 •

Copy link
Copy Markdown
Contributor

This PR intended to fix duplicated list items issue when multiple configs are merged with ConfigUnionRule.Union.

When creating ImmutableConfig instance. It's expected contains unique items.
But it seems not unique when multiple config is merged with union rule or manually add items with Add* method.

What's changed in this PR

  1. Add AddRangeDistinct helper method to Extensions/CommonExtensions.cs
  2. Replace AddRange to AddRangeDistinct when union config items.
  3. Implement IEquatable<T> and sealed modifier to ColumnHidingByNameRule/ColumnHidingByNameRule

@timcassell timcassell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks

@timcassell
timcassell merged commit 2df50ad into dotnet:master Jan 4, 2026
11 checks passed
@timcassell timcassell added this to the v0.16.0 milestone Jan 4, 2026
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.

2 participants