Skip to content

Commit 4f23afb

Browse files
committed
change feature value to be string as service config has
1 parent 3e923de commit 4f23afb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererFeatureConfigService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class CodeWhispererFeatureConfigService {
9292

9393
fun getCustomizationArnOverride(): String = getFeatureValueForKey(CUSTOMIZATION_ARN_OVERRIDE_NAME).stringValue()
9494

95-
fun getNewAutoTriggerUX(): Boolean = getFeatureValueForKey(NEW_AUTO_TRIGGER_UX).boolValue()
95+
fun getNewAutoTriggerUX(): Boolean = getFeatureValueForKey(NEW_AUTO_TRIGGER_UX).stringValue() == "TREATMENT"
9696

9797
// Get the feature value for the given key.
9898
// In case of a misconfiguration, it will return a default feature value of Boolean false.
@@ -125,7 +125,7 @@ class CodeWhispererFeatureConfigService {
125125
NEW_AUTO_TRIGGER_UX to FeatureContext(
126126
NEW_AUTO_TRIGGER_UX,
127127
"CONTROL",
128-
FeatureValue.builder().boolValue(false).build()
128+
FeatureValue.builder().stringValue("CONTROL").build()
129129
),
130130
)
131131
}

0 commit comments

Comments
 (0)