Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(connection-form): add connection and anonymous id to app name for atlas connections COMPASS-8591 #6750

Merged
merged 3 commits into from
Mar 3, 2025

Conversation

gagik
Copy link
Contributor

@gagik gagik commented Feb 25, 2025

@gagik gagik changed the title WIP: feat(connection-form): add connection and anonymous id to app name feat(connection-form): add connection and anonymous id to app name COMPASS-8591 Feb 27, 2025
@gagik gagik force-pushed the gagik/add-connection-and-telemetry-info branch from 10778a0 to b23fceb Compare February 27, 2025 14:03
@github-actions github-actions bot added the feat label Feb 27, 2025
@gagik gagik marked this pull request as ready for review February 27, 2025 14:08
await waitFor(() => {
screen.getByText('Connected to localhost:27017');
});

expect(onTrackSpy).to.have.been.calledWith('New Connection');

const connectionId = onTrackSpy.firstCall.args[1][
Copy link
Contributor Author

Choose a reason for hiding this comment

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

a bit weird to get it from there though has added benefit of making sure tracking + the URL are consistent.

@@ -14,7 +20,11 @@ export function setAppNameParamIfMissing(
const searchParams =
connectionStringUrl.typedSearchParams<MongoClientOptions>();
if (!searchParams.has('appName') && defaultAppName !== undefined) {
searchParams.set('appName', defaultAppName);
const appName = `${defaultAppName}${
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used - as a separator, open to suggestions if this can be problem causing in ways

@gagik gagik requested a review from addaleax February 28, 2025 12:17
Copy link
Collaborator

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

LGTM with a question

@gagik gagik force-pushed the gagik/add-connection-and-telemetry-info branch from 843f0eb to 0d21b46 Compare March 3, 2025 09:41
@gagik gagik added the no release notes Fix or feature not for release notes label Mar 3, 2025
@gagik gagik changed the title feat(connection-form): add connection and anonymous id to app name COMPASS-8591 feat(connection-form): add connection and anonymous id to app name for atlas connections COMPASS-8591 Mar 3, 2025
@gagik gagik merged commit c06afec into main Mar 3, 2025
54 of 55 checks passed
@gagik gagik deleted the gagik/add-connection-and-telemetry-info branch March 3, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat no release notes Fix or feature not for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants