Skip to content

Conversation

benmccallum
Copy link

@benmccallum benmccallum commented May 8, 2025

Why this PR?

Closes #534

Visible Changes

For developers using a IFeatureDefinitionProvider that can return multiple FeatureDefinition items with the same Name, as is the case with the built-in Microsoft.FeatureManagement.ConfigurationFeatureDefinitionProvider (which sources from the MS schema and the DotNet schema), FeatureManagement::GetFeatureNamesAsync will no longer return duplicates if a feature is configured multiple times (i.e. in each of those schema).

This will help folks wanting to transition over gracefully, but could be considered a breaking change to current behaviour.

Note: Duplicate feature names in the one schema is already de-duped, as a test I added proved.

@benmccallum benmccallum changed the title Dedupe when returning all feature names from mutiple Dedupe when returning all feature names May 8, 2025
@benmccallum
Copy link
Author

@microsoft-github-policy-service agree

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.

GetFeatureNames can return duplicates
1 participant