Repository navigation
Add ODPS Support for Data Products; Custom Forms - #27600
Conversation
✅ TypeScript Types Auto-UpdatedThe generated TypeScript types have been automatically updated based on JSON schema changes in this PR. |
There was a problem hiding this comment.
Pull request overview
Adds Open Data Product Standard (ODPS) YAML import/export for Data Products and introduces “Intake Forms” as an admin-configurable governance mechanism for enforcing additional required fields (native + custom properties) across key governance entities.
Changes:
- Added ODPS v4.1 YAML import/export/validation APIs and UI flows for Data Products, plus new Data Product metadata fields (type, visibility, portfolio priority, lifecycle stage surfacing).
- Introduced IntakeForm entity (schema, persistence, REST resource, repository, validator) and a Settings UI page to manage required-field policies per entity type.
- Updated search filters/mappings and localized strings to support the new fields and UI entry points.
Reviewed changes
Copilot reviewed 63 out of 69 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| openmetadata-ui/src/main/resources/ui/src/utils/GlobalSettingsClassBase.ts | Adds “Intake Forms” entry under Governance settings menu. |
| openmetadata-ui/src/main/resources/ui/src/rest/intakeFormsAPI.ts | New REST client for IntakeForms CRUD + lookups. |
| openmetadata-ui/src/main/resources/ui/src/rest/dataProductAPI.ts | Adds ODPS YAML import/export/validate client functions. |
| openmetadata-ui/src/main/resources/ui/src/pages/IntakeForms/intakeFormFields.ts | Defines native-field catalogs and entity-type mapping for intake form designer. |
| openmetadata-ui/src/main/resources/ui/src/pages/IntakeForms/IntakeFormsPage.tsx | New Settings page listing and managing IntakeForms. |
| openmetadata-ui/src/main/resources/ui/src/pages/IntakeForms/IntakeFormDesignerModal.tsx | New drawer UI to select required native/custom fields and per-field error messages. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-cn.json | Adds translation keys for ODPS + Intake Forms + new DP fields. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-pt.json | Adds translation keys for ODPS + Intake Forms + new DP fields. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-br.json | Adds translation keys for ODPS + Intake Forms + new DP fields. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/nl-nl.json | Adds translation keys for ODPS + Intake Forms + new DP fields. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/gl-es.json | Adds translation keys for ODPS + Intake Forms + new DP fields. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/es-es.json | Adds translation keys for ODPS + Intake Forms + new DP fields. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json | Adds canonical translation keys for ODPS + Intake Forms + new DP fields. |
| openmetadata-ui/src/main/resources/ui/src/generated/governance/intakeForm.ts | Adds generated IntakeForm model types for UI consumption. |
| openmetadata-ui/src/main/resources/ui/src/generated/entity/domains/dataProduct.ts | Updates generated DataProduct model with ODPS-aligned metadata fields/enums. |
| openmetadata-ui/src/main/resources/ui/src/generated/api/governance/createIntakeForm.ts | Adds generated request type for IntakeForm create/update. |
| openmetadata-ui/src/main/resources/ui/src/generated/api/domains/createDataProduct.ts | Updates generated create request with new DP fields/enums. |
| openmetadata-ui/src/main/resources/ui/src/enums/AdvancedSearch.enum.ts | Adds ES field names for new Data Product filters. |
| openmetadata-ui/src/main/resources/ui/src/constants/GlobalSettings.constants.ts | Adds GlobalSettingOptions.INTAKE_FORMS. |
| openmetadata-ui/src/main/resources/ui/src/constants/DataProduct.constants.ts | Adds new DP filters/quick-filters for type/lifecycle/visibility/priority. |
| openmetadata-ui/src/main/resources/ui/src/components/DataProducts/ODPSImportModal/index.ts | Exports ODPSImportModal. |
| openmetadata-ui/src/main/resources/ui/src/components/DataProducts/ODPSImportModal/ODPSImportModal.component.tsx | Adds ODPS YAML import UI (upload/paste/validate + merge/replace). |
| openmetadata-ui/src/main/resources/ui/src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx | Adds ODPS import/export actions, metadata edit action, and lifecycle stage badge. |
| openmetadata-ui/src/main/resources/ui/src/components/DataProducts/DataProductMetadataModal/index.ts | Exports DataProductMetadataModal. |
| openmetadata-ui/src/main/resources/ui/src/components/DataProducts/DataProductMetadataModal/DataProductMetadataModal.component.tsx | Adds modal to edit DP type/visibility/priority. |
| openmetadata-ui/src/main/resources/ui/src/components/AppRouter/SettingsRouter.tsx | Wires IntakeFormsPage into Settings routing (admin-protected). |
| openmetadata-spec/src/main/resources/json/schema/governance/intakeForm.json | New IntakeForm entity schema. |
| openmetadata-spec/src/main/resources/json/schema/entity/domains/odps/odpsDataProduct.json | New ODPS v4.1 document schema for import/export round-trip. |
| openmetadata-spec/src/main/resources/json/schema/entity/domains/dataProduct.json | Adds DP metadata fields (type/visibility/priority) and updates lifecycle description. |
| openmetadata-spec/src/main/resources/json/schema/api/governance/createIntakeForm.json | New IntakeForm create request schema. |
| openmetadata-spec/src/main/resources/json/schema/api/domains/createDataProduct.json | Adds new DP fields to create request schema. |
| openmetadata-spec/src/main/resources/elasticsearch/en/data_products_index_mapping.json | Adds new DP fields to ES index mapping. |
| openmetadata-spec/src/main/resources/elasticsearch/jp/data_products_index_mapping.json | Adds new DP fields to ES index mapping. |
| openmetadata-spec/src/main/resources/elasticsearch/ru/data_products_index_mapping.json | Adds new DP fields to ES index mapping. |
| openmetadata-spec/src/main/resources/elasticsearch/zh/data_products_index_mapping.json | Adds new DP fields to ES index mapping. |
| openmetadata-service/src/test/java/org/openmetadata/service/util/ODPSConverterTest.java | Adds ODPS converter unit tests (export/import/merge/replace/round-trip). |
| openmetadata-service/src/test/java/org/openmetadata/service/util/IntakeFormValidatorTest.java | Adds IntakeFormValidator unit tests for schema + intake-form required fields. |
| openmetadata-service/src/main/java/org/openmetadata/service/util/IntakeFormValidator.java | Implements layered validation for schema-required + IntakeForm-required fields. |
| openmetadata-service/src/main/java/org/openmetadata/service/resources/governance/IntakeFormResource.java | Adds REST resource for IntakeForms. |
| openmetadata-service/src/main/java/org/openmetadata/service/resources/governance/IntakeFormMapper.java | Maps create request to IntakeForm entity. |
| openmetadata-service/src/main/java/org/openmetadata/service/resources/domains/DataProductMapper.java | Maps new DP fields from create request into entity. |
| openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/IntakeFormRepository.java | Adds repository with unique-per-entityType enforcement and lookup helpers. |
| openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/GlossaryTermRepository.java | Hooks IntakeFormValidator into GlossaryTerm prepare path. |
| openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java | Adds custom-property validation for entity reference and reference list CP types. |
| openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/DomainRepository.java | Hooks IntakeFormValidator into Domain prepare path. |
| openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/DataProductRepository.java | Hooks IntakeFormValidator into DataProduct prepare path. |
| openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CollectionDAO.java | Adds IntakeFormDAO and lookup query by entityType. |
| openmetadata-service/src/main/java/org/openmetadata/service/Entity.java | Registers INTAKE_FORM entity name constant. |
| bootstrap/sql/migrations/native/2.0.0/postgres/schemaChanges.sql | Creates intake_form_entity table in Postgres migration. |
| bootstrap/sql/migrations/native/2.0.0/mysql/schemaChanges.sql | Creates intake_form_entity table in MySQL migration. |
| .gitignore | Ignores .claude/* generated files. |
🔴 Playwright Results — 1 failure(s), 12 flaky✅ 4279 passed · ❌ 1 failed · 🟡 12 flaky · ⏭️ 88 skipped
Genuine Failures (failed on all attempts)❌
|
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
The ~72 keys added by this PR (intake forms, ODPS import/export, data product
type / visibility / portfolio priority, lifecycle stage, etc.) were sitting as
English placeholders in all 18 non-English locale files. Replaced them with
real translations for each language: ar-sa, de-de, es-es, fr-fr, gl-es, he-he,
ja-jp, ko-kr, mr-in, nl-nl, pr-pr (fa), pt-br, pt-pt, ru-ru, th-th, tr-tr,
zh-cn, zh-tw.
All {{interpolations}} ({{entity}}, {{entityType}}, {{yamlName}},
{{existingName}}, {{version}}, {{languages}}), acronyms (ODPS, YAML, API, UI,
BI, 3D, v4.1), and the literal 'extension.<propertyName>' / 'Settings → Custom
Properties' references are preserved verbatim. en-us is unchanged.
Note: machine-assisted translations — the CJK/RTL and less-common locales
(Arabic, Hebrew, Persian, Thai, Marathi, Galician) warrant a native-speaker
pass before release.
…base Addresses karanh37's review note on intakeFormFields.ts — the Collate distribution keeps an extra Data Product field (banner upload) that the OSS hardcoded NATIVE_FIELDS_BY_ENTITY_TYPE map would not surface. Introduce IntakeFormClassBase (the standard OSS/Collate extensibility seam, mirroring DataProductClassBase et al.) exposing getNativeFields() and getEntityTypeApiName(). The designer modal now reads native fields through the singleton, so Collate can subclass and re-export to add fork-specific fields without forking the designer or the field catalog. getNativeFields returns a copy so callers can't mutate the shared list.
…components Address karanh37's review: replace MUI primitives in IntakeFormDesignerModal and IntakeFormsPage with @openmetadata/ui-core-components. - Designer modal: Drawer->SlideoutMenu, MUI Table->Box layout (avoids react-aria Table intercepting keyboard for the in-row error inputs), Switch->Toggle, Checkbox/TextField->core Checkbox/Input, multiline TextField->TextArea, Chip->Badge, CircularProgress->Loader, Alert(info)-> Alert(brand), Stack/Divider->Box/Divider. - Settings page: fix outer Box layout (core Box defaults to flex-row, which stacked header and table side-by-side) by setting direction=col. - Add aria-label to the enabled toggles in both files (a11y review). - Spec: the core Checkbox renders its testid on the wrapping react-aria label, so Playwright .check() (which needs a native checkbox/role) is switched to .click() for the require-* controls. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The backend exports the ODPS `name` from displayName ?? name (ODPSConverter.buildProductDetails), but the import modal's mismatch guard compared the YAML name only against the product's internal `name`. Re-importing an exported YAML for a product whose displayName differs from its name was therefore wrongly blocked as a mismatch. Accept a match against either displayName or name; only block when the YAML name matches neither (the real overwrite-a-sibling case). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The Loader import must be grouped with the relative imports (after the external react-i18next import) per organize-imports-cli; an earlier batch run failed to reorder it, tripping the UI Checkstyle organize-imports check. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
buildDryRunImpactResponse issues DB lookups (getFromEntityRef / getDataProducts) per asset; a single failure (e.g. a dangling relationship) aborted the entire dry-run preview with an unhandled exception, so the caller got no partial results. Degrade gracefully: surface the failure on that asset's BulkResponse and continue the batch, consistent with dry-run being a best-effort preview. Addresses gitar-bot review finding on the bulk dry-run path. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Re: dry-run per-asset error handling in Note this path is pre-existing — this PR only adds two lines to A fuller reslience pass for bulk ops (per-item failure counts applied consistently to both the base and Domain paths, with tests) would be a good focused follow-up. |
…low)
The core Dropdown.Menu defaults to selectionMode=single, which makes react-aria
render its items as role=menuitemradio. The migrated add-entity menu is an
action menu, and the E2E test queries getByRole('menuitem', { name: /^Data
Product$/ }), so the menu opened but the item was never found and the create
flow timed out.
Pass selectionMode=none (+ disallowEmptySelection=false) so items render as
role=menuitem with menu-level onAction, matching the established action-menu
pattern (useColumnGridFilters). Also inline the trigger Button per the canonical
Dropdown usage. Disabled items still render aria-disabled=true, so the
'already configured' test remains valid.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
# Conflicts: # openmetadata-ui/src/main/resources/ui/src/locale/languages/ko-kr.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/pr-pr.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/ru-ru.json
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
Relocate validateEntityReference / validateEntityReferenceList (and the shared resolution logic) out of EntityRepository into EntityUtil, where the other reference helpers live, and clean it up: - Replace the magic JSON field names with constants (REF_FIELD_TYPE/ID/FQN, reusing Entity.FIELD_FULLY_QUALIFIED_NAME) and centralize the message prefix. - Break the one large resolve method into small focused helpers (resolveReferenceById/ByName, parseReferenceId, requireText, hasText) with a single trailing return and no early-return guards. - Chain the underlying EntityNotFoundException as the cause and keep error messages consistent (one shape hint). Behavior is unchanged: same validation, same IllegalArgumentException (400) on malformed or unresolvable references. No test asserts the exact message text. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
EntityUtil already has validateEntityReference(EntityReference, String); the JsonNode overload I added collided with it (a null first argument matched both, breaking EntityUtilTest). Rename the custom-property validators to validateCustomPropertyEntityReference / ...List — distinct and more descriptive, since they validate a custom property's raw JSON value rather than a typed EntityReference. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
|
Code Review ✅ Approved 8 resolved / 8 findingsImplements ODPS support for data products and introduces IntakeForms for governance, addressing all findings including data-loss risks in fullReplace, ODPS name sanitization, and redundancy in domain lookups. ✅ 8 resolved✅ Bug: fullReplace() silently drops owners, experts, and reviewers
✅ Bug: fromODPS() sets name from ODPS without sanitization
✅ Edge Case: ODPS export uses enum from CreateDataProduct instead of DataProduct
✅ Quality: Elasticsearch enum fields should use keyword, not text+keyword
✅ Edge Case: sanitizeEntityName can return empty string for all-invalid input
...and 3 more resolved from earlier reviews OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |



Describe your changes:
Fixes #28765
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
IntakeFormentity to enforce mandatory field validation at the API layer for governance entities.IntakeFormResource,IntakeFormRepository, andIntakeFormValidatorto support designer-defined required fields.IntakeFormDesignerModalandIntakeFormsPageto manage configuration via a new settings UI.ODPSConverterto support ODPS v4.1 data product import/export, including JSON/YAML support.DataProductResourcefor ODPS round-tripping with smart-merge and full-replace strategies.DataProductMetadataModalandODPSImportModalto theDataProductsDetailsPagefor streamlined management.AddDomainFormto include custom property handling and intake form validation logic.IntakeFormResourceITandODPSConverterTest.DomainRepositoryandDataProductcreation flows for improved validation resilience.This will update automatically on new commits.