Skip to content

Commit bde9f61

Browse files
committed
Update agg pipeline builder
1 parent c837d5f commit bde9f61

File tree

5 files changed

+52
-52
lines changed

5 files changed

+52
-52
lines changed

.evergreen.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ functions:
7171
# Load environment variables generated by `configure`
7272
. ~/compass_env.sh
7373
echo "//registry.npmjs.org/:_authToken=${compass_npm_token}" >> .npmrc
74-
npm install -g node-gyp yarn
74+
npm install -g npm node-gyp yarn
75+
76+
# Trying to get rid of scandir npm errors.
77+
npm cache clean --force
78+
7579
npm install
7680
npm run evergreen-expansions ${compass_distribution}
7781
cat expansions.yml
@@ -87,9 +91,6 @@ functions:
8791
# Load environment variables
8892
. ~/compass_env.sh
8993
90-
# Trying to get rid of scandir npm errors.
91-
npm cache clean --force
92-
9394
# Run static analysis on code and project configuration
9495
npm run check;
9596

package-lock.json

Lines changed: 39 additions & 39 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
"url": "git://github.com/10gen/compass.git"
211211
},
212212
"dependencies": {
213-
"@mongodb-js/compass-aggregations": "^0.2.10",
213+
"@mongodb-js/compass-aggregations": "^0.2.13",
214214
"@mongodb-js/compass-auth-kerberos": "^0.1.0",
215215
"@mongodb-js/compass-auth-ldap": "^0.1.0",
216216
"@mongodb-js/compass-auth-x509": "^0.1.0",

src/internal-plugins/metrics/lib/features.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,16 +154,15 @@ const AggregationResource = BaseResource.extend({
154154
}
155155
});
156156

157-
// Resource for the connect window.
158-
const ConnectResource = BaseResource.extend({
159-
id: 'Connect',
157+
// Resource for the atlas link.
158+
const AtlasLinkResource = BaseResource.extend({
159+
id: 'AtlasLink',
160160
eventTrackers: ['stitch'],
161-
createAtlasCluster: function(metadata, callback) {
161+
clicked: function(metadata, callback) {
162162
this._send_event(metadata, callback);
163163
}
164164
});
165165

166-
167166
// Documents resources uses 'loaded' as action
168167
const DocumentsResource = BaseResource.extend({
169168
id: 'Documents',
@@ -244,7 +243,7 @@ const ExportResource = BaseResource.extend({
244243
featureResources['Geo Data'] = new GeoDataResource();
245244
featureResources['Auto Update'] = new AutoUpdateResource();
246245
featureResources.Collection = new CollectionResource();
247-
featureResources.Connect = new ConnectResource();
246+
featureResources.AtlasLink = new AtlasLinkResource();
248247
featureResources.Deployment = new DeploymentResource();
249248
featureResources.Schema = new SchemaResource();
250249
featureResources.Indexes = new IndexesResource();

src/internal-plugins/metrics/lib/rules.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ module.exports = [
233233
},
234234
{
235235
registryEvent: 'create-atlas-cluster-clicked',
236-
resource: 'Connect',
237-
action: 'createAtlasCluster',
236+
resource: 'AtlasLink',
237+
action: 'clicked',
238238
condition: () => true,
239239
metadata: () => ({})
240240
},

0 commit comments

Comments
 (0)