Skip to content

Commit d760dcf

Browse files
authored
Filter out community features (#1268)
1 parent 7c4c80f commit d760dcf

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

src/app/tour/features.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,63 @@ 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
7+
initial: true,
8+
community: false
89
},
910
{
1011
title: 'Sidebar. Redesigned.',
1112
description: 'See with one glance what server you are connected to. Navigate between instance, database and collection level, with powerful filtering of your namespaces.',
1213
image: 'sidebar.png',
1314
version: '1.5.0',
14-
initial: true
15+
initial: true,
16+
community: true
1517
},
1618
{
1719
title: 'Visualize your Schema.',
1820
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.',
1921
image: 'schema.png',
2022
version: '1.5.0',
21-
initial: true
23+
initial: true,
24+
community: false
2225
},
2326
{
2427
title: 'Build Geo Queries.',
2528
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.',
2629
image: 'geo.png',
2730
version: '1.5.0',
28-
initial: true
31+
initial: true,
32+
community: false
2933
},
3034
{
3135
title: 'Interactive Document Editor.',
3236
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.',
3337
image: 'crud.png',
3438
version: '1.5.0',
35-
initial: true
39+
initial: true,
40+
community: true
3641
},
3742
{
3843
title: 'Visual Explain Plans.',
3944
description: 'Know how queries are running through an easy-to-understand GUI that helps you identify and resolve performance issues.',
4045
image: 'explain.png',
4146
version: '1.5.0',
42-
initial: true
47+
initial: true,
48+
community: true
4349
},
4450
{
4551
title: 'Index Management.',
4652
description: 'Understand the type and size of your indexes, their utilization and special properties. Add and remove indexes at the click of a button.',
4753
image: 'indexes.png',
4854
version: '1.5.0',
49-
initial: true
55+
initial: true,
56+
community: true
5057
},
5158
{
5259
title: 'Document Validation.',
5360
description: 'Create and modify rules that validate your data using a simple point and click interface. CRUD support lets you fix data quality issues easily in individual documents.',
5461
image: 'validation.png',
5562
version: '1.5.0',
56-
initial: true
63+
initial: true,
64+
community: false
5765
}
5866
];

src/app/tour/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ var TAB_KEY = 9;
1717
var ENTER_KEY = 13;
1818
var SPACE_KEY = 32;
1919

20+
const pkg = require('../../../package.json');
21+
const COMMUNITY = 'mongodb-compass-community';
22+
const DISTRIBUTION = pkg.config.hadron.distributions[process.env.HADRON_DISTRIBUTION];
23+
2024
/**
2125
* The feature tour highlights some signature features of MongoDB Compass.
2226
* When Compass is started for the first time, it shows all the features in
@@ -118,6 +122,9 @@ var TourView = View.extend({
118122
var previous = model.previousVersion || '0.0.0';
119123

120124
model.features = _.filter(FEATURES, function(feature) {
125+
if (DISTRIBUTION.name === COMMUNITY && !feature.community) {
126+
return false;
127+
}
121128
if (model.force && feature.initial) {
122129
return true;
123130
}

0 commit comments

Comments
 (0)