realtime: enrol reviews in the supabase_realtime publication #79

Merged
raisondetredev merged 1 commit from refs/pull/79/head into main 2026-07-12 21:32:49 +02:00
raisondetredev commented 2026-07-12 21:29:50 +02:00 (Migrated from codeberg.org)

Enrols the reviews table in the supabase_realtime publication so review-derived study progress propagates live cross-device.

Pairs with halkyon-learn #756 (adds ReviewRealtimeService + a per-rating review push). Without this, the new realtime channel subscribes but receives no postgres_changes events, so the streak / activity heatmap / pensum only sync on the next app relaunch.

Reverses the deferral documented in 20260514080000_add_cards_to_realtime.sql ("reviewing-as-an-audit-trail consumers are post-MVP"). RLS still filters realtime events to each user's own reviews.

Already applied manually on the self-hosted learn.halkyon.li instance; this commits the migration to the repo so it matches the live DB and self-hosters get it.

Enrols the `reviews` table in the `supabase_realtime` publication so review-derived study progress propagates live cross-device. Pairs with halkyon-learn #756 (adds `ReviewRealtimeService` + a per-rating review push). Without this, the new realtime channel subscribes but receives no `postgres_changes` events, so the streak / activity heatmap / pensum only sync on the next app relaunch. Reverses the deferral documented in `20260514080000_add_cards_to_realtime.sql` ("reviewing-as-an-audit-trail consumers are post-MVP"). RLS still filters realtime events to each user's own reviews. Already applied manually on the self-hosted `learn.halkyon.li` instance; this commits the migration to the repo so it matches the live DB and self-hosters get it.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
project-halkyon/halkyon-infra!79
No description provided.