Skip to content

Commit b63abc4

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents 2f3fb35 + 7a3e630 commit b63abc4

File tree

32 files changed

+875
-876
lines changed

32 files changed

+875
-876
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
## Description
1313
<!--- Describe your changes in detail -->
1414
<!--- If applicable, describe (or illustrate) architecture flow -->
15+
<!--- If the UI changes in a non-trivial way, consider adding screenshots/video illustrating the new flows -->
1516

1617
### Checklist
1718
- [ ] New tests and/or benchmarks are included
1819
- [ ] Documentation is changed or added
20+
- [ ] If this change updates the UI, screenshots/videos are added and a design review is requested
1921
- [ ] I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)
2022

2123
## Motivation and Context

configs/webpack-config-compass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"cli-progress": "^3.9.1",
7474
"core-js": "^3.17.3",
7575
"css-loader": "^4.3.0",
76-
"electron": "^32.3.2",
76+
"electron": "^32.3.3",
7777
"html-webpack-plugin": "^5.6.0",
7878
"less": "^3.13.1",
7979
"less-loader": "^10.0.1",

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
},
6666
"//": "See depcheck for why we have some of these dependencies at the root of the monorepo",
6767
"devDependencies": {
68-
"@mongodb-js/monorepo-tools": "^1.1.1",
69-
"@mongodb-js/sbom-tools": "^0.7.0",
68+
"@mongodb-js/monorepo-tools": "^1.1.16",
69+
"@mongodb-js/sbom-tools": "^0.7.2",
7070
"@testing-library/dom": "^8.20.1",
7171
"husky": "^8.0.3",
7272
"js-yaml": "^4.1.0",

packages/atlas-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"@mongodb-js/oidc-plugin": "^1.1.6",
8585
"hadron-app-registry": "^9.4.5",
8686
"compass-preferences-model": "^2.33.5",
87-
"electron": "^32.3.2",
87+
"electron": "^32.3.3",
8888
"hadron-ipc": "^3.4.5",
8989
"lodash": "^4.17.21",
9090
"react": "^17.0.2",

packages/compass-crud/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"chai": "^4.1.2",
6060
"chai-as-promised": "^7.1.1",
6161
"depcheck": "^1.4.1",
62-
"electron": "^32.3.2",
62+
"electron": "^32.3.3",
6363
"electron-mocha": "^12.2.0",
6464
"enzyme": "^3.11.0",
6565
"eslint": "^7.25.0",

packages/compass-e2e-tests/helpers/selectors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ export const UpdateValidationButton =
11531153
'[data-testid="update-validation-button"]';
11541154
export const ValidationMatchingDocumentsPreview =
11551155
'[data-testid="validation-content"] [data-testid="matching-documents"] [data-testid="document-preview"]';
1156-
export const ValidationLoadMatchingDocumentsBtn = `${ValidationMatchingDocumentsPreview} [data-testid="load-sample-document"]`;
1156+
export const ValidationLoadSampleDocumentsBtn = `[data-testid="load-sample-documents"]`;
11571157
export const ValidationNotMatchingDocumentsPreview =
11581158
'[data-testid="validation-content"] [data-testid="notmatching-documents"] [data-testid="document-preview"]';
11591159
export const ValidationLoadNotMatchingDocumentsBtn = `${ValidationNotMatchingDocumentsPreview} [data-testid="load-sample-document"]`;

packages/compass-e2e-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"cross-spawn": "^7.0.5",
5151
"debug": "^4.3.4",
5252
"depcheck": "^1.4.1",
53-
"electron": "^32.3.2",
53+
"electron": "^32.3.3",
5454
"electron-to-chromium": "^1.5.109",
5555
"eslint": "^7.25.0",
5656
"glob": "^10.2.5",
@@ -62,7 +62,7 @@
6262
"mongodb-build-info": "^1.7.2",
6363
"mongodb-connection-string-url": "^3.0.1",
6464
"mongodb-log-writer": "^2.3.4",
65-
"mongodb-runner": "^5.6.3",
65+
"mongodb-runner": "^5.8.0",
6666
"node-fetch": "^2.7.0",
6767
"nyc": "^15.1.0",
6868
"prettier": "^2.7.1",
@@ -72,7 +72,7 @@
7272
"semver": "^7.6.3",
7373
"tree-kill": "^1.2.2",
7474
"ts-node": "^10.9.1",
75-
"webdriverio": "^9.4.1",
75+
"webdriverio": "^9.11.0",
7676
"why-is-node-running": "^2.3.0",
7777
"xvfb-maybe": "^0.2.1",
7878
"yargs": "^17.7.2"

packages/compass-e2e-tests/tests/collection-validation-tab.test.ts

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import * as Selectors from '../helpers/selectors';
1010
import { createNumbersCollection } from '../helpers/insert-data';
1111

1212
const NO_PREVIEW_DOCUMENTS = 'No Preview Documents';
13-
const LOAD_SAMPLE_DOCUMENT = 'Load document';
1413
const PASSING_VALIDATOR = '{ $jsonSchema: {} }';
1514
const FAILING_VALIDATOR =
1615
'{ $jsonSchema: { bsonType: "object", required: [ "phone" ] } }';
@@ -54,9 +53,11 @@ describe('Collection validation tab', function () {
5453
}
5554

5655
context('when the schema validation is set or modified', function () {
57-
it('provides users with a button to load sample documents', async function () {
56+
it('provides users with a single button to load sample documents', async function () {
5857
await addValidation(PASSING_VALIDATOR);
5958

59+
await browser.clickVisible(Selectors.ValidationLoadSampleDocumentsBtn);
60+
6061
await browser.waitUntil(async () => {
6162
const matchTextElement = browser.$(
6263
Selectors.ValidationMatchingDocumentsPreview
@@ -67,18 +68,15 @@ describe('Collection validation tab', function () {
6768
);
6869
const notMatchingText = await notMatchingTextElement.getText();
6970
return (
70-
matchText === LOAD_SAMPLE_DOCUMENT &&
71-
notMatchingText === LOAD_SAMPLE_DOCUMENT
71+
matchText.includes('ObjectId(') &&
72+
notMatchingText === NO_PREVIEW_DOCUMENTS
7273
);
7374
});
7475
});
7576

7677
it('supports rules in JSON schema', async function () {
7778
await addValidation(FAILING_VALIDATOR);
78-
await browser.clickVisible(Selectors.ValidationLoadMatchingDocumentsBtn);
79-
await browser.clickVisible(
80-
Selectors.ValidationLoadNotMatchingDocumentsBtn
81-
);
79+
await browser.clickVisible(Selectors.ValidationLoadSampleDocumentsBtn);
8280

8381
// nothing passed, everything failed
8482
await browser.waitUntil(async () => {
@@ -107,10 +105,7 @@ describe('Collection validation tab', function () {
107105

108106
// the automatic indentation and brackets makes multi-line values very fiddly here
109107
await browser.setValidation(PASSING_VALIDATOR);
110-
await browser.clickVisible(Selectors.ValidationLoadMatchingDocumentsBtn);
111-
await browser.clickVisible(
112-
Selectors.ValidationLoadNotMatchingDocumentsBtn
113-
);
108+
await browser.clickVisible(Selectors.ValidationLoadSampleDocumentsBtn);
114109

115110
// nothing failed, everything passed
116111
await browser.waitUntil(async () => {

packages/compass-explain-plan/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@types/d3-hierarchy": "^3.1.2",
5959
"chai": "^4.2.0",
6060
"depcheck": "^1.4.1",
61-
"electron": "^32.3.2",
61+
"electron": "^32.3.3",
6262
"electron-mocha": "^12.2.0",
6363
"eslint": "^7.25.0",
6464
"mocha": "^10.2.0",

0 commit comments

Comments
 (0)