Skip to content

Deploy mojidata-api D1 blue-green release#38

Merged
mandel59 merged 4 commits into
mainfrom
cloudflare
May 3, 2026
Merged

Deploy mojidata-api D1 blue-green release#38
mandel59 merged 4 commits into
mainfrom
cloudflare

Conversation

@mandel59

@mandel59 mandel59 commented May 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • add unihan_value_ref and switch unihan_fts lookup to indexed reverse references
  • establish the mojidata-api D1 blue/green release flow with create/import/promote helpers
  • add Cache-Control: no-store for API responses so consumers do not need release-specific cache handling
  • promote the deployed 20260503-bg D1 release in wrangler.jsonc

Deployment

Already deployed to Cloudflare Workers:

  • Worker: https://mojidata-api-d1.mandel59.workers.dev
  • Worker version: 8b4a5fd9-6c22-4f8b-a448-4e91c02d9b02
  • MOJIDATA_DB: mojidata-api-d1-mojidata-20260503-bg (7d7a62e6-bc66-4c83-8716-ceab92fb972d)
  • IDSFIND_DB: mojidata-api-d1-idsfind-20260503-bg (950b99cd-dc7f-451f-b7fe-2f01385fb3df)

Rollback manifest from the deploy run: /tmp/mojidata-api-d1-rollback-20260503-bg.json.

Validation

  • corepack yarn workspace @mandel59/mojidata-api test
  • corepack yarn workspace @mandel59/mojidata-api-d1 test
  • corepack yarn mojidata-api:d1:check
  • deployed Worker smoke test for /api/v1/mojidata, /api/v1/ivs-list, and /api/v1/idsfind
  • live response header check confirmed Cache-Control: no-store
  • D1 scan comparison for char=漢&select=unihan_fts: old query read 550,257 rows; new indexed query read 11 rows

Related: #35
Related: #36
Related: #37

mandel59 added 4 commits May 3, 2026 14:40
Generate unihan_value_ref from Unihan values and switch unihan_fts SQL to indexed ref lookups for API and CLI paths.

Related: #35

Generated-by: Codex/GPT-5.4
Add release and promotion helpers for mojidata-api D1 deployments, make direct active imports opt-in only, and document the new create/import/promote/rollback flow.

Related: #36

Generated-by: Codex/GPT-5.4
Add no-store cache headers to mojidata-api JSON responses, document that mojidata-web-app can keep a stable Worker URL during D1 blue/green releases, and cover the header contract in route tests.

Related: #37

Generated-by: Codex/GPT-5.4
Point the active mojidata-api D1 Worker bindings at the imported 20260503 blue/green release databases after the Cloudflare deployment succeeded.

Related: #36

Generated-by: Codex/GPT-5.4
@mandel59 mandel59 marked this pull request as ready for review May 3, 2026 07:18
@mandel59 mandel59 merged commit 5ddfe3f into main May 3, 2026
1 check passed
@github-actions github-actions Bot mentioned this pull request May 3, 2026
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.

1 participant