feat(meta-schema): expose i18n and realtime metadata in _meta query#1300
Merged
Conversation
- Add I18nMeta/I18nFieldMeta/RealtimeMeta TypeScript interfaces - Add buildI18nMeta() detecting @i18n smart tag and translatable fields - Add buildRealtimeMeta() detecting @realtime smart tag - Add MetaI18n, MetaI18nField, MetaRealtime GraphQL types to MetaTable - Add 6 unit tests covering i18n and realtime detection - Update META_QUERY_CONTRACT and REQUIRED_META_QUERY_PATHS - Update introspection and schema snapshots
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This comment has been minimized.
This comment has been minimized.
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
Extends the
_metaschema plugin to expose i18n and realtime metadata onMetaTable, continuing the pattern from storage/search (#1298) and enums (#1299).i18n — tables tagged with
@i18n <translation_table>now expose:Detection: reads
codec.extensions.tags.i18n, then intersects the base table's text/citext columns with the translation table's attributes to produce thetranslatableFieldslist.Realtime — tables tagged with
@realtimenow expose:Detection: checks
codec.extensions.tags.realtime, derives the subscription field name viaon${tableType}Changed.Both return
nullfor tables without the respective tag. AddsbuildI18nMeta()andbuildRealtimeMeta()instorage-search-meta-builders.ts, new GraphQL types (MetaI18n,MetaI18nField,MetaRealtime), 6 unit tests, and updated introspection/schema snapshots.Link to Devin session: https://app.devin.ai/sessions/c93bb5e1b114421196d8eb28435b0515
Requested by: @pyramation