Repository navigation
WPB-29581: migrate invitations to PostGreSQL - #5649
Open
blackheaven wants to merge 5 commits into
Open
blackheaven wants to merge 5 commits into
blackheaven wants to merge 5 commits into
Conversation
blackheaven
force-pushed
the
gdifolco/WPB-29581-migration-postgres-invitations
branch
2 times, most recently
from
October 23, 2026 13:59
90ba02c to
9dbccef
Compare
2 tasks done
blackheaven
force-pushed
the
gdifolco/WPB-29581-migration-postgres-invitations
branch
from
October 29, 2026 15:00
9dbccef to
8d5f523
Compare
akshaymankar
requested changes
Oct 29, 2026
akshaymankar
left a comment
Member
There was a problem hiding this comment.
Partial review. I haven't looked deeper into queries and DB design yet.
blackheaven
force-pushed
the
gdifolco/WPB-29581-migration-postgres-invitations
branch
from
November 4, 2026 11:29
a20a811 to
06cbb69
Compare
akshaymankar
self-requested a review
November 5, 2026 09:18
blackheaven
force-pushed
the
gdifolco/WPB-29581-migration-postgres-invitations
branch
from
November 5, 2026 12:09
06cbb69 to
b6b9790
Compare
Contributor
Author
|
Addressed the review asks, mirroring the connections migration (#5685):
No new config keys and no schema/bookkeeping-table change: lock acquisition itself is the progress barrier, same as #5685. History cleaned (mechanical fix commits folded, branch rebased onto current develop); |
… delete copied Cassandra partitions, route dual-mode reads through Postgres
…on copy lock; index expires_at - New MigrationLockable (TeamId, EmailAddress) instance: its advisory key is the team's "team_invitation" lock, so InsertPendingScimUser / DeletePendingScimUser dual-writes serialize against the copy loop's exclusive team lock and a deleted pending-SCIM row can no longer be resurrected by a stale re-copy. - team_invitation_expires_at_idx: the daily expire-team-invitations pg_cron DELETE scans on expires_at; the table fills fast. - Document why insertInvitationStatement may use ON CONFLICT DO UPDATE (all callers hold the team migration lock).
…gs, migration tests)
blackheaven
force-pushed
the
gdifolco/WPB-29581-migration-postgres-invitations
branch
from
November 13, 2026 12:07
b46def7 to
54a6474
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://wearezeta.atlassian.net/browse/WPB-29581
Checklist
changelog.d