Skip to content

fix: lock while creating the Weekly reviews page - #70

Merged
AmrMsCLL merged 1 commit into
mainfrom
fix/weekly-review-lock
Oct 7, 2026
Merged

AmrMsCLL merged 1 commit into
mainfrom
fix/weekly-review-lock

Conversation

@AmrMsCLL

@AmrMsCLL AmrMsCLL commented Oct 7, 2026

Copy link
Copy Markdown
Member

The check-after-create fix from #68 still let two "Weekly reviews" pages survive when the two requests committed out of order, and CI hit it on #69. Finding or creating the parent now runs under a Postgres advisory lock for that space, like the file store does, so the second request waits and finds the first one's page.

test/integration/weekly-review.spec.ts passed five runs in a row locally.

@github-actions github-actions Bot added the size/s 11-50 changed lines, excluding lockfiles label Oct 7, 2026
@AmrMsCLL
AmrMsCLL merged commit 294d37d into main Oct 7, 2026
7 checks passed
@AmrMsCLL
AmrMsCLL deleted the fix/weekly-review-lock branch October 7, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s 11-50 changed lines, excluding lockfiles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant