microsoft / microsoft/FeatureManagement-Dotnet
Feature request: Set of IFeatureFilters applied to all features
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 129
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 5
Description
Request
I have a custom IFeatureFilter I would like to apply automatically to all features in my application. I don't see a way to do this, short of building a custom IFeatureDefinitionProvider. No problem building an IFeatureDefinitionProvider, it's just unfortunate because the ConfigurationFeatureDefinitionProvider has everything I need besides that. Would it make sense to expose such a feature?
Proposal
Via configuration:
"FeatureManagement": {
"Default": {
"EnabledFor": [
{ "Name": "CustomFilter" },
{ "Name": "CustomFilterWithParameters", "Parameters": { "Param1": "Value1" } }
]
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing ConfigurationFeatureDefinitionProvider and the proposed FeatureManagement configuration shape. Determine how a configured Default filter set should apply to every feature, and consider the existing IFeatureDefinitionProvider behavior; the work is done when the requested configuration is supported without requiring a custom provider.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100