-
Notifications
You must be signed in to change notification settings - Fork 15
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
lure: individualized links for attribution #278
Conversation
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.
>900 lines
oh no
>it's mostly /lib/test-agent and testing code
phew
Haven't looked at /app/reel yet, but have to hop off. I'll be back!
Co-authored-by: fang <[email protected]>
…nto hm/lure-attribution
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.
All good changes, thank you!
Some stragglers from type aliasing remain, and other nits, nothing too serious.
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.
Changes all look good. Thank you!
This changes the flow of lure so that now whoever is requesting a link will create an entry with the bait provider themselves (instead of the group host only, like the existing flow). Reel will send a nonce along with metadata and the bait provider will create the entry with a unique token and then return the nonce with the new token so that reel can update it's entries with the official token.
This creates a link to a particular group which is specific to us, allowing the inviter to start a DM with the joiner. We keep track of what links we've generated using a more stable identifier like group flag so we don't continuously generate new links every time the invite page is visited.