Skip to content

Commit acc8c52

Browse files
committed
Merge branch 'main' of https://github.com/mongodb-js/compass into lgupdate
2 parents 9bb660d + 7abde1e commit acc8c52

File tree

23 files changed

+1429
-1389
lines changed

23 files changed

+1429
-1389
lines changed

THIRD-PARTY-NOTICES.md

Lines changed: 154 additions & 154 deletions
Large diffs are not rendered by default.

docs/tracking-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Compass Tracking Plan
33

4-
Generated on Thu, Dec 12, 2024 at 08:41 AM
4+
Generated on Sun, Dec 15, 2024 at 03:29 AM
55

66
## Table of Contents
77

package-lock.json

Lines changed: 1213 additions & 1208 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/atlas-service/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
"@mongodb-js/compass-user-data": "^0.3.12",
8080
"@mongodb-js/compass-utils": "^0.6.16",
8181
"@mongodb-js/connection-info": "^0.9.5",
82-
"@mongodb-js/devtools-connect": "^3.3.3",
83-
"@mongodb-js/devtools-proxy-support": "^0.4.1",
82+
"@mongodb-js/devtools-connect": "^3.3.4",
83+
"@mongodb-js/devtools-proxy-support": "^0.4.2",
8484
"@mongodb-js/oidc-plugin": "^1.1.5",
8585
"hadron-app-registry": "^9.2.8",
8686
"compass-preferences-model": "^2.31.1",

packages/compass-aggregations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"hadron-document": "^8.6.6",
8585
"hadron-type-checker": "^7.2.4",
8686
"lodash": "^4.17.21",
87-
"mongodb": "^6.11.0",
87+
"mongodb": "^6.12.0",
8888
"mongodb-collection-model": "^5.23.9",
8989
"mongodb-data-service": "^22.23.9",
9090
"mongodb-database-model": "^2.23.9",

packages/compass-e2e-tests/helpers/compass-web-sandbox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export async function spawnCompassWebSandboxAndSignInToAtlas(
9292
`--app=${COMPASS_WEB_SANDBOX_RUNNER_PATH}`,
9393
],
9494
},
95+
'wdio:enforceWebDriverClassic': true,
9596
},
9697
waitforTimeout,
9798
});

packages/compass-e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"hadron-build": "^25.5.16",
5858
"lodash": "^4.17.21",
5959
"mocha": "^10.2.0",
60-
"mongodb": "^6.11.0",
60+
"mongodb": "^6.12.0",
6161
"mongodb-build-info": "^1.7.2",
6262
"mongodb-connection-string-url": "^3.0.1",
6363
"mongodb-log-writer": "^1.4.2",

packages/compass-explain-plan/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"d3-hierarchy": "^3.1.2",
8383
"hadron-app-registry": "^9.2.8",
8484
"lodash": "^4.17.21",
85-
"mongodb": "^6.11.0",
85+
"mongodb": "^6.12.0",
8686
"react": "^17.0.2",
8787
"react-redux": "^8.1.3",
8888
"redux": "^4.2.1",

packages/compass-generative-ai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"bson": "^6.10.1",
6262
"compass-preferences-model": "^2.31.1",
6363
"hadron-app-registry": "^9.2.8",
64-
"mongodb": "^6.11.0",
64+
"mongodb": "^6.12.0",
6565
"mongodb-schema": "^12.2.0",
6666
"react": "^17.0.2",
6767
"react-redux": "^8.1.3",

packages/compass-generative-ai/src/store/atlas-optin-reducer.spec.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,39 @@ describe('atlasOptInReducer', function () {
7777
);
7878
});
7979

80+
describe('when already opted in, and the project setting is set to false', function () {
81+
beforeEach(async function () {
82+
await mockPreferences.savePreferences({
83+
enableGenAIFeaturesAtlasProject: false,
84+
optInDataExplorerGenAIFeatures: true,
85+
});
86+
});
87+
88+
it('should start the opt in flow', async function () {
89+
const mockAtlasAiService = {
90+
optIntoGenAIFeaturesAtlas: sandbox.stub().resolves({ sub: '1234' }),
91+
};
92+
const store = configureStore({
93+
atlasAuthService: {} as any,
94+
atlasAiService: mockAtlasAiService as any,
95+
preferences: mockPreferences,
96+
});
97+
98+
expect(store.getState().optIn).to.have.nested.property(
99+
'state',
100+
'initial'
101+
);
102+
void store.dispatch(optIntoGenAIWithModalPrompt()).catch(() => {});
103+
await store.dispatch(optIn());
104+
expect(mockAtlasAiService.optIntoGenAIFeaturesAtlas).to.have.been
105+
.calledOnce;
106+
expect(store.getState().optIn).to.have.nested.property(
107+
'state',
108+
'optin-success'
109+
);
110+
});
111+
});
112+
80113
it('should fail opt in if opt in failed', async function () {
81114
const mockAtlasAiService = {
82115
optIntoGenAIFeaturesAtlas: sandbox

0 commit comments

Comments
 (0)