-
Notifications
You must be signed in to change notification settings - Fork 258
chore(atlas-service): add a new atlas config CLOUDP-397307 #7984
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
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 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -183,6 +183,19 @@ const config = { | |||||||||||||||||||||||||
| assistantApiBaseUrl: 'https://knowledge-staging.mongodb.com/api/v1', | ||||||||||||||||||||||||||
| userDataBaseUrl: 'https://cloud-stage.mongodb.com/ui/userData', | ||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
| 'atlas-internal': { | ||||||||||||||||||||||||||
| ccsBaseUrl: '', | ||||||||||||||||||||||||||
| // multiplexedWsBaseUrls: ['wss://cloud-internal.mongodb.com/ccs'], | ||||||||||||||||||||||||||
| cloudBaseUrl: '', | ||||||||||||||||||||||||||
| atlasApiBaseUrl: 'https://cloud-internal.mongodb.com/api/private', | ||||||||||||||||||||||||||
| atlasLogin: { | ||||||||||||||||||||||||||
|
Collaborator
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. Huh, was sure we cleaned-up everything atlas login related from compass |
||||||||||||||||||||||||||
| clientId: '', | ||||||||||||||||||||||||||
| issuer: '', | ||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||
| authPortalUrl: '', | ||||||||||||||||||||||||||
| assistantApiBaseUrl: '', | ||||||||||||||||||||||||||
| userDataBaseUrl: '', | ||||||||||||||||||||||||||
|
Comment on lines
+192
to
+197
|
||||||||||||||||||||||||||
| clientId: '', | |
| issuer: '', | |
| }, | |
| authPortalUrl: '', | |
| assistantApiBaseUrl: '', | |
| userDataBaseUrl: '', | |
| clientId: '0oajzdcznmE8GEyio297', | |
| issuer: 'https://auth.mongodb.com/oauth2/default', | |
| }, | |
| authPortalUrl: 'https://account.mongodb.com/account/login', | |
| assistantApiBaseUrl: 'https://knowledge.mongodb.com/api/v1', | |
| userDataBaseUrl: 'https://cloud-internal.mongodb.com/ui/userData', |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,6 +89,7 @@ export type UserConfigurablePreferences = PermanentFeatureFlags & | |
| | 'atlas-dev' | ||
| | 'atlas-qa' | ||
| | 'atlas-staging' | ||
| | 'atlas-internal' | ||
| | 'atlas'; | ||
| optInGenAIFeatures: boolean; | ||
| // Features that are enabled by default in Compass, but are disabled in Data | ||
|
|
@@ -869,7 +870,14 @@ export const storedUserPreferencesProps: Required<{ | |
| short: 'Configuration used by atlas service', | ||
| }, | ||
| validator: z | ||
| .enum(['atlas-local', 'atlas-dev', 'atlas-qa', 'atlas-staging', 'atlas']) | ||
| .enum([ | ||
| 'atlas-local', | ||
| 'atlas-dev', | ||
| 'atlas-qa', | ||
| 'atlas-staging', | ||
| 'atlas-internal', | ||
| 'atlas', | ||
|
Comment on lines
+875
to
+879
|
||
| ]) | ||
| .default('atlas'), | ||
| type: 'string', | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,6 +61,21 @@ | |
| }, | ||
| "encoding": "utf-8" | ||
| }, | ||
| { | ||
| "enable": true, | ||
| "group": "compass-web", | ||
| "ruleType": "redirect", | ||
| "isFunction": false, | ||
| "code": "", | ||
| "forceRunner": "auto", | ||
| "name": "cloud-internal: compass-web localhost", | ||
| "to": "http://localhost:7777/compass-web.mjs", | ||
| "condition": { | ||
| "regex": "https://downloads\\.mongodb\\.com/compass/compass-web/prod/index.mjs", | ||
| "resourceTypes": ["script"] | ||
|
Comment on lines
+71
to
+75
|
||
| }, | ||
| "encoding": "utf-8" | ||
| }, | ||
| { | ||
| "enable": false, | ||
| "group": "mms", | ||
|
|
||
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 preset list in the comment above this config doesn’t mention
atlas-internal, even though it’s now a supported option. Update the documentation comment so it stays in sync with the available presets.