- 
                Notifications
    
You must be signed in to change notification settings  - Fork 273
 
config(amazonq): customization override should respect users' selection #5347
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
…ws-toolkit-jetbrains into enableFlexibelCustomization
        
          
                ...aws/toolkits/jetbrains/services/codewhisperer/startup/CodeWhispererProjectStartupActivity.kt
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | 
           Easier to handle custom override in  
  | 
    
| 
           flow is 
  | 
    
          ok isee, try this instead. where  | 
    
        
          
                ...ws/toolkits/jetbrains/services/codewhisperer/customization/CodeWhispererModelConfigurator.kt
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                .changes/next-release/bugfix-e0622832-a6ee-4113-99f2-0832e12705f5.json
              
                Outdated
          
            Show resolved
            Hide resolved
        
      …5f5.json Co-authored-by: Richard Li <[email protected]>
…ws-toolkit-jetbrains into enableFlexibelCustomization
        
          
                ...ws/toolkits/jetbrains/services/codewhisperer/customization/CodeWhispererModelConfigurator.kt
              
                Fixed
          
            Show fixed
            Hide fixed
        
      …ws-toolkit-jetbrains into enableFlexibelCustomization
        
          
                ...software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererModelConfiguratorTest.kt
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | 
           FAILURE: Build failed with an exception. 
 
  | 
    
…ws-toolkit-jetbrains into enableFlexibelCustomization
        
          
                plugins/amazonq/src/test/kotlin/PluginAmazonQJvmBinaryCompatabilityTest.kt
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | * 1. service returns non-empty override customization arn, refer to [CodeWhispererFeatureConfigService] | ||
| * 2. the override customization arn is different from the previous override customization if any. The purpose is to only do override once on users' behalf. | ||
| */ | ||
| override fun switchCustomization(project: Project, newCustomization: CodeWhispererCustomization?, isOverride: Boolean) { | 
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.
might be trying to shove too much logic into this method
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.
yea, originally my plan was to simply call switchCustomization within featureConfigService, but there is dependency issue as modelConfigurator is still in codewhisperer package.
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.
think i sohuld move modelConfig to shared/ then we can remove this
| 
           /retryBuilds  | 
    
…on (#5347) config(amazonq): customization override should respect users' selection --------- Co-authored-by: Richard Li <[email protected]>

Types of changes
Description
Previously, once a user manually selected a customization, the logic always returned the selected value, preventing fallback to the server-provided configuration. This update ensures that users can revert to the default customization if they clear their selection.
Introduced
refreshDefaultCustomizationArn()to update the default customization ARN when the server-pushed configuration changes.If the new customization differs from the stored
serviceDefaultArn, it updates the ARN and switches the customization accordingly.This ensures that users who wish to revert to the server-pushed customization can do so when appropriate.
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.