fix: prevent concurrent goal reset race conditions#2112
fix: prevent concurrent goal reset race conditions#2112Kokila-chandrakar wants to merge 5 commits into
Conversation
|
@Kokila-chandrakar is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
The PR title says 'Activity Heatmap' but the diff only contains the goal reset race condition fix (goal_reset_version optimistic locking). The ActivityHeatmap component and punch-card API route mentioned in the description are not in the diff. The goal reset fix itself is valid and needed — please open a separate PR for just that fix with the correct title (e.g. 'fix: prevent concurrent goal reset race conditions'). We'll merge it immediately. |
|
Thanks for catching that. I've updated the PR title and description to match the actual changes in the diff. This PR only contains the goal reset race condition fix. Please review again when you get a chance. |
Summary
Fixes a race condition that could occur when multiple goal reset requests are processed simultaneously, preventing inconsistent goal state updates.
Changes
Testing
Closes
Fixes #1145