-
Notifications
You must be signed in to change notification settings - Fork 274
Setting customization name to AB variation for display in status bar #5090
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
Conversation
1bf6a04 to
da19ceb
Compare
| @@ -0,0 +1,4 @@ | |||
| { | |||
| "type" : "feature", | |||
| "description" : "Uses AB variation as the name for overriden customizations" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe bug fix: fix issue where incorrect customization is shown when local setting is overridden by the amazon q service
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We didn't really have a contract for how we plumb this additional data through so marked it as a feature because it's new but could go either way
68d41c8 to
e225cdc
Compare
|
|
||
| fun getCustomizationArnOverride(): String = getFeatureValueForKey(CUSTOMIZATION_ARN_OVERRIDE_NAME).stringValue() | ||
|
|
||
| fun getCustomizationOverrideName(): String = getFeatureVariationForKey(CUSTOMIZATION_ARN_OVERRIDE_NAME) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we merge these 2 methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated with a generic method
| private fun getFeatureVariationForKey(name: String): String = | ||
| featureConfigs[name]?.variation.orEmpty() | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should have a generic one instead
private fun getFeature(k: String): FeatureContext = featureConfigs[k]
e605d0e to
e1a4c57
Compare
Types of changes
Description
When a customizationArnOverride is present from an AB feature response, the toolkit will currently default to displaying the name of the last selected customization by the user rather than a name for the customization that was overridden. With this change, we'll use the AB variation field to specify a name for the customizationArn override and use it for display.
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.