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

[USER MODERATION] - 4th deliverable - lock moderation actions #102

Closed
Tracked by #2290
alejandromumo opened this issue Aug 11, 2023 · 0 comments · Fixed by #101 or inveniosoftware/invenio-cache#23
Closed
Tracked by #2290

Comments

@alejandromumo
Copy link
Member

alejandromumo commented Aug 11, 2023

In this issue, we need to add a locking mechanism on user moderation actions (e.g. block, approve, restore) to avoid concurrent moderation actions on the same user.

The main concern about these requests is that we could end up with an inconsistent user state. For example:

  • An admin blocks a user in the UI
  • The admin immediately tries to restore the same user.

If we are not careful, the previous example could into a situation where the user appears to be restored (e.g. not blocked) but the records were not restored yet since they were being deleted when the second request was received.

See the discussion notes for more information on the issue

@alejandromumo alejandromumo self-assigned this Aug 11, 2023
@alejandromumo alejandromumo transferred this issue from inveniosoftware/invenio-app-rdm Aug 11, 2023
@alejandromumo alejandromumo removed their assignment Aug 14, 2023
@alejandromumo alejandromumo removed their assignment Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants