govtrack.us-web icon indicating copy to clipboard operation
govtrack.us-web copied to clipboard

Anonymous session data not converted to user session on login: Emoji etc.

Open wbt opened this issue 6 years ago • 1 comments

If I am not logged in and click on an emoji, it indicates that I've made this selection (even on returning to the bill page later) and increments the aggregate count that everyone can see, as expected. However, if I then log in, the emoji selection data associated with the anonymous account does not get associated with my login. Viewing the bill shows me that I have selected none, and clicking again registers the response and increases the count, instead of removing the reaction and decrementing the count as a user might expect. If I then log out, that starts another anonymous session. By logging in and out, I can increment the emoji count as high as I want on any emoji on any bill.

A possible (at least partial) fix for this would be to have the login script look for any stored data associated with an anonymous session, and convert that to the user's logged-in account.

wbt avatar Jul 18 '17 21:07 wbt

Yeah. That's true. The emojis aren't important enough to warrant the extra code needed to migrate the anonymous data on login/account creation, I don't think. I doubt it occurs (for users) very often.

JoshData avatar Jul 21 '17 15:07 JoshData