Repository navigation
feat(ui/ingest): localize the ODCS recipe form and add the contract urn and physical binding options - #21899
feat(ui/ingest): localize the ODCS recipe form and add the contract urn and physical binding options#21899acrylJonny wants to merge 8 commits into
Conversation
…rn and physical binding options Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR SummaryOverview Three advanced options are exposed in the form and wired to Tests cover lazy i18n resolution, the new fields’ recipe read/write/hide behavior, and localized validator output. Reviewed by Cursor Bugbot for commit 4aa16f0. Bugbot is set up for automated code reviews on this repo. Configure here. |
Smart test selectionPlaywright E2E testsThis run:
Specs selected because of this PR (23)
Add the commit |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Bundle ReportChanges will increase total bundle size by 115.03kB (0.36%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: datahub-react-web-esmAssets Changed:
Files in
|
There was a problem hiding this comment.
All reported issues were addressed across 17 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
|
✅ Meticulous spotted 0 visual differences across 86 screens tested: view results. Meticulous evaluated ~18 hours of user flows which tested 169/269 of the executable lines edited in your PR1. 1. These 100 untested lines will likely automatically gain test coverage over the coming days, however if you wish to increase coverage immediately you can do so by interacting with your feature on localhost. Expected differences? Click here. Last updated for commit |
Meticulous Agent Swarm
|
Initial JS bundle size ➡️
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
i18n locale parityStatus:
Per-key detail is in the job summary of the ./gradlew :datahub-web-react:yarnI18nParityCheck # all locales
cd datahub-web-react && yarn check-i18n-parity --lang de # one locale |
Boot web vitals (no backend)Unauthenticated /login against the two dist/ trees from this job. No GMS — this is eager JS, not search/dataset payload. Lantern, desktop, 1x CPU. Does not forecast fleet p75; do not gate on LCP. Web-vitals A/B — base (5dbe547) (A) vs pr (9d7cc78) (B)Lighthouse 12.8.2, throttling simulate (cpu 1x, rtt 40 ms, 10240 kbps). Form factor: desktop. Cache: cold (fresh incognito context per run). target n=3/build, 1 warm-up discarded, alternating A,B. Boot-only (no GMS). Unauthenticated login route — eager JS/CSS/font transfer and parse, not search/dataset payload. Do not treat as a fleet p75.
|
| metric | A p50 | B p50 | Δ p50 | Δ% | A p95 | B p95 |
|---|---|---|---|---|---|---|
| fcp | 853 ms | 855 ms | 2 ms | +0.2% | 857 ms | 887 ms |
| lcp | 1313 ms | 1320 ms | 8 ms | +0.6% | 1319 ms | 1338 ms |
| cls | 0.0000 | 0.0000 | 0.0000 | — | 0.0000 | 0.0000 |
| tbt | 16 ms | 18 ms | 3 ms | +16.1% | 18 ms | 26 ms |
| tti | 1314 ms | 1322 ms | 7 ms | +0.6% | 1320 ms | 1342 ms |
| ttfb | 1 ms | 1 ms | 0 ms | +14.4% | 1 ms | 8 ms |
| transferredBytes | 1077.1 KB | 1079.1 KB | 2.0 KB | +0.2% | 1077.1 KB | 1079.1 KB |
| mainThread | 321 ms | 329 ms | 7 ms | +2.3% | 341 ms | 385 ms |
| bootup | 176 ms | 171 ms | -5 ms | -2.7% | 176 ms | 196 ms |
Resource transfer by type (p50):
| type | A bytes | B bytes | Δ bytes | A requests | B requests |
|---|---|---|---|---|---|
| document | 1.3 KB | 1.3 KB | -0.0 KB | 1 | 1 |
| script | 645.3 KB | 647.3 KB | 2.0 KB | 8 | 8 |
| stylesheet | 3.0 KB | 3.0 KB | 0.0 KB | 2 | 2 |
| image | 48.7 KB | 48.7 KB | 0.0 KB | 1 | 1 |
| media | 257.3 KB | 257.3 KB | 0.0 KB | 1 | 1 |
| font | 106.6 KB | 106.6 KB | 0.0 KB | 3 | 3 |
| other | 0.0 KB | 0.0 KB | 0.0 KB | 0 | 0 |
LCP element A: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub
LCP element B: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub
These numbers rank changes and gate regressions against the measured origin(s). They do not sum across PRs and do not forecast any fleet-wide production number.
max-datahub
left a comment
There was a problem hiding this comment.
LGTM. Every fieldPath matches a Python config key. ENTITY/ID are written in upper case and read back in either case, the bind validator mirrors the backend rule, and all 14 locales have the same key set with matching placeholders.
Nits:
- Untranslated placeholder.
odcs.ts:79still has an English "or" in it. - Tooltip.
odcs.emitAssertions.tooltipdoesn't mention latency SLA freshness assertions, whichemit_assertionsalso controls. - Brittle test.
odcs.test.ts:776asserts exact English error text.
- Claude (on behalf of Max)


The ODCS ingestion form had hard-coded English strings and no way to set the options added earlier in this stack.
i18next, following thesqlmesh,hightouchandmicrostrategyforms. There are 72odcs.*keys iningestion.sourceBuilder.json, translated in all 14 locales, with product names left as they are.data_contract_urn): keyed on the dataset (default) or on the ODCS id.data_contract_urn_prefix): shown only for the id mode.bind_to_physical_dataset). The form rejects it unless the id mode is chosen and Emit Logical Parent Link is on, matching the connector's own validation.classification_glossary_term_mappingandretention_glossary_termsstay YAML-only. No recipe form has a widget for maps or lists of objects.Checks: the flat-keys check passes, the parity check reports no drift in
ingestion.sourceBuilder, eslint and prettier pass on the changed files, and the Vitest suite passes, including 6 new ODCS form tests.Stacked on the docs PR.
🤖 Generated with Claude Code
Summary by cubic
Localizes the ODCS recipe form and adds the data contract URN and physical binding options to the UI. The form previously showed hard-coded English strings and had no way to set these options.
New Features
i18next, matching thesqlmesh,hightouch, andmicrostrategyforms; 72odcs.*keys were added toingestion.sourceBuilder.jsonacross all 14 locales.data_contract_urnis keyed on the dataset by default or on the ODCS id, withdata_contract_urn_prefixshown only in id mode.bind_to_physical_datasetis rejected unless id mode is selected and Emit Logical Parent Link is on, matching the connector's own validation.classification_glossary_term_mappingandretention_glossary_termsstay YAML-only; no recipe form has widgets for maps or lists of objects.Written for commit 9d7cc78. Summary will update on new commits.