Skip to content

Commit 6fa8695

Browse files
committed
Remove charts plugin from beta
1 parent f241af9 commit 6fa8695

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

package.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"node_modules/@mongodb-js/compass-serverstats",
4040
"node_modules/@mongodb-js/compass-document-validation",
4141
"node_modules/@mongodb-js/compass-deployment-awareness",
42-
"node_modules/@mongodb-js/compass-charts",
4342
"node_modules/@mongodb-js/compass-query-history"
4443
],
4544
"styles": [
@@ -53,22 +52,7 @@
5352
"packages": [
5453
"node_modules/@mongodb-js/compass-serverstats",
5554
"node_modules/@mongodb-js/compass-document-validation",
56-
"node_modules/@mongodb-js/compass-deployment-awareness",
57-
"node_modules/@mongodb-js/compass-charts"
58-
],
59-
"styles": [
60-
"index"
61-
]
62-
},
63-
"compass-charts": {
64-
"name": "mongodb-compass-charts",
65-
"productName": "MongoDB Compass Visualisations",
66-
"plugins-directory": ".mongodb/compass-charts/plugins",
67-
"packages": [
68-
"node_modules/@mongodb-js/compass-serverstats",
69-
"node_modules/@mongodb-js/compass-document-validation",
70-
"node_modules/@mongodb-js/compass-deployment-awareness",
71-
"node_modules/@mongodb-js/compass-charts"
55+
"node_modules/@mongodb-js/compass-deployment-awareness"
7256
],
7357
"styles": [
7458
"index"
@@ -141,7 +125,6 @@
141125
"url": "git://github.com/10gen/compass.git"
142126
},
143127
"dependencies": {
144-
"@mongodb-js/compass-charts": "^0.2.3",
145128
"@mongodb-js/compass-deployment-awareness": "3.2.0",
146129
"@mongodb-js/compass-document-validation": "4.1.0",
147130
"@mongodb-js/compass-serverstats": "9.1.1",

src/app/models/preferences.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,6 @@ const preferencesProps = {
231231
}
232232
};
233233

234-
const prerelease = semver.prerelease(pkg.version);
235-
if (!prerelease || prerelease[0] !== 'dev') {
236-
// COMPASS-1340: Disable chartView for all builds except development,
237-
// until it can be moved into a new product coupled to the Charts Server.
238-
delete preferencesProps.chartView;
239-
}
240-
241234
const Preferences = Model.extend(storageMixin, {
242235
props: preferencesProps,
243236
extraProperties: 'ignore',

src/internal-packages/collection/lib/components/index.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ class Collection extends React.Component {
7777

7878
roleFiltered(role) {
7979
const serverVersion = app.instance.build.version;
80-
return (!app.isFeatureEnabled('chartView') && role.name === 'CHARTS') ||
81-
(role.minimumServerVersion && !semver.gte(serverVersion, role.minimumServerVersion));
80+
return role.minimumServerVersion && !semver.gte(serverVersion, role.minimumServerVersion);
8281
}
8382

8483
renderReadonly() {

0 commit comments

Comments
 (0)