Skip to content

Commit e209fd5

Browse files
authored
Merge branch 'main' into electron-update
2 parents 7b09fa4 + ab6df08 commit e209fd5

File tree

61 files changed

+1614
-5456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1614
-5456
lines changed

.evergreen.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
stepback: false
22
exec_timeout_secs: 5400
3+
foliage_should_block_merges: false
34
ignore:
45
- docs/**/*.md
56
- AUTHORS

.evergreen/buildvariants-and-tasks.in.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,12 @@ buildvariants:
290290
<% } %>
291291
<% } %>
292292

293+
- name: test-can-bundle-compass-web
294+
display_name: Test Can Bundle Compass Web
295+
run_on: ubuntu2004-large
296+
tasks:
297+
- name: test-can-bundle-compass-web
298+
293299
- name: test-web-sandbox-atlas-cloud
294300
display_name: Test Web Sandbox (w/ Atlas Cloud login)
295301
run_on: ubuntu2004-large
@@ -557,6 +563,19 @@ tasks:
557563
<% } %>
558564
<% } %>
559565

566+
- name: test-can-bundle-compass-web
567+
tags:
568+
- run-on-pr
569+
- assigned_to_jira_team_compass_compass
570+
- foliage_check_task_only
571+
commands:
572+
- func: prepare
573+
- func: install
574+
- func: bootstrap
575+
- func: compile-compass-web
576+
vars:
577+
debug: 'compass*,electron*,hadron*,mongo*'
578+
560579
- name: test-web-sandbox-atlas-cloud
561580
tags:
562581
- required-for-publish

.evergreen/buildvariants-and-tasks.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ buildvariants:
280280
- name: test-web-sandbox-firefox-1
281281
- name: test-web-sandbox-firefox-2
282282
- name: test-web-sandbox-firefox-3
283+
- name: test-can-bundle-compass-web
284+
display_name: Test Can Bundle Compass Web
285+
run_on: ubuntu2004-large
286+
tasks:
287+
- name: test-can-bundle-compass-web
283288
- name: test-web-sandbox-atlas-cloud
284289
display_name: Test Web Sandbox (w/ Atlas Cloud login)
285290
run_on: ubuntu2004-large
@@ -1552,6 +1557,18 @@ tasks:
15521557
e2e_test_groups: 3
15531558
e2e_test_group: 3
15541559
debug: compass-e2e-tests*,electron*,hadron*,mongo*
1560+
- name: test-can-bundle-compass-web
1561+
tags:
1562+
- run-on-pr
1563+
- assigned_to_jira_team_compass_compass
1564+
- foliage_check_task_only
1565+
commands:
1566+
- func: prepare
1567+
- func: install
1568+
- func: bootstrap
1569+
- func: compile-compass-web
1570+
vars:
1571+
debug: compass*,electron*,hadron*,mongo*
15551572
- name: test-web-sandbox-atlas-cloud
15561573
tags:
15571574
- required-for-publish

.evergreen/functions.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,22 @@ functions:
688688
npm run --workspace @mongodb-js/compass-smoke-tests start -- dispatch --ref ${branch_name}
689689
fi
690690
691+
# Creating the webpack compass-web bundle ensures
692+
# that the bundle size does not grow too large for.
693+
# The webpack compile fails when it exceeds the size limit.
694+
compile-compass-web:
695+
- command: shell.exec
696+
# Fail the task if it's idle for 10 mins
697+
timeout_secs: 600
698+
params:
699+
working_dir: src
700+
shell: bash
701+
env:
702+
DEBUG: ${debug|}
703+
script: |
704+
set -e
705+
npm run --workspace @mongodb-js/compass-web compile
706+
691707
test-web-sandbox:
692708
- command: shell.exec
693709
# Fail the task if it's idle for 10 mins

.snyk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ ignore:
7575
expecting to be able to update to electron v33 (or later) soon
7676
expires: 2025-06-20T04:40:36.098Z
7777
created: 2025-03-21T04:40:36.107Z
78+
SNYK-JS-ELECTRON-10245168:
79+
- '*':
80+
reason: >-
81+
Not applicable: this requires attacker to load hand crafted html
82+
inside the app. Putting on a short expiration time as we're
83+
expecting to be able to update to electron v36 soon
84+
expires: 2025-06-27T10:50:52.405Z
85+
created: 2025-05-28T10:50:52.409Z
7886
# patches apply the minimum changes required to fix a vulnerability
7987
patch:
8088
'npm:ms:20170412':

THIRD-PARTY-NOTICES.md

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

docs/tracking-plan.md

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
> the tracking plan for the specific Compass version you can use the following
77
> URL: `https://github.com/mongodb-js/compass/blob/<compass version>/docs/tracking-plan.md`
88
9-
Generated on Sun, May 25, 2025
9+
Generated on Sun, Jun 1, 2025
1010

1111
## Table of Contents
1212

@@ -110,6 +110,11 @@ Generated on Sun, May 25, 2025
110110

111111
### Gen AI
112112

113+
- [AI Opt In Modal Shown](#event--AiOptInModalShownEvent)
114+
- [AI Opt In Modal Dismissed](#event--AiOptInModalDismissedEvent)
115+
- [AI Sign In Modal Shown](#event--AiSignInModalShownEvent)
116+
- [AI Sign In Modal Dismissed](#event--AiSignInModalDismissedEvent)
117+
- [AI Generate Query Clicked](#event--AiGenerateQueryClickedEvent)
113118
- [AI Prompt Submitted](#event--AiPromptSubmittedEvent)
114119
- [AI Query Feedback](#event--AiQueryFeedbackEvent)
115120
- [AI Response Failed](#event--AiResponseFailedEvent)
@@ -154,6 +159,9 @@ Generated on Sun, May 25, 2025
154159
- [Secret Storage Not Available](#event--SecretStorageNotAvailableEvent)
155160
- [Experiment Viewed](#event--ExperimentViewedEvent)
156161
- [Create Index Button Clicked](#event--CreateIndexButtonClickedEvent)
162+
- [Error parsing query](#event--CreateIndexErrorParsingQueryEvent)
163+
- [Error generating covered queries](#event--CreateIndexErrorGettingCoveredQueriesEvent)
164+
- [UUID Encountered](#event--UUIDEncounteredEvent)
157165

158166
### Performance Tab
159167

@@ -1290,6 +1298,42 @@ the query results.
12901298

12911299
## Gen AI
12921300

1301+
<a name="event--AiOptInModalShownEvent"></a>
1302+
1303+
### AI Opt In Modal Shown
1304+
1305+
This event is fired when the AI Opt-In Modal is shown to the user.
1306+
1307+
<a name="event--AiOptInModalDismissedEvent"></a>
1308+
1309+
### AI Opt In Modal Dismissed
1310+
1311+
This event is fired when the AI Opt-In Modal is dismissed by the user.
1312+
1313+
<a name="event--AiSignInModalShownEvent"></a>
1314+
1315+
### AI Sign In Modal Shown
1316+
1317+
This event is fired when the AI Sign-In Modal is shown to the user.
1318+
1319+
<a name="event--AiSignInModalDismissedEvent"></a>
1320+
1321+
### AI Sign In Modal Dismissed
1322+
1323+
This event is fired when the AI Sign-In Modal is dismissed by the user.
1324+
1325+
<a name="event--AiGenerateQueryClickedEvent"></a>
1326+
1327+
### AI Generate Query Clicked
1328+
1329+
This event is fired when a user clicks the Generate Query / Aggregation entry point.
1330+
1331+
**Properties**:
1332+
1333+
- **type** (required): `"aggregation" | "query"`
1334+
- The type of query being generated.
1335+
- **is_compass_web** (optional): `true | undefined`
1336+
12931337
<a name="event--AiPromptSubmittedEvent"></a>
12941338

12951339
### AI Prompt Submitted
@@ -1802,6 +1846,34 @@ a system that doesn't offer a suitable secret storage backend.
18021846
- **context** (required): `"Create Index Modal"`
18031847
- **is_compass_web** (optional): `true | undefined`
18041848

1849+
<a name="event--CreateIndexErrorParsingQueryEvent"></a>
1850+
1851+
### Error parsing query
1852+
1853+
**Properties**:
1854+
1855+
- **context** (required): `"Create Index Modal"`
1856+
- **is_compass_web** (optional): `true | undefined`
1857+
1858+
<a name="event--CreateIndexErrorGettingCoveredQueriesEvent"></a>
1859+
1860+
### Error generating covered queries
1861+
1862+
**Properties**:
1863+
1864+
- **context** (required): `"Create Index Modal"`
1865+
- **is_compass_web** (optional): `true | undefined`
1866+
1867+
<a name="event--UUIDEncounteredEvent"></a>
1868+
1869+
### UUID Encountered
1870+
1871+
**Properties**:
1872+
1873+
- **subtype** (required): `3 | 4`
1874+
- **count** (required): `number`
1875+
- **is_compass_web** (optional): `true | undefined`
1876+
18051877
## Performance Tab
18061878

18071879
<a name="event--CurrentOpShowOperationDetailsEvent"></a>

0 commit comments

Comments
 (0)