Skip to content

Commit b87e06b

Browse files
authored
Cherry pick for ga 1.22.0 (#2005)
* Bump mongosh compass-shell to 0.2.2 (#2004) * Remove shell from readonly (#1989) * COMPASS-4131: remove compass community (#1982)
1 parent 4ebbfa4 commit b87e06b

File tree

10 files changed

+3299
-4804
lines changed

10 files changed

+3299
-4804
lines changed

.evergreen.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,6 @@ tasks:
396396
vars:
397397
compass_distribution: compass
398398
- func: 'save osx artifacts'
399-
- func: package
400-
vars:
401-
compass_distribution: compass-community
402-
- func: publish
403-
vars:
404-
compass_distribution: compass-community
405-
- func: 'save osx artifacts'
406399
- func: package
407400
vars:
408401
compass_distribution: compass-isolated
@@ -499,23 +492,6 @@ tasks:
499492
- func: 'save rhel artifacts'
500493
variants: [rhel]
501494

502-
- name: package-and-publish-compass-community
503-
depends_on: [compile]
504-
commands:
505-
- func: restore
506-
- func: package
507-
vars:
508-
compass_distribution: compass-community
509-
- func: publish
510-
vars:
511-
compass_distribution: compass-community
512-
- func: 'save windows artifacts'
513-
variants: [windows]
514-
- func: 'save linux artifacts'
515-
variants: [ubuntu]
516-
- func: 'save rhel artifacts'
517-
variants: [rhel]
518-
519495
- name: package-and-publish-compass-isolated
520496
depends_on: [compile]
521497
commands:
@@ -675,7 +651,6 @@ buildvariants:
675651
# - name: test-functional-34x-server
676652
# - name: test-functional-26x-server
677653
- name: package-and-publish-compass
678-
- name: package-and-publish-compass-community
679654
- name: package-and-publish-compass-isolated
680655
- name: package-and-publish-compass-readonly
681656

@@ -694,7 +669,6 @@ buildvariants:
694669
# - name: test-connect-plugin
695670
# - name: test-aggregation-builder-plugin
696671
- name: package-and-publish-compass
697-
- name: package-and-publish-compass-community
698672
- name: package-and-publish-compass-isolated
699673
- name: package-and-publish-compass-readonly
700674
- name: rhel
@@ -705,6 +679,5 @@ buildvariants:
705679
- name: verify
706680
# - name: test-functional
707681
- name: package-and-publish-compass
708-
- name: package-and-publish-compass-community
709682
- name: package-and-publish-compass-isolated
710683
- name: package-and-publish-compass-readonly

package-lock.json

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

package.json

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -80,48 +80,6 @@
8080
"index"
8181
]
8282
},
83-
"compass-community": {
84-
"name": "mongodb-compass-community",
85-
"productName": "MongoDB Compass Community",
86-
"bundleId": "com.mongodb.compass-community",
87-
"plugins-directory": ".mongodb/compass-community/plugins",
88-
"upgradeCode": "EAF69C0D-A16E-44DA-A47F-37745230AAF0",
89-
"plugins": [
90-
"node_modules/@mongodb-js/compass-app-stores",
91-
"node_modules/@mongodb-js/compass-aggregations",
92-
"node_modules/@mongodb-js/compass-auto-updates",
93-
"node_modules/@mongodb-js/compass-export-to-language",
94-
"node_modules/@mongodb-js/compass-collection",
95-
"node_modules/@mongodb-js/compass-collections-ddl",
96-
"node_modules/@mongodb-js/compass-collection-stats",
97-
"node_modules/@mongodb-js/compass-community-warning",
98-
"node_modules/@mongodb-js/compass-connect",
99-
"node_modules/@mongodb-js/compass-crud",
100-
"node_modules/@mongodb-js/compass-database",
101-
"node_modules/@mongodb-js/compass-databases-ddl",
102-
"node_modules/@mongodb-js/compass-field-store",
103-
"node_modules/@mongodb-js/compass-find-in-page",
104-
"node_modules/@mongodb-js/compass-home",
105-
"node_modules/@mongodb-js/compass-import-export",
106-
"node_modules/@mongodb-js/compass-deployment-awareness",
107-
"node_modules/@mongodb-js/compass-loading",
108-
"node_modules/@mongodb-js/compass-metrics",
109-
"node_modules/@mongodb-js/compass-query-bar",
110-
"node_modules/@mongodb-js/compass-query-history",
111-
"node_modules/@mongodb-js/compass-plugin-info",
112-
"node_modules/@mongodb-js/compass-instance",
113-
"node_modules/@mongodb-js/compass-server-version",
114-
"node_modules/@mongodb-js/compass-shell",
115-
"node_modules/@mongodb-js/compass-sidebar",
116-
"node_modules/@mongodb-js/compass-ssh-tunnel-status",
117-
"node_modules/@mongodb-js/compass-status",
118-
"node_modules/@mongodb-js/compass-indexes",
119-
"node_modules/@mongodb-js/compass-explain-plan"
120-
],
121-
"styles": [
122-
"index"
123-
]
124-
},
12583
"compass-readonly": {
12684
"name": "mongodb-compass-readonly",
12785
"productName": "MongoDB Compass Readonly",
@@ -159,7 +117,6 @@
159117
"node_modules/@mongodb-js/compass-instance",
160118
"node_modules/@mongodb-js/compass-serverstats",
161119
"node_modules/@mongodb-js/compass-server-version",
162-
"node_modules/@mongodb-js/compass-shell",
163120
"node_modules/@mongodb-js/compass-sidebar",
164121
"node_modules/@mongodb-js/compass-ssh-tunnel-status",
165122
"node_modules/@mongodb-js/compass-status",
@@ -299,7 +256,6 @@
299256
"@mongodb-js/compass-collection": "^2.0.7",
300257
"@mongodb-js/compass-collection-stats": "^5.0.5",
301258
"@mongodb-js/compass-collections-ddl": "^3.0.3",
302-
"@mongodb-js/compass-community-warning": "^0.0.8",
303259
"@mongodb-js/compass-connect": "^5.4.11",
304260
"@mongodb-js/compass-crud": "^9.0.8",
305261
"@mongodb-js/compass-database": "^1.0.1",
@@ -322,7 +278,7 @@
322278
"@mongodb-js/compass-schema-validation": "^4.0.5",
323279
"@mongodb-js/compass-server-version": "^4.0.1",
324280
"@mongodb-js/compass-serverstats": "^14.0.0",
325-
"@mongodb-js/compass-shell": "^0.0.3",
281+
"@mongodb-js/compass-shell": "^0.2.2",
326282
"@mongodb-js/compass-sidebar": "^3.2.6",
327283
"@mongodb-js/compass-ssh-tunnel-status": "^5.0.1",
328284
"@mongodb-js/compass-status": "^4.0.1",

src/app/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,6 @@ var Application = View.extend({
297297
prefs.lastKnownVersion = currentVersion;
298298
save = true;
299299
}
300-
if (process.env.HADRON_PRODUCT === 'mongodb-compass-community') {
301-
prefs.enableMaps = false;
302-
prefs.enableFeedbackPanel = false;
303-
save = true;
304-
}
305300
if (save) {
306301
prefs.save(null, {
307302
success: done.bind(null, null),

src/app/network-optin/index.jade

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@
77
p To enhance the user experience, Compass can integrate with 3rd party services, which requires external network requests. Please choose from the settings below:
88
form
99
ul
10-
if !isCommunity
11-
li
12-
label
13-
input(type='checkbox', name='enableFeedbackPanel', data-hook='product-feedback-checkbox', data-test-id='product-feedback-checkbox')
14-
span Enable Product Feedback Tool
15-
p.option-description Enables a tool for sending feedback or talking to our Product and Development teams directly from Compass.
10+
li
11+
label
12+
input(type='checkbox', name='enableFeedbackPanel', data-hook='product-feedback-checkbox', data-test-id='product-feedback-checkbox')
13+
span Enable Product Feedback Tool
14+
p.option-description Enables a tool for sending feedback or talking to our Product and Development teams directly from Compass.
1615

17-
li
18-
label
19-
input(type='checkbox', name='enableMaps', data-hook='enable-maps-checkbox', data-test-id='enable-maps-checkbox')
20-
span Enable Geographic Visualizations
21-
p.option-description Allow Compass to make requests to a 3rd party mapping service.
16+
li
17+
label
18+
input(type='checkbox', name='enableMaps', data-hook='enable-maps-checkbox', data-test-id='enable-maps-checkbox')
19+
span Enable Geographic Visualizations
20+
p.option-description Allow Compass to make requests to a 3rd party mapping service.
2221

2322
li
2423
label

src/app/network-optin/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ var NetworkOptInView = View.extend({
2222
type: 'string',
2323
required: true,
2424
default: 'Start using Compass'
25-
},
26-
isCommunity: {
27-
type: 'boolean',
28-
required: true,
29-
default: process.env.HADRON_PRODUCT === 'mongodb-compass-community'
3025
}
3126
},
3227
events: {

src/app/tour/features.js

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,88 +4,77 @@ module.exports = [
44
description: 'Real-time server statistics let you view key server metrics and database operations. Drill down into database operations easily and understand your most active collections.',
55
image: 'performance.png',
66
version: '1.5.0',
7-
initial: true,
8-
community: false
7+
initial: true
98
},
109
{
1110
title: 'Sidebar. Redesigned.',
1211
description: 'See with one glance what server you are connected to. Navigate between instance, database and collection level, with powerful filtering of your namespaces.',
1312
image: 'sidebar.png',
1413
version: '1.5.0',
15-
initial: true,
16-
community: true
14+
initial: true
1715
},
1816
{
1917
title: 'Visualize your Schema.',
2018
description: 'MongoDB Compass analyzes your documents and displays rich structures within your collections through an intuitive GUI. It allows you to quickly visualize and explore your schema to understand the frequency, types and ranges of fields in your data set.',
2119
image: 'schema.png',
2220
version: '1.5.0',
23-
initial: true,
24-
community: false
21+
initial: true
2522
},
2623
{
2724
title: 'Build Geo Queries.',
2825
description: 'Visualize, understand, and work with your geospatial data. Point and click to construct sophisticated queries, execute them with the push of a button and Compass will display your results both graphically and as sets of JSON documents.',
2926
image: 'geo.png',
3027
version: '1.5.0',
31-
initial: true,
32-
community: false
28+
initial: true
3329
},
3430
{
3531
title: 'Interactive Document Editor.',
3632
description: 'Modify existing documents with greater confidence using the intuitive visual editor, or insert new documents and clone or delete existing ones in just a few clicks.',
3733
image: 'crud.png',
3834
version: '1.5.0',
39-
initial: true,
40-
community: true
35+
initial: true
4136
},
4237
{
4338
title: 'Visual Explain Plans.',
4439
description: 'Know how queries are running through an easy-to-understand GUI that helps you identify and resolve performance issues.',
4540
image: 'explain.png',
4641
version: '1.5.0',
47-
initial: true,
48-
community: true
42+
initial: true
4943
},
5044
{
5145
title: 'Index Management.',
5246
description: 'Understand the type and size of your indexes, their utilization and special properties. Add and remove indexes at the click of a button.',
5347
image: 'indexes.png',
5448
version: '1.5.0',
55-
initial: true,
56-
community: true
49+
initial: true
5750
},
5851
{
5952
title: 'Schema Validation.',
6053
description: 'Create schema validation rules with a smart editor that auto-suggests rule components. See immediate results with a live preview and revise rules as needed. See Schema Validation in the MongoDB documentation for more information.',
6154
image: 'validation.png',
6255
version: '1.8.0',
6356
force: true,
64-
initial: true,
65-
community: false
57+
initial: true
6658
},
6759
{
6860
title: 'Improved CRUD',
6961
description: 'Better editing with validation of individual BSON types.',
7062
image: 'improved-crud.png',
7163
version: '1.9.0',
72-
initial: true,
73-
community: true
64+
initial: true
7465
},
7566
{
7667
title: 'Deployment Awareness',
7768
description: 'Replica set aware connections allow for continued use during replica set configuration changes and provides additional information of the connected cluster.',
7869
image: 'replica-set-name.png',
7970
version: '1.9.0',
80-
initial: true,
81-
community: true
71+
initial: true
8272
},
8373
{
8474
title: 'Query History',
8575
description: 'Easily access and manage executed queries and save favorites for often executed queries.',
8676
image: 'query-history.png',
8777
version: '1.9.0',
88-
initial: true,
89-
community: true
78+
initial: true
9079
}
9180
];

src/app/tour/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ var TourView = View.extend({
118118
var previous = model.previousVersion || '0.0.0';
119119

120120
model.features = _.filter(FEATURES, function(feature) {
121-
if (process.env.HADRON_PRODUCT === 'mongodb-compass-community' && !feature.community) {
122-
return false;
123-
}
124121
if (model.force && feature.initial) {
125122
return true;
126123
}

src/main/application.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Application.prototype.setupJavaScriptArguments = function() {
3737
*/
3838
const API_PRODUCT = {
3939
'mongodb-compass': 'compass',
40-
'mongodb-compass-community': 'compass-community',
4140
'mongodb-compass-readonly': 'compass-readonly'
4241
};
4342

src/setup-hadron-distribution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const pkg = require('../package.json');
22

33
/**
44
* @note: HADRON_DISTRIBUTION is set via command line args in dev, for example:
5-
* npm start compass-community
5+
* npm start compass-readonly
66
*/
77
if (!process.env.HADRON_DISTRIBUTION) {
88
const distribution = pkg.distribution || pkg.config.hadron.distributions.default;

0 commit comments

Comments
 (0)