Skip to content

Last one wins flag providers#501

Merged
rossgrambo merged 3 commits intopreviewfrom
rossgrambo/last-one-wins-flags
Sep 16, 2024
Merged

Last one wins flag providers#501
rossgrambo merged 3 commits intopreviewfrom
rossgrambo/last-one-wins-flags

Conversation

@rossgrambo
Copy link
Member

Why this PR?

Updates the flag provider to handle duplicate flags by using the last flag instead of the first.

Visible Changes

  • For the Microsoft Feature Flag Schema - When there are duplicate feature flag ids- the last flag will be used. This allows multiple flag providers or multiple sources to load flags in a consistent way across languages.
    • This also aligns with the existing functionality in stable.
    • This change only affects the built-in ConfigurationFeatureDefinitionProvider, custom providers are still in charge of their ordering.

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