Skip to content

KeyFilter applied to FeatureFlags #628

@erik-neumann

Description

@erik-neumann

After upgrading to 8.1.0 we realized that some of our FeatureFlags do not properly load anymore. Those AppConfiguration instances that do not work anymore all have a KeyFilter (other than KeyFilter.Any) defined. Those with no filter or KeyFilter.Any are fine. Workaround seems to be adding .appconfig.featureflag/* to the KeyFilters.

    .UseFeatureFlags()
    .Select("Prefix:*")
    .Select(".appconfig.featureflag/*"); // We need to add this line to load feature flags properly

These configs are purely Azure AppConfiguration related, no conflicting appconfig.json or other provider setting does exist. I validated by checking the behaviour of config.Providers[].Data.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions