Deploy mojidata-api D1 blue-green release#38
Merged
Merged
Conversation
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
Merged
This was referenced May 3, 2026
Closed
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.
Summary
unihan_value_refand switchunihan_ftslookup to indexed reverse referencesCache-Control: no-storefor API responses so consumers do not need release-specific cache handling20260503-bgD1 release inwrangler.jsoncDeployment
Already deployed to Cloudflare Workers:
https://mojidata-api-d1.mandel59.workers.dev8b4a5fd9-6c22-4f8b-a448-4e91c02d9b02MOJIDATA_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 testcorepack yarn workspace @mandel59/mojidata-api-d1 testcorepack yarn mojidata-api:d1:check/api/v1/mojidata,/api/v1/ivs-list, and/api/v1/idsfindCache-Control: no-storechar=漢&select=unihan_fts: old query read 550,257 rows; new indexed query read 11 rowsRelated: #35
Related: #36
Related: #37