-
Notifications
You must be signed in to change notification settings - Fork 229
chore(compass-preferences-model): use optInGenAIFeatures for Compass COMPASS-9593 #7129
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
base: main
Are you sure you want to change the base?
Changes from all commits
bed75dd
617ff7c
1c3bcc3
3df8f4a
44e5585
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -85,7 +85,7 @@ export type UserConfigurablePreferences = PermanentFeatureFlags & | |||||
| 'web-sandbox-atlas-dev' | ||||||
| 'web-sandbox-atlas-qa' | ||||||
| 'web-sandbox-atlas'; | ||||||
optInDataExplorerGenAIFeatures: boolean; | ||||||
optInGenAIFeatures: boolean; | ||||||
// Features that are enabled by default in Compass, but are disabled in Data | ||||||
// Explorer | ||||||
enableExplainPlan: boolean; | ||||||
|
@@ -810,17 +810,16 @@ export const storedUserPreferencesProps: Required<{ | |||||
.default('atlas'), | ||||||
type: 'string', | ||||||
}, | ||||||
optInDataExplorerGenAIFeatures: { | ||||||
optInGenAIFeatures: { | ||||||
ui: true, | ||||||
cli: false, | ||||||
global: false, | ||||||
description: { | ||||||
short: 'User Opt-in for Data Explorer Gen AI Features', | ||||||
short: 'User or Client Opt-in for Gen AI Features', | ||||||
}, | ||||||
validator: z.boolean().default(true), | ||||||
validator: z.boolean().default(false), | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changing the default value from
Suggested change
Copilot uses AI. Check for mistakes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was likely an unintentional default which always gets overriden by the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. correct me if not so but this change shouldn't have any side effects on DE. The state of this was always being overriden by the API request and we'd likely not have wanted this to be true anyhow. |
||||||
type: 'boolean', | ||||||
}, | ||||||
|
||||||
enableAtlasSearchIndexes: { | ||||||
ui: true, | ||||||
cli: true, | ||||||
|
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.
The URL path still references 'optInDataExplorerGenAIFeatures' but the preference has been renamed to 'optInGenAIFeatures'. Consider updating the API endpoint to match the new naming convention for consistency.
Copilot uses AI. Check for mistakes.
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.
This is how we ensure backwards-compatibility