Skip to content

[App Config] Add display_name to FeatureFlag#15901

Merged
4 commits merged intoAzure:mainfrom
HarshaNalluru:harshan/app-config/issue/15891
Jun 22, 2021
Merged

[App Config] Add display_name to FeatureFlag#15901
4 commits merged intoAzure:mainfrom
HarshaNalluru:harshan/app-config/issue/15891

Conversation

@HarshaNalluru
Copy link
Contributor

Fixes #15891

@ghost ghost added the App Configuration Azure.ApplicationModel.Configuration label Jun 22, 2021
}
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
Contributor 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.

}[];
};
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
Contributor Author

Choose a reason for hiding this comment

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

yes, yess!

@HarshaNalluru HarshaNalluru requested a review from chradek June 22, 2021 22:18
@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