Skip to content

Commit

Permalink
fix: disable saved Connections Loaded event (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
alenakhineika authored Aug 23, 2023
1 parent 896ac37 commit 801c9b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/connectionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ export default class ConnectionController {
this.eventEmitter.emit(DataServiceEventTypes.CONNECTIONS_DID_CHANGE);
}

this._telemetryService.trackSavedConnectionsLoaded({
// TODO: re-enable with fewer 'Saved Connections Loaded' events
// https://jira.mongodb.org/browse/VSCODE-462
/* this._telemetryService.trackSavedConnectionsLoaded({
saved_connections: globalAndWorkspaceConnections.length,
loaded_connections: loadedConnections.length,
connections_with_secrets_in_keytar: loadedConnections.filter(
Expand All @@ -234,7 +236,7 @@ export default class ConnectionController {
connection.secretStorageLocation ===
SecretStorageLocation.SecretStorage
).length,
});
}); */

if (connectionsThatDidNotMigrate.length) {
log.error(
Expand Down
2 changes: 1 addition & 1 deletion src/test/suite/connectionController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ suite('Connection Controller Test Suite', function () {
assert.strictEqual(trackStub.notCalled, true);
});

test('should track SAVED_CONNECTIONS_LOADED event on load of saved connections', async () => {
test.skip('should track SAVED_CONNECTIONS_LOADED event on load of saved connections', async () => {
testSandbox.replace(testStorageController, 'get', (key, storage) => {
if (
storage === StorageLocation.WORKSPACE ||
Expand Down
2 changes: 1 addition & 1 deletion src/test/suite/telemetry/telemetryService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ suite('Telemetry Controller Test Suite', () => {
});
});

test('track saved connections loaded', () => {
test.skip('track saved connections loaded', () => {
testTelemetryService.trackSavedConnectionsLoaded({
saved_connections: 3,
loaded_connections: 3,
Expand Down

0 comments on commit 801c9b7

Please sign in to comment.