Skip to content

Commit 3ca4bb8

Browse files
authored
fix(my-queries): add staging config COMPASS-9663 (#7502)
* add staging * Update util.ts
1 parent 13ef20d commit 3ca4bb8

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

packages/atlas-service/src/util.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export type AtlasServiceConfig = {
131131
* - atlas-local: local mms backend (localhost)
132132
* - atlas-dev: dev mms backend (cloud-dev.mongodb.com)
133133
* - atlas-qa: qa mms backend (cloud-qa.mongodb.com)
134+
* - atlas-staging: staging mms backend (cloud-stage.mongodb.com)
134135
* - atlas: mms backend (cloud.mongodb.com)
135136
* - web-sandbox-atlas-local: local mms backend + proxy (localhost / proxy prefix)
136137
* - web-sandbox-atlas-dev: dev mms backend + proxy (cloud-dev.mongodb.com / proxy prefix)
@@ -174,6 +175,18 @@ const config = {
174175
assistantApiBaseUrl: 'https://knowledge-dev.mongodb.com/api/v1',
175176
userDataBaseUrl: 'https://cloud-qa.mongodb.com/ui/userData',
176177
},
178+
'atlas-staging': {
179+
ccsBaseUrl: '',
180+
cloudBaseUrl: '',
181+
atlasApiBaseUrl: 'https://cloud-stage.mongodb.com/api/private',
182+
atlasLogin: {
183+
clientId: '0oaq1le5jlzxCuTbu357',
184+
issuer: 'https://auth-qa.mongodb.com/oauth2/default',
185+
},
186+
authPortalUrl: 'https://account-stage.mongodb.com/account/login',
187+
assistantApiBaseUrl: 'https://knowledge-staging.mongodb.com/api/v1',
188+
userDataBaseUrl: 'https://cloud-stage.mongodb.com/ui/userData',
189+
},
177190
atlas: {
178191
ccsBaseUrl: '',
179192
cloudBaseUrl: '',

packages/compass-preferences-model/src/preferences-schema.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export type UserConfigurablePreferences = PermanentFeatureFlags &
7979
| 'atlas-local'
8080
| 'atlas-dev'
8181
| 'atlas-qa'
82+
| 'atlas-staging'
8283
| 'atlas'
8384
| 'web-sandbox-atlas-local'
8485
| 'web-sandbox-atlas-dev'
@@ -839,10 +840,11 @@ export const storedUserPreferencesProps: Required<{
839840

840841
/**
841842
* Chooses atlas service backend configuration from preset
842-
* - atlas-local: local mms backend (http://localhost:8080)
843-
* - atlas-dev: dev mms backend (cloud-dev.mongodb.com)
844-
* - atlas-qa: qa mms backend (cloud-qa.mongodb.com)
845-
* - atlas: mms backend (cloud.mongodb.com)
843+
* - atlas-local: local mms backend (http://localhost:8080)
844+
* - atlas-dev: dev mms backend (cloud-dev.mongodb.com)
845+
* - atlas-qa: qa mms backend (cloud-qa.mongodb.com)
846+
* - atlas-staging: staging mms backend (cloud-stage.mongodb.com)
847+
* - atlas: mms backend (cloud.mongodb.com)
846848
*/
847849
atlasServiceBackendPreset: {
848850
ui: true,
@@ -856,6 +858,7 @@ export const storedUserPreferencesProps: Required<{
856858
'atlas-local',
857859
'atlas-dev',
858860
'atlas-qa',
861+
'atlas-staging',
859862
'atlas',
860863
'web-sandbox-atlas-local',
861864
'web-sandbox-atlas-dev',

0 commit comments

Comments
 (0)