-
Notifications
You must be signed in to change notification settings - Fork 0
Fix identify #61
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
Fix identify #61
Conversation
P-1198 Empty address for identify calls
We stopped getting addresses in identify calls since the last SDK release |
| providerName?: string; | ||
| userId?: string; | ||
| rdns?: string; | ||
| }): Promise<void>; |
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.
properties?: IFormoEventProperties,
context?: IFormoEventContext,
callback?: (...args: unknown[]) => void
why r u removing these ?
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.
Mistake, let me add it back
| }; | ||
|
|
||
| // TODO: enable this | ||
| // this.currentAddress = address; |
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.
If an address is set by a previous identify or connect event, all subsequent events should have it
|
|
||
| // TODO: enable this | ||
| // this.currentAddress = address; | ||
| // if (userId) this.userId = userId || null; |
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.
If a userId is set by a previous identify or connect event, all subsequent events should have it
* Update SDK to follow 2.0 event spec * Refactor * Refactor * Refactor * Add Track event type * refactor with switch case * Remove comment, refactor * Add version generator, rename event type, change event endpoint * Refactor Event Factory, receive additional properties, context, callback as parameters * Fix identify (#61) * Fix identify * Fix merge * Fix interface * Define generateMessageId helper function * Rename timestamp to originalTimestamp * Add sent_at * Generate sent_at once for the entire batch * Update EVENTS_API_URL * Add user id tracking property, pass user id and address as optional parameters if they're set --------- Co-authored-by: Huỳnh Thanh Tâm <[email protected]>
Identify can no longer autodetect addresses, only an explicit connect event can get it now.
This PR simplifies the
identifyfunction