Skip to content

WPB-29576: migrate user pending activation store to PostGreSQL - #5639

Open
blackheaven wants to merge 7 commits into
developfrom
gdifolco/WPB-29576-migration-postgres-user-pending-activation
Open

blackheaven wants to merge 7 commits into
developfrom
gdifolco/WPB-29576-migration-postgres-user-pending-activation

Conversation

@blackheaven

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-29576

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@blackheaven
blackheaven requested review from a team as code owners October 22, 2026 16:15
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Oct 22, 2026
@blackheaven
blackheaven force-pushed the gdifolco/WPB-29576-migration-postgres-user-pending-activation branch 4 times, most recently from 60f06dc to 1377bfc Compare October 29, 2026 16:25
@blackheaven
blackheaven force-pushed the gdifolco/WPB-29576-migration-postgres-user-pending-activation branch 3 times, most recently from c2587d7 to 7ca8572 Compare November 10, 2026 08:29
…rnalPaging parameterization, rerere repairs)
…-off dual-write test phase

- UserPendingActivationStore/Postgres.hs: List now pages with WHERE user_id >
  coalesce(last, min-uuid) ORDER BY user_id LIMIT 1000 instead of serving the
  whole table as one page. The InternalPage continuation runs in Cassandra's
  Client monad, so pages carry the last user_id as a Typeable-pinned marker in
  the Page row slot and continuation round-trips through the store effect
  (never the Client continuation).
- Wire.Sem.Paging.Cassandra: Typeable s constraint on the existential
  InternalPagingState/InternalPage states so interpreters can recover their own
  markers soundly via cast; ground types have Typeable automatically, so this
  is transparent to all existing construction sites.
- Test/Migration/UserPendingActivation.hs: add a dual-write worker-off phase
  whose mirrored write must be readable after the cutover.
@blackheaven
blackheaven force-pushed the gdifolco/WPB-29576-migration-postgres-user-pending-activation branch from 7ca8572 to 1e7d625 Compare November 13, 2026 11:15

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants