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

lure: individualized links for attribution #278

Merged
merged 11 commits into from
Sep 4, 2024
Merged

Conversation

arthyn
Copy link
Member

@arthyn arthyn commented Aug 29, 2024

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.

@arthyn arthyn requested review from Fang- and mikolajpp August 29, 2024 22:05
Copy link
Member

@Fang- Fang- left a 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!

desk/sur/reel.hoon Outdated Show resolved Hide resolved
desk/app/bait.hoon Outdated Show resolved Hide resolved
desk/app/bait.hoon Outdated Show resolved Hide resolved
desk/app/bait.hoon Show resolved Hide resolved
desk/app/bait.hoon Outdated Show resolved Hide resolved
desk/app/bait.hoon Show resolved Hide resolved
@arthyn arthyn requested a review from Fang- September 3, 2024 17:19
Copy link
Member

@Fang- Fang- left a 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.

desk/app/reel.hoon Outdated Show resolved Hide resolved
desk/app/reel.hoon Outdated Show resolved Hide resolved
desk/app/reel.hoon Show resolved Hide resolved
desk/app/bait.hoon Outdated Show resolved Hide resolved
desk/app/bait.hoon Show resolved Hide resolved
desk/app/bait.hoon Show resolved Hide resolved
desk/app/bait.hoon Outdated Show resolved Hide resolved
desk/app/bait.hoon Outdated Show resolved Hide resolved
desk/app/bait.hoon Outdated Show resolved Hide resolved
@arthyn arthyn requested a review from Fang- September 3, 2024 21:35
Copy link
Member

@Fang- Fang- left a 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!

@arthyn arthyn merged commit 7e109b1 into develop Sep 4, 2024
1 check passed
@arthyn arthyn deleted the hm/lure-attribution branch September 4, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants