-
Notifications
You must be signed in to change notification settings - Fork 201
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
Conversation
10778a0
to
b23fceb
Compare
await waitFor(() => { | ||
screen.getByText('Connected to localhost:27017'); | ||
}); | ||
|
||
expect(onTrackSpy).to.have.been.calledWith('New Connection'); | ||
|
||
const connectionId = onTrackSpy.firstCall.args[1][ |
There was a problem hiding this comment.
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}${ |
There was a problem hiding this comment.
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
There was a problem hiding this 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
843f0eb
to
0d21b46
Compare
See COMPASS-8591