Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/atlas-service/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export type AtlasServiceConfig = {
* - atlas-local: local mms backend (localhost)
* - atlas-dev: dev mms backend (cloud-dev.mongodb.com)
* - atlas-qa: qa mms backend (cloud-qa.mongodb.com)
* - atlas-staging: staging mms backend (cloud-stage.mongodb.com)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit should we call it atlas-stage to mirror the actual env name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question lol, I've been meaning to get to the bottom of why it's called "stage" only for the MMS URL and it's called "staging" literally everywhere else

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "staging" is actually the more common name and "stage" is the exception

* - atlas: mms backend (cloud.mongodb.com)
* - web-sandbox-atlas-local: local mms backend + proxy (localhost / proxy prefix)
* - web-sandbox-atlas-dev: dev mms backend + proxy (cloud-dev.mongodb.com / proxy prefix)
Expand Down Expand Up @@ -174,6 +175,18 @@ const config = {
assistantApiBaseUrl: 'https://knowledge-dev.mongodb.com/api/v1',
userDataBaseUrl: 'https://cloud-qa.mongodb.com/ui/userData',
},
'atlas-staging': {
ccsBaseUrl: '',
cloudBaseUrl: '',
atlasApiBaseUrl: 'https://cloud-stage.mongodb.com/api/private',
atlasLogin: {
clientId: '0oaq1le5jlzxCuTbu357',
issuer: 'https://auth-qa.mongodb.com/oauth2/default',
},
authPortalUrl: 'https://account-stage.mongodb.com/account/login',
assistantApiBaseUrl: 'https://knowledge-staging.mongodb.com/api/v1',
userDataBaseUrl: 'https://cloud-stage.mongodb.com/ui/userData',
},
atlas: {
ccsBaseUrl: '',
cloudBaseUrl: '',
Expand Down
11 changes: 7 additions & 4 deletions packages/compass-preferences-model/src/preferences-schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export type UserConfigurablePreferences = PermanentFeatureFlags &
| 'atlas-local'
| 'atlas-dev'
| 'atlas-qa'
| 'atlas-staging'
| 'atlas'
| 'web-sandbox-atlas-local'
| 'web-sandbox-atlas-dev'
Expand Down Expand Up @@ -839,10 +840,11 @@ export const storedUserPreferencesProps: Required<{

/**
* Chooses atlas service backend configuration from preset
* - atlas-local: local mms backend (http://localhost:8080)
* - atlas-dev: dev mms backend (cloud-dev.mongodb.com)
* - atlas-qa: qa mms backend (cloud-qa.mongodb.com)
* - atlas: mms backend (cloud.mongodb.com)
* - atlas-local: local mms backend (http://localhost:8080)
* - atlas-dev: dev mms backend (cloud-dev.mongodb.com)
* - atlas-qa: qa mms backend (cloud-qa.mongodb.com)
* - atlas-staging: staging mms backend (cloud-stage.mongodb.com)
* - atlas: mms backend (cloud.mongodb.com)
*/
atlasServiceBackendPreset: {
ui: true,
Expand All @@ -856,6 +858,7 @@ export const storedUserPreferencesProps: Required<{
'atlas-local',
'atlas-dev',
'atlas-qa',
'atlas-staging',
'atlas',
'web-sandbox-atlas-local',
'web-sandbox-atlas-dev',
Expand Down
Loading