add key-level translation strings and jurisdiction content#6527
Open
seanmalbert wants to merge 2 commits into
Open
add key-level translation strings and jurisdiction content#6527seanmalbert wants to merge 2 commits into
seanmalbert wants to merge 2 commits into
Conversation
✅ Deploy Preview for bloom-angelopolis canceled.
|
✅ Deploy Preview for partners-bloom-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for bloom-exygy-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…index nullability
seanmalbert
marked this pull request as ready for review
July 17, 2026 20:54
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.
This PR addresses #6508
Description
Adds the Phase 1 data model (content from the database): the key-level
TranslationStringstable, theJurisdictionContenttable, theSiteEnumandTranslationOriginenums, and migration66_key_level_translation_content.TranslationStrings: one row per(jurisdiction, language, site, key)withvalue, asource_hash(for staleness detection in later work), and amachine/humanorigin. The unique index is createdNULLS NOT DISTINCTin the migration SQL (Prisma cannot express it in the schema) so base rows (nulljurisdiction andsite) and global-Partners rows (nulljurisdiction) cannot be duplicated.JurisdictionContent: typed JSON documents (footer,faq,resources,disclaimers,contact) per(jurisdiction, language), FK tojurisdictionswithON DELETE CASCADE.Jurisdictions.The change is additive: nothing reads the new tables yet, and the legacy
translationstable is untouched. It is retired in a later ticket once the read services are switched over.How Can This Be Tested/Reviewed?
cd api && yarn prisma migrate deploy. It should apply66_key_level_translation_contentcleanly (requires Postgres 15+; Bloom runs 18).translation_stringsunique index isNULLS NOT DISTINCT:nulljurisdiction andsite):nulljurisdiction,site = 'partners') the same way; the second insert should raise a unique-constraint violation.yarn prisma migrate statusshould report the schema is up to date, andyarn prisma validateshould pass.Author Checklist:
yarn generate:clientand/or created a migration when required (created66_key_level_translation_content)Review Process: