pub-dev icon indicating copy to clipboard operation
pub-dev copied to clipboard

Receiving multiple invitations in a short time with the same publisher

Open AlexV525 opened this issue 9 months ago • 2 comments

I was invited to the new publisher. However, multiple consent emails were sent to my account.

Image

AlexV525 avatar Mar 28 '25 11:03 AlexV525

@AlexV525: Thanks for reporting this, we should deduplicate repeated invites.

I assume the person who did the invite clicked on it multiple times? How fast were these repeated clicks? Did they have any browser extension on that is worth mentioning?

isoos avatar Mar 28 '25 11:03 isoos

I assume the person who did the invite clicked on it multiple times? How fast were these repeated clicks? Did they have any browser extension on that is worth mentioning?

@isoos It was on the mobile Chrome and probably with a poor network condition. The "Success" dialog also popped up multiple times as the person described.

AlexV525 avatar Mar 28 '25 11:03 AlexV525

With #8700 it seems that our current deduplication code is correct, but it may be failing because Datastore's eventual consistency returns the already created entities only after the repeated queries are processed.

We may need to use an additional method to detect duplicates, e.g. through reddit cache.

isoos avatar Apr 04 '25 14:04 isoos