-
Notifications
You must be signed in to change notification settings - Fork 38
Description
When AzureAppConfiguration loads features/config from Azure it checks for the existence of Variants, Allocation or Telemetry to decide what feature flag schema to use. If none of these are found it loads the config/feature in the DotnetSchema instead of the MicrosoftSchema. This makes merging features defined using the MicrosoftSchema in other config sources and the MicrosoftSchema impossible if not using a variant flag.
When following https://learn.microsoft.com/en-us/azure/azure-app-configuration/feature-management-dotnet-reference#feature-flag-declaration and then adding AzureAppConfiguration the feature flags defined in appsettings.json using MicrosoftSchema cannot be overridden using AzureAppConfiguration if not using variants.
Steps to reproduce:
- Add feature flags in appsettings.json using the MicrosoftSchema and not using variants.
- Connect to AzureAppConfiguration.
- Add the same feature flag (not variant)
- In AzureAppConfiguration, enabled/disable the feature flag.
- Nothing changes in the application (restart to reload if needed)
There should be some way (or the library should have more logic) to force the library to always call ProcessMicrosoftSchemaFeatureFlag in this section:
Line 34 in 7dc547c
if ((featureFlag.Variants != null && featureFlag.Variants.Any()) || featureFlag.Allocation != null || featureFlag.Telemetry != null) |
Metadata
Metadata
Assignees
Labels
Type
Projects
Status