Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,17 @@ const connectWithOptions = (
);
}

// This is used for Data Explorer connection latency tracing
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify and document why it's a fix and why it's important that this line is exactly here? Without this chances are high somebody will just move it again by accident

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, ideally I'm trynna see if I could just cover this with a test haha

log.info(
mongoLogId(1_001_000_006),
'Compass Connection Attempt Succeeded',
'Connection attempt succeeded',
{
clusterName: connectionInfo.atlasMetadata?.clusterName,
connectionId: connectionInfo.id,
}
);

track(
'New Connection',
async () => {
Expand Down Expand Up @@ -1842,17 +1853,6 @@ const connectWithOptions = (
connectionInfo
);

// This is used for Data Explorer connection latency tracing
log.info(
mongoLogId(1_001_000_006),
'Compass Connection Attempt Succeeded',
'Connection attempt succeeded',
{
clusterName: connectionInfo.atlasMetadata?.clusterName,
connectionId: connectionInfo.id,
}
);

connectionProgress.openConnectionSucceededToast(connectionInfo);

// Emit before changing state because some plugins rely on this
Expand Down
Loading