Skip to content

Commit db33a58

Browse files
Merge branch 'main' of github.com:mongodb-js/compass into COMPASS-8377
2 parents 087dc04 + 5c6c61b commit db33a58

File tree

16 files changed

+565
-324
lines changed

16 files changed

+565
-324
lines changed

THIRD-PARTY-NOTICES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The following third-party software is used by and included in **Mongodb Compass**.
2-
This document was automatically generated on Fri Nov 01 2024.
2+
This document was automatically generated on Mon Nov 04 2024.
33

44
## List of dependencies
55

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 Fri, Nov 1, 2024 at 01:56 PM
4+
Generated on Mon, Nov 4, 2024 at 03:48 PM
55

66
## Table of Contents
77

package-lock.json

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

packages/atlas-service/src/atlas-service.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,8 @@ export class AtlasService {
2929
) {
3030
this.config = getAtlasConfig(preferences);
3131
}
32-
adminApiEndpoint(path?: string, requestId?: string): string {
33-
const uri = `${this.config.atlasApiBaseUrl}${normalizePath(path)}`;
34-
const query = requestId
35-
? `?request_id=${encodeURIComponent(requestId)}`
36-
: '';
37-
return `${uri}${query}`;
32+
adminApiEndpoint(path?: string): string {
33+
return `${this.config.atlasApiBaseUrl}${normalizePath(path)}`;
3834
}
3935
cloudEndpoint(path?: string): string {
4036
return `${this.config.cloudBaseUrl}${normalizePath(path)}`;

packages/compass-aggregations/src/modules/pipeline-builder/pipeline-ai.ts

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -281,20 +281,23 @@ export const runAIPipelineGeneration = (
281281

282282
const { collection: collectionName, database: databaseName } =
283283
toNS(namespace);
284-
jsonResponse = await atlasAiService.getAggregationFromUserInput({
285-
signal: abortController.signal,
286-
userInput,
287-
collectionName,
288-
databaseName,
289-
schema,
290-
// Provide sample documents when the user has opted in in their settings.
291-
...(provideSampleDocuments
292-
? {
293-
sampleDocuments,
294-
}
295-
: undefined),
296-
requestId,
297-
});
284+
jsonResponse = await atlasAiService.getAggregationFromUserInput(
285+
{
286+
signal: abortController.signal,
287+
userInput,
288+
collectionName,
289+
databaseName,
290+
schema,
291+
// Provide sample documents when the user has opted in in their settings.
292+
...(provideSampleDocuments
293+
? {
294+
sampleDocuments,
295+
}
296+
: undefined),
297+
requestId,
298+
},
299+
connectionInfo
300+
);
298301
} catch (err: any) {
299302
if (signal.aborted) {
300303
// If we already aborted so we ignore the error.

packages/compass-e2e-tests/tests/atlas-cloud/rolling-indexes.test.ts

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import type { Compass } from '../../helpers/compass';
2-
import { cleanup, init, Selectors } from '../../helpers/compass';
2+
import {
3+
cleanup,
4+
init,
5+
screenshotIfFailed,
6+
Selectors,
7+
} from '../../helpers/compass';
38
import type { CompassBrowser } from '../../helpers/compass-browser';
49
import { createNumbersCollection } from '../../helpers/insert-data';
510
import {
@@ -11,16 +16,20 @@ describe('Rolling indexes', function () {
1116
let compass: Compass;
1217
let browser: CompassBrowser;
1318

14-
before(async function () {
19+
before(function () {
20+
if (!isTestingAtlasCloudSandbox()) {
21+
this.skip();
22+
}
23+
});
24+
25+
beforeEach(async function () {
1526
compass = await init(this.test?.fullTitle());
1627
browser = compass.browser;
1728
await browser.setupDefaultConnections();
1829
});
1930

20-
before(function () {
21-
if (!isTestingAtlasCloudSandbox()) {
22-
this.skip();
23-
}
31+
afterEach(async function () {
32+
await screenshotIfFailed(compass, this.currentTest);
2433
});
2534

2635
after(async function () {

packages/compass-generative-ai/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"dependencies": {
5555
"@mongodb-js/atlas-service": "^0.31.0",
5656
"@mongodb-js/compass-components": "^1.31.0",
57+
"@mongodb-js/compass-connections": "^1.45.0",
5758
"@mongodb-js/compass-intercom": "^0.13.2",
5859
"@mongodb-js/compass-logging": "^1.4.9",
5960
"bson": "^6.8.0",
@@ -64,6 +65,7 @@
6465
"react": "^17.0.2"
6566
},
6667
"devDependencies": {
68+
"@mongodb-js/connection-info": "^0.9.2",
6769
"@mongodb-js/eslint-config-compass": "^1.1.7",
6870
"@mongodb-js/mocha-config-compass": "^1.4.2",
6971
"@mongodb-js/prettier-config-compass": "^1.0.2",

0 commit comments

Comments
 (0)