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

Add for update lock when updating members #1417

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

garrrikkotua
Copy link
Contributor

@garrrikkotua garrrikkotua commented Sep 4, 2023

Changes proposed ✍️

What

🤖 Generated by Copilot at f3bff48

Added row locking to updateMemberStatus method in member.repo.ts to avoid concurrent status updates. This method is used by the data sink worker to process member events.

🤖 Generated by Copilot at f3bff48

updateMemberStatus
Locks the row for a change
Autumn of conflict

Why

How

🤖 Generated by Copilot at f3bff48

  • Add a query to lock the member row for update in a transaction (link)

Checklist ✅

  • Label appropriately with Feature, Improvement, or Bug.
  • Add screehshots to the PR description for relevant FE changes
  • New backend functionality has been unit-tested.
  • API documentation has been updated (if necessary) (see docs on API documentation).
  • Quality standards are met.

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