Skip to content

fix(share): drop the share_card_result table and the dead live_unavailable refusal - #123

Merged
jm-rivera merged 1 commit into
devfrom
fix/share-card-result-drop
Nov 5, 2026
Merged

jm-rivera merged 1 commit into
devfrom
fix/share-card-result-drop

Conversation

@jm-rivera

@jm-rivera jm-rivera commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Shares are served by dfo-apis, so nothing in the website reads or writes share_card_result. Migration 0024_drop_share_card_result drops the table, and db/schema.ts no longer defines it. shareDialog.ts loses the live_unavailable refusal and the unavailable withdrawal, whose only emitter was liveShare.ts, deleted in #119. The rest of #78's list (liveShare.ts, liveShareResults.ts, LIVE_SHARE_WINDOW_S, DOWNLOAD_PENDING, liveRefusal and the refresh parts of liveBackend.ts) went in #119.

Production still runs code from before #119, but nothing on it reads the table since #77, so the drop is safe in the release that carries #119.

This is the bottom of a stack. Above it: the snapshot poll check (#79), the motion-kit class check (#95) and the footer and caption contrast fix (#35).

Closes #78

Testing: pnpm lint, pnpm lint:css, pnpm typecheck, pnpm test (2282 pass), pnpm build, and the migrate and migrate-shares bundle smoke steps. db/migrate-local.ts applies all 25 migrations and leaves no share_card_result. scripts/share-migration-round-trip.ts passed twice (33 checks each) against a website built from this branch with 0024 applied and the dfo-apis local stack at f8d35d9 seeded. The run needed Accept-Encoding: identity on its fetches, because the /api/v1 proxy sends gzip bodies without Content-Encoding, which is a separate bug.

…lable refusal

Shares are served by dfo-apis, so nothing reads or writes share_card_result. Migration 0024 drops it. shareDialog.ts loses the live_unavailable refusal and the unavailable withdrawal, whose only emitter was the deleted liveShare.ts.

Closes #78
@jm-rivera
jm-rivera added this pull request to stack #127 November 5, 2026 11:00
@jm-rivera jm-rivera changed the title fix/share card result drop fix(share): drop the share_card_result table and the dead live_unavailable refusal Nov 5, 2026
@jm-rivera
jm-rivera marked this pull request as ready for review November 5, 2026 11:19
@jm-rivera
jm-rivera merged commit 18e133d into dev Nov 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the server-side live share refresh stack once shares run on dfo-apis

1 participant