incubator-answer icon indicating copy to clipboard operation
incubator-answer copied to clipboard

Data Inconsistency issue - Sometimes user reputation doesn't change to 1 after activation

Open surapuramakhil opened this issue 1 year ago • 10 comments

Describe the bug

it's been noticed that when user have signed up. Some of them have zero reputation instead of 1

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots or video to help explain your problem.

Platform

  • Device: [e.g. Desktop, Mobile]
  • OS: [e.g. macOS]
  • Browser and version: [e.g. Chrome, Safari]
  • Version: [e.g. v1.2.0]

surapuramakhil avatar Feb 08 '24 18:02 surapuramakhil

@fenbox FYI

surapuramakhil avatar Feb 08 '24 18:02 surapuramakhil

observed with sqlite db

surapuramakhil avatar Feb 08 '24 18:02 surapuramakhil

If the account is inactive, then their reputation is 0.

fenbox avatar Feb 09 '24 01:02 fenbox

can you explain flow of how an user goes to inactive?

This is what happened. User Signed Up. User tried explore other sections without finishing activation. (user became inactive). User then done activation via activation mail (Now still user reputation is zero, that a problem, user can't do anything on app. they can't post question, then can't answer, they can't comment)

I have literally went and done db updated to reset reputation to 1.

surapuramakhil avatar Feb 09 '24 03:02 surapuramakhil

This is what happened. User Signed Up. User tried explore other sections without finishing activation. (user became inactive). User then done activation via activation mail (Now still user reputation is zero, that a problem, user can't do anything on app. they can't post question, then can't answer, they can't comment)

What's your Answer version?

After the mail is activated, the reputation should go from 0 to 1, and the case where it's still 0 may be something we need to reproduce.

fenbox avatar Feb 10 '24 00:02 fenbox

tag: v1.2.5-RC2

This is what happened. User Signed Up. User tried explore other sections without finishing activation. (user became inactive). User then done activation via activation mail (Now still user reputation is zero, that a problem, user can't do anything on app. they can't post question, then can't answer, they can't comment)

What's your Answer version?

After the mail is activated, the reputation should go from 0 to 1, and the case where it's still 0 may be something we need to reproduce.

surapuramakhil avatar Feb 10 '24 02:02 surapuramakhil

image image

@surapuramakhil I used the same version for testing. The reputation is correct after email activation. In that case, can you provide more information?

LinkinStars avatar Feb 18 '24 04:02 LinkinStars

@LinkinStars can you try messing (hacking) with account before activation. something like before activating go to other sections of page something like like add question (doing stuff which inactive user can't do) and do activation

surapuramakhil avatar Feb 18 '24 12:02 surapuramakhil

PS note: I have tired doing repro in answer meta, I wasn't able to do that repro again. this time I got reputation as 1.

I guess its fine as long as number of cases is under reasonable

surapuramakhil avatar Feb 18 '24 12:02 surapuramakhil

@LinkinStars can you try messing (hacking) with account before activation. something like before activating go to other sections of page something like like add question (doing stuff which inactive user can't do)

Normally, the user should not be able to do anything before activation. Sure, thanks for the feedback and I'll continue to verify other possibilities.

LinkinStars avatar Feb 19 '24 02:02 LinkinStars