Skip to content

Conversation

@jviau
Copy link
Member

@jviau jviau commented May 2, 2022

This PR introduces an opt-in mechanic to allow for having IFeatureFilter and IContextualFeatureFilter with the same alias. Specifically, you can have:

0 or 1 IFeatureFilter
0 or N IContextualFeatureFilter<T>, so long as there is at most 1 applicable filter for T. So, you can have multiple contextual filters with the same alias, so long as they all handle discrete app contexts.

By default, this functionality is disabled and can be enabled via FeatureManagementOptions.AllowDuplicateContextualAlias.

TODO:

  • Add unit tests

Closes #98

@JustusGreiberORGADATA
Copy link

Is this PR stuck because the tests are missing or is there something else? We recently also struggled with #98 and it would be nice if there was a solution. If it's just the tests maybe I could convince my employer to allow us to write them 🤔.

@zhiyuanliang-ms
Copy link
Member

Move to this PR #262

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.

Unable to create both IFeatureFilter and IContextualFeatureFilter with same FilterAlias.

3 participants