Skip to content

Add ODPS Support for Data Products; Custom Forms - #27600

Merged
harshach merged 43 commits into
mainfrom
data_products
Jun 5, 2026
Merged

harshach merged 43 commits into
mainfrom
data_products

Conversation

@harshach

@harshach harshach commented Apr 21, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #28765

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Summary by Gitar

  • Governance & Intake Forms:
    • Introduced IntakeForm entity to enforce mandatory field validation at the API layer for governance entities.
    • Added IntakeFormResource, IntakeFormRepository, and IntakeFormValidator to support designer-defined required fields.
    • Implemented IntakeFormDesignerModal and IntakeFormsPage to manage configuration via a new settings UI.
  • ODPS Integration:
    • Implemented ODPSConverter to support ODPS v4.1 data product import/export, including JSON/YAML support.
    • Exposed new REST endpoints in DataProductResource for ODPS round-tripping with smart-merge and full-replace strategies.
  • UI & Experience:
    • Added DataProductMetadataModal and ODPSImportModal to the DataProductsDetailsPage for streamlined management.
    • Updated AddDomainForm to include custom property handling and intake form validation logic.
  • Testing & Resilience:
    • Added comprehensive integration tests in IntakeFormResourceIT and ODPSConverterTest.
    • Enhanced DomainRepository and DataProduct creation flows for improved validation resilience.

This will update automatically on new commits.

Copilot AI review requested due to automatic review settings April 21, 2026 16:11
@harshach
harshach requested a review from a team as a code owner April 21, 2026 16:11
@github-actions github-actions Bot added backend safe to test Add this label to run secure Github workflows on PRs labels Apr 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ TypeScript Types Auto-Updated

The generated TypeScript types have been automatically updated based on JSON schema changes in this PR.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

github-actions Bot commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 63%
63.26% (67444/106608) 44.16% (37034/83859) 46.54% (11164/23983)

@github-actions

github-actions Bot commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — 1 failure(s), 12 flaky

✅ 4279 passed · ❌ 1 failed · 🟡 12 flaky · ⏭️ 88 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 299 0 2 4
🔴 Shard 2 807 1 1 9
🟡 Shard 3 808 0 2 8
🟡 Shard 4 845 0 2 12
🟡 Shard 5 720 0 1 47
🟡 Shard 6 800 0 4 8

Genuine Failures (failed on all attempts)

❌ Features/Glossary/GlossaryWorkflow.spec.ts › should display correct status badge color and icon (shard 2)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveText�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed

Locator:  locator('[data-row-key*="StatusBadgeTerm1780679823595"]').locator('.status-badge')
Expected: �[32m"In Review"�[39m
Received: �[31m"Draft"�[39m
Timeout:  15000ms

Call log:
�[2m  - Expect "toHaveText" with timeout 15000ms�[22m
�[2m  - waiting for locator('[data-row-key*="StatusBadgeTerm1780679823595"]').locator('.status-badge')�[22m
�[2m    18 × locator resolved to <div class="status-badge pending" data-testid=""PW%'705720c3.Brightd0196b20".StatusBadgeTerm1780679823595-status">…</div>�[22m
�[2m       - unexpected value "Draft"�[22m

🟡 12 flaky test(s) (passed on retry)
  • Pages/AuditLogs.spec.ts › should apply both User and EntityType filters simultaneously (shard 1, 2 retries)
  • Pages/Roles.spec.ts › Roles page should work properly (shard 1, 1 retry)
  • Features/Glossary/GlossaryWorkflow.spec.ts › should start term as Draft when glossary has reviewers (shard 2, 2 retries)
  • Features/Tasks/TaskNavigation.spec.ts › navigating to /table/TASK-XXXXX should show 404 (invalid URL pattern) (shard 3, 1 retry)
  • Flow/ExploreAggregationCountsMatching.spec.ts › should verify left panel counts and tab search results for normal search (shard 3, 1 retry)
  • Pages/CustomProperties.spec.ts › Sql Query (shard 4, 1 retry)
  • Pages/CustomProperties.spec.ts › Entity Reference List (shard 4, 1 retry)
  • Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts › Should remove user owner for knowledgeCenter (shard 5, 1 retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage schema filter selection (shard 6, 1 retry)
  • Pages/LogsViewer.spec.ts › Logs page shows breadcrumb, summary, and log viewer or empty state after opening from bundle suite pipeline tab (shard 6, 1 retry)
  • Pages/Teams.spec.ts › Team assets should (shard 6, 1 retry)
  • Pages/UserDetails.spec.ts › Admin user can get all the roles hierarchy and edit roles (shard 6, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

Copilot AI review requested due to automatic review settings April 21, 2026 19:51
@harshach
harshach requested a review from a team as a code owner April 21, 2026 19:51
@github-actions

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 67 out of 73 changed files in this pull request and generated 8 comments.

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 74 out of 79 changed files in this pull request and generated no new comments.

harshach added 2 commits June 3, 2026 09:55
…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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 75 out of 80 changed files in this pull request and generated 3 comments.

harshach and others added 4 commits June 3, 2026 10:21
…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]>
@harshach

harshach commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator Author

Re: dry-run per-asset error handling in bulkAssetsOperation (fee7df7)

Note this path is pre-existing — this PR only adds two lines to DomainRepository (the IntakeFormValidator import + call); the base EntityRepository.bulkAssetsOperation has the same no-try-catch structure. Rather than introduce new bulk-failure semantics (a failures list / status downgrade) into untouched shared code, I hardened the one fragile spot the finding calls out: buildDryRunImpactResponse now degrades gracefully — if an asset's impact lookup throws (e.g. a dangling relationship), that asset's BulkResponse carries an "Impact could not be computed" message and the batch continues, instead of the whole dry-run aborting.

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.

harshach and others added 3 commits June 3, 2026 12:14
…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]>
karanh37
karanh37 previously approved these changes Jun 5, 2026
# 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
@github-actions

github-actions Bot commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

harshach and others added 2 commits June 5, 2026 08:02
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]>
@sonarqubecloud

sonarqubecloud Bot commented Jun 5, 2026

Copy link
Copy Markdown

@sonarqubecloud

sonarqubecloud Bot commented Jun 5, 2026

Copy link
Copy Markdown

@gitar-bot

gitar-bot Bot commented Jun 5, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 8 resolved / 8 findings

Implements 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

📄 openmetadata-service/src/main/java/org/openmetadata/service/util/ODPSConverter.java:279-293
The fullReplace method preserves identity and governance-workflow fields from the existing entity but does not carry over owners, experts, or reviewers. Since ODPS format has no representation for these fields, a strategy=replace import will wipe them from the data product. This is inconsistent with smartMerge which correctly preserves all three, and likely unintentional since other non-ODPS-mappable fields like domains and certification ARE preserved.

✅ Bug: fromODPS() sets name from ODPS without sanitization

📄 openmetadata-service/src/main/java/org/openmetadata/service/util/ODPSConverter.java:160-161
At line 160, dp.setName(details.getName()) directly uses the ODPS product name which can contain spaces, special characters, and exceed 64 characters. OpenMetadata entity names are constrained (2-64 chars, no ::). While downstream repository validation may catch this, the error message will be a generic constraint violation rather than a helpful ODPS-specific message. Worse, the displayName is also set to the same raw value, so the actual name (used as an identifier/slug) should be sanitized.

✅ Edge Case: ODPS export uses enum from CreateDataProduct instead of DataProduct

📄 openmetadata-service/src/main/java/org/openmetadata/service/util/ODPSConverter.java:347
The toODPSType method at line 347 accepts CreateDataProduct.DataProductType but DataProduct.getDataProductType() returns the entity's own enum type. If these are the same generated enum this is fine, but if they diverge (e.g., the entity schema adds values not in the create schema), the mapping will break at compile time or silently miss values. The converter should use the entity-level enum for the export path.

✅ Quality: Elasticsearch enum fields should use keyword, not text+keyword

📄 openmetadata-spec/src/main/resources/elasticsearch/en/data_products_index_mapping.json:209-223
The new ES index fields dataProductType, visibility, portfolioPriority, and lifecycleStage are mapped as text with a .keyword sub-field. These are enum values that will never be full-text searched — they should be plain keyword type (like the existing entityType field at line 206). Using text wastes index space on unnecessary analysis and may produce unexpected search results.

✅ Edge Case: sanitizeEntityName can return empty string for all-invalid input

📄 openmetadata-service/src/main/java/org/openmetadata/service/util/ODPSConverter.java:253-261 📄 openmetadata-service/src/main/java/org/openmetadata/service/util/ODPSConverter.java:165
When sanitizeEntityName receives a name composed entirely of characters outside [a-zA-Z0-9_\-.] (e.g. "///", " ", or CJK-only names like "数据产品"), the method replaces all chars with _, collapses to a single _, then trimUnderscores strips it — returning an empty string "". This empty string is passed directly to dp.setName() at line 165 with no guard, which will likely fail downstream validation or create an entity with an invalid empty name.

ODPS product names are free-form and can be non-ASCII, so this is a realistic scenario.

...and 3 more resolved from earlier reviews

Options

Display: compact → Showing less information.

Comment with these commands to change:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

This branch was previously deployed

1 inactive deployment
test — 9430c74b Deployed Jun 5, 2026 by harshach via playwright-ci-postgresql (1, 6) #50026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data Products: ODPS (v4.1) import/export, governance Intake Forms, and richer Data Product metadata

3 participants