- 
                Notifications
    You must be signed in to change notification settings 
- Fork 119
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I've been look at the latest pre-release of this package (2.2.0-preview) - it is a great improvement in terms of migration from other feature management system 👍
However, when implementing a custom IFeatureDefinitionProvider I noticed that FeatureFilterConfiguration still expects its data to be modeled as IConfiguration. There are a few reasons why I think this is problematic:
- Non-transparent API. It is not transparent what settings are mandatory or even expected, IConfigurationis very broad.
- Cumbersome API. In my case, I have loaded feature toggle data that I want to map to percentage filter, groups etc. The best way I have found is to look at the source code for the filter classes and mimic the expected configuration in an in-memory configuration collection.
- Surprising API. Configuration is a concept that is tied to application startup. Whenever code is reliant on configuration, the first step is usually to map it the configuration to a strongly typed class and let downstream classes rely on it.
It would be great if the API for implementing a custom data source/adapter for the feature management system would be strongly typed and not reliant on IConfiguration.
bulldetektor, sudosandwich3, gabpaiz3, JoelHT-Landmark, devdouglasferreira and 1 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request