Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[App Config] Add display_name to FeatureFlag #15901

Merged
4 commits merged into from
Jun 22, 2021

Conversation

HarshaNalluru
Copy link
Member

Fixes #15891

@ghost ghost added the App Configuration Azure.ApplicationModel.Configuration label Jun 22, 2021
@@ -62,10 +66,12 @@ export const FeatureFlagHelper = {
}
const jsonFeatureFlagValue: JsonFeatureFlagValue = {
id: featureFlag.value.id ?? key.replace(featureFlagPrefix, ""),
...featureFlag.value,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were enabled and description the only fields we would miss be removing this line?

I agree it makes sense to remove the line (or move it above the id assignment), just want to ensure we aren't forgetting to set a field that was previously being set.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were enabled and description the only fields we would miss be removing this line?

image

This is the feature flag value.

(or move it above the id assignment)

Moving it would add both displayName and display_name, hence removing.

@@ -91,6 +91,7 @@ export interface FeatureFlagValue {
}[];
};
description?: string;
displayName?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this field will eventually be used in the portal? (And presumably someone writing their own app config viewer could use it as well)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, yess!

@ghost
Copy link

ghost commented Jun 22, 2021

Hello @HarshaNalluru!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit bf5cd3e into Azure:main Jun 22, 2021
@HarshaNalluru HarshaNalluru deleted the harshan/app-config/issue/15891 branch June 22, 2021 22:53
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Configuration Azure.ApplicationModel.Configuration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[App Config] Add "display_name" property to feature flags
2 participants