Repository navigation
Fixes 30612: render every custom-property type correctly in intake forms - #30614
Conversation
…ate forms
Intake-form custom properties were rendered by a private switch in
AddDomainForm that hardcoded entityReference to a user/team picker and
had cases only for enum/number/string. A property configured for
['glossaryTerm'] therefore listed users, hyperlink-cp fell through to a
plain text input, and every other type produced a payload shape the
backend rejects.
- Add AddDomainFormExtensionFields (react-aria/RHF) covering all custom
property types for Create Domain / Data Product, driving the entity
search from customPropertyConfig so allowed types are honored.
- Add GlossaryTermIntakeFields (antd) and wire intake forms into the
Create Glossary Term modal, which had no intake support at all even
though the backend enforces it on POST /v1/glossaryTerms.
- Centralize serialization in serializeExtensionValue so all submit
paths emit backend-valid shapes (numbers coerced, enum wrapped in an
array, hyperlink as {url, displayText?}, real EntityReference type).
- Let intake forms include optional fields: add formFields with a
per-field required flag, keep requiredFields as a deprecated
compatibility view, and backfill existing rows via migration.
- Remove a deleted custom property from intake forms instead of leaving
a dangling field reference.
- Group intake custom properties under a "Custom Properties" section
with a property-type badge, matching the bulk-edit inline editor.
Co-Authored-By: Claude <noreply@anthropic.com>
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
✅ 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
This PR fixes intake-form custom property rendering/serialization across the Domain, Data Product, and Glossary Term create flows by introducing per-type widgets and a shared serializeExtensionValue helper, while also evolving the intake-form contract to support optional (included-but-not-required) fields via a new formFields array (with required per field) and keeping requiredFields as a deprecated compatibility view.
Changes:
- Add
formFieldssupport end-to-end (schema, generated types, UI designer/UI list, backend validator/repository) while maintainingrequiredFieldsas a deprecated compatibility field and backfilling it via migration. - Centralize custom property serialization (hyperlink/entityReference/enum/number/date/time/etc.) so create payloads match backend-expected shapes.
- Add dedicated intake-field rendering for Glossary Term create (AntD modal stack) and Domain/Data Product create (react-aria/react-hook-form stack), plus tests (Jest/JUnit/IT) and updated i18n strings.
Reviewed changes
Copilot reviewed 59 out of 61 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| openmetadata-ui/src/main/resources/ui/src/utils/IntakeFormUtils.ts | New helpers to resolve effective intake fields (formFields preferred, fallback to legacy requiredFields) and convert back to legacy required fields. |
| openmetadata-ui/src/main/resources/ui/src/utils/IntakeFormUtils.test.ts | Unit tests for getIntakeFormFields, required-only views, and legacy conversion. |
| openmetadata-ui/src/main/resources/ui/src/utils/CustomProperty.utils.ts | Adds shared extension serializer + helpers for reference search index, hyperlink URL validation, type badge display name, and Luxon date-time formatting/parsing. |
| openmetadata-ui/src/main/resources/ui/src/utils/CustomProperty.utils.test.ts | Adds coverage for new serializer/helpers and date-time formatting edge cases. |
| openmetadata-ui/src/main/resources/ui/src/utils/CSV/CSVUtilsClassBase.tsx | Reuses shared getCustomPropertyReferenceSearchIndex and getCustomPropertyTypeDisplayName (removes local duplication). |
| openmetadata-ui/src/main/resources/ui/src/pages/IntakeForms/IntakeFormsPage.tsx | Lists formFields and shows required vs optional badges; requests formFields from API. |
| openmetadata-ui/src/main/resources/ui/src/pages/IntakeForms/IntakeFormDesignerModal.tsx | Designer now supports “include” + “required” for custom properties; persists both formFields and legacy requiredFields. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json | Updates helper copy to explain include vs required behavior. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/ar-sa.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/de-de.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/es-es.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/fr-fr.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/gl-es.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/he-he.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/ja-jp.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/ko-kr.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/mr-in.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/nl-nl.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/pr-pr.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-br.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-pt.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/ru-ru.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/sv-se.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/th-th.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/tr-tr.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-cn.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-tw.json | Translation update for include vs required helper copy. |
| openmetadata-ui/src/main/resources/ui/src/hooks/useGridEditController.ts | Adds configurable rowIdKey (supports row objects without an id column for table custom properties). |
| openmetadata-ui/src/main/resources/ui/src/generated/governance/intakeForm.ts | Generated type updates for new IntakeFormField and formFields; marks requiredFields as deprecated in docs. |
| openmetadata-ui/src/main/resources/ui/src/generated/api/governance/createIntakeForm.ts | Generated API type updates to accept formFields (with deprecated requiredFields). |
| openmetadata-ui/src/main/resources/ui/src/constants/CustomProperty.constants.ts | Adds Luxon mapping for microsecond date-time backend pattern. |
| openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/GlossaryTermIntakeFields.component.tsx | New AntD-based intake-form field renderer for Glossary Term create modal. |
| openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/GlossaryTermIntakeFields.test.tsx | Jest coverage for rendering and value/validation behavior across custom property types. |
| openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.component.tsx | Fetches intake form + custom properties in create mode; applies intake-required rules to native fields; serializes extension via shared helper. |
| openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.interface.ts | Adds extension?: Record<string, unknown> to form payload type. |
| openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.test.tsx | Jest coverage for create-mode intake fields and submit serialization (including optional fields). |
| openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainFormExtensionFields.utils.ts | New RHF-safe keying + type→field-kind mapping for extension fields in react-aria form stack. |
| openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainFormExtensionFields.tsx | New react-aria/react-hook-form intake-field renderer for Domain/Data Product create drawers and in-form create. |
| openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainFormExtensionFields.test.tsx | Jest coverage for per-type widgets, reference search behavior, and helper utilities. |
| openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainForm.component.tsx | Removes the old limited type→widget switch; wires in the new extension-fields component; serializes extension through shared helper and supports optional fields. |
| openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainForm.interface.ts | Adds extensionDefinitions and extensionFormValues to carry definition-aware serialization across submit paths. |
| openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainForm.test.tsx | Adds tests for new intake-field wiring and extension serialization/cleanup. |
| openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTypeBadge/CustomPropertyTypeBadge.component.tsx | New reusable badge component for property type display. |
| openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyValue.tsx | Uses shared Luxon parse/format helpers for date-time types. |
| openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyValue.test.tsx | Extends tests for hyperlink behavior and date-time parsing/formatting wiring. |
| openmetadata-ui-core-components/src/main/resources/ui/src/components/base/input/input.tsx | Adds step prop support to core Input to enable correct numeric behavior in new widgets. |
| openmetadata-spec/src/main/resources/json/schema/governance/intakeForm.json | Schema adds formFields + intakeFormField definition; deprecates requiredFields. |
| openmetadata-spec/src/main/resources/json/schema/api/governance/createIntakeForm.json | API schema adds formFields and deprecates requiredFields. |
| openmetadata-service/src/test/java/org/openmetadata/service/util/IntakeFormValidatorTest.java | Adds coverage to ensure included-but-optional fields are not enforced. |
| openmetadata-service/src/test/java/org/openmetadata/service/util/IntakeFormUtilTest.java | New unit tests for formFields/requiredFields synchronization and custom property removal behavior. |
| openmetadata-service/src/main/java/org/openmetadata/service/util/IntakeFormValidator.java | Validates requiredness based on effective formFields (with legacy fallback) and skips optional included fields. |
| openmetadata-service/src/main/java/org/openmetadata/service/util/IntakeFormUtil.java | New utility to compute effective form fields, synchronize legacy fields, and remove custom-property references. |
| openmetadata-service/src/main/java/org/openmetadata/service/resources/governance/IntakeFormResource.java | Updates default fields selection to include formFields. |
| openmetadata-service/src/main/java/org/openmetadata/service/resources/governance/IntakeFormMapper.java | Maps formFields and synchronizes legacy required fields on create/update. |
| openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TypeRepository.java | On custom property deletion, cascades removal from intake forms; refactors membership change application for updater retries. |
| openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/IntakeFormRepository.java | Synchronizes formFields/requiredFields on read/write; supports removing deleted custom properties; opts out of FQN-dependent cleanup. |
| openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java | Adds shouldCleanupFqnDependents() hook to skip expensive prefix cleanup for repositories that don't need it. |
| bootstrap/sql/migrations/native/1.13.3/postgres/postDataMigrationSQLScript.sql | Backfills formFields from legacy requiredFields for Postgres. |
| bootstrap/sql/migrations/native/1.13.3/mysql/postDataMigrationSQLScript.sql | Backfills formFields from legacy requiredFields for MySQL. |
| case 'integer': | ||
| case 'number': | ||
| case 'timestamp': | ||
| serializedValue = Number(raw); | ||
|
|
||
| break; |
| case HYPERLINK_TYPE_CUSTOM_PROPERTY: | ||
| serializedValue = serializeHyperlink(raw); | ||
|
|
||
| break; | ||
| default: | ||
| serializedValue = raw; | ||
| } |
| const interval = Object.fromEntries( | ||
| ['start', 'end'] | ||
| .filter((key) => !isEmptyExtensionValue(raw[key])) | ||
| .map((key) => [key, Number(raw[key])]) | ||
| ); |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 59 out of 61 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (4)
openmetadata-ui/src/main/resources/ui/src/utils/CustomProperty.utils.ts:163
- serializeExtensionValue converts integer/number/timestamp via
Number(raw)but does not check forNaN. Invalid numeric inputs will serialize asNaN(JSONnull), which can cause backend 400s or silent data loss.
openmetadata-ui/src/main/resources/ui/src/utils/CustomProperty.utils.ts:80 - serializeTimeInterval coerces
start/endwithNumber(...)but doesn't guard against non-numeric inputs. If a field contains an invalid number, it will serialize toNaN(which becomesnullin JSON), producing backend-invalid payloads that are hard to debug.
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/IntakeFormRepository.java:108 - removeCustomPropertyField updates the IntakeForm by calling the low-level
store(form, true), which bypasses the versioned EntityUpdater path (no version bump, no changeDescription, and no change-event stream entry). This can leave audit/version history inconsistent with the persisted JSON when custom properties are deleted.
public void removeCustomPropertyField(String entityType, String propertyName) {
String json = Entity.getCollectionDAO().intakeFormDAO().findByEntityType(entityType);
if (json == null) {
return;
}
IntakeForm form = JsonUtils.readValue(json, IntakeForm.class);
if (!IntakeFormUtil.removeCustomPropertyField(form, propertyName)) {
return;
}
form.setUpdatedAt(System.currentTimeMillis());
store(form, true);
}
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TypeRepository.java:461
- Custom-property deletion prunes IntakeForms via
intakeFormRepository.removeCustomPropertyField(...), but that helper currently performs a direct store without versioning/events. Since this is triggered from a Type update, the cascade should ideally flow through a versioned IntakeForm update and attribute the change to the sameupdatedByto keep history/event consumers consistent.
if (Entity.hasEntityRepository(Entity.INTAKE_FORM)) {
IntakeFormRepository intakeFormRepository =
(IntakeFormRepository) Entity.getEntityRepository(Entity.INTAKE_FORM);
intakeFormRepository.removeCustomPropertyField(updated.getName(), property.getName());
}
| const normalizeExtensionForApi = ( | ||
| extension: Record<string, unknown> | undefined | ||
| extension: Record<string, unknown> | undefined, | ||
| definitions?: Record<string, CustomProperty>, | ||
| extensionFormValues?: Record<string, unknown> | ||
| ): Record<string, unknown> | undefined => { | ||
| if (!extension) { | ||
| if (!extension && !extensionFormValues) { | ||
| return extension; | ||
| } | ||
| const rawValues = { ...extension }; | ||
| Object.entries(extensionFormValues ?? {}).forEach(([formKey, raw]) => { | ||
| rawValues[getExtensionPropertyNameFromFormKey(formKey)] = raw; | ||
| }); |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 59 out of 61 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (2)
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/IntakeFormRepository.java:108
- removeCustomPropertyField() directly calls store(form, true), which bypasses the EntityUpdater pipeline (version bump, changeDescription/audit history, and change-event publication). This can leave clients/subscribers with stale intake-form definitions after a custom property delete cascade. Consider performing a normal repository update (diff original vs updated) so versioning + events are emitted.
return;
}
form.setUpdatedAt(System.currentTimeMillis());
store(form, true);
}
openmetadata-ui/src/main/resources/ui/src/utils/CustomProperty.utils.ts:103
- getCustomPropertyReferenceSearchIndex() returns a comma-joined string cast to SearchIndex, but SearchIndex is an enum of single index names (no comma-separated values). This type assertion undermines type-safety and can leak invalid values into components typed as SearchIndex (e.g., DataAssetAsyncSelectListProps.searchIndex). Consider widening the return type (e.g., SearchIndex | SearchIndex[]) and updating call sites to pass arrays, letting searchAPI join them.
✅ Playwright Results — workflow succeededValidated commit ✅ 1262 passed · ❌ 0 failed · 🟡 5 flaky · ⏭️ 66 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 1h 21m 35s ⏱️ Max setup 3m 9s · max shard execution 20m 51s · max shard-job elapsed before upload 24m 26s · reporting 10s 🌐 189.45 requests/attempt · 2.23 app boots/UI scenario · 27.66% common-shard skew Optimization targets still in progress:
🟡 5 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
removeCustomPropertyField mutated the form and called store() directly, skipping the version bump, updatedBy, changeDescription and change event. Because the version stayed put, a client holding a pre-prune copy could PUT it back and still pass the optimistic-lock check, silently restoring the deleted field with no audit trail. Route the prune through getUpdater(...).update() and attribute it to the user who deleted the custom property. IntakeFormUpdater already records formFields/requiredFields, so the cascade now produces a proper change description. assertDeletedPropertyPruned asserts the version increment, updatedBy and the recorded formFields change, which fails on the store()-directly path. Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 59 out of 61 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
openmetadata-ui/src/main/resources/ui/src/utils/CustomProperty.utils.ts:104
getCustomPropertyReferenceSearchIndexcan return a comma-joined value when multiple entity types are configured, but it’s typed asSearchIndexand usesas SearchIndexcasts. This hides the fact that the value is not a validSearchIndexenum member and makes it easy to pass an invalid type to consumers (e.g., components that typesearchIndexasSearchIndexonly). Consider changing the helper to returnSearchIndex | SearchIndex[](preferred) orstring, and update call sites/prop types accordingly so multi-index usage is represented without unsafe casts.
…alue
Address PR review findings on the shared extension serializer and the
domain intake widgets:
- integer/number/timestamp and timeInterval bounds now emit only finite
numbers, so a non-numeric value is omitted rather than POSTed as NaN
(invalid JSON for the backend). The empty-bound check is kept ahead of
the coercion because Number('') is 0, not NaN.
- table-cp is serialized explicitly and omitted when no row is populated,
so an optional table no longer ships an empty {columns, rows: []}.
- MarkdownExtensionField seeds RichTextEditor from the current field
value instead of always '', so a pre-populated form no longer renders
an empty editor the user can overwrite by accident.
- Replace the hardcoded tw:gap-[6px] with the tw:gap-1.5 design token
that the CI Tailwind audit maps it to.
Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Will we need this migration to 2.0 as well?
There was a problem hiding this comment.
Not needed here, 1.13.3 will be executed for 2.0 as well.
Any migration in lower versions not executed will be executed in higher versions, so its fine
…rm spec Commit 5ded29b intentionally removed the 'Custom Properties' Typography heading from AddDomainFormExtensionFields. Remove the two toContainText assertions that depended on it so the test matches the current component. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ty test
1. Date picker popup didn't close before the dateTime picker opened, so
getByRole('button', { name: 'Today' }) resolved to 2 elements and
the strict-mode locator threw. Wait for 'Today' to be hidden after
each Apply click before opening the next picker.
2. Multi-enum second selection: pressing Escape returns focus to the
combobox input; with menuTrigger="focus" the Autocomplete immediately
reopens the dropdown, causing a re-render cycle that detaches the input
before the next click lands. Click the name input to defocus and wait
for the listbox to disappear before re-clicking the multiEnum input.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Code Review ✅ Approved 4 resolved / 4 findingsRefactors intake-form custom property rendering and serialization across domain, data product, and glossary creation flows to correctly support all data types and optional fields. Addresses previous findings regarding custom-property fetch payloads, entity updater versioning, table serialization trailing rows, and optional field error hints. ✅ 4 resolved✅ Bug: Custom-property fetch failure reintroduces invalid extension payloads
✅ Quality: removeCustomPropertyField bypasses EntityUpdater (no version/audit/change event)
✅ Edge Case: Table serialization keeps blank trailing rows in payload
✅ Quality: Optional missing-definition field always renders an error hint
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source |



Describe your changes:
Fixes #30612
I reworked how intake-form custom properties are rendered and serialized in the Create Domain / Data Product / Glossary Term forms, because the previous implementation used a private type→widget switch in
AddDomainFormthat only handledenum/integer/number/string— sohyperlink-cpfell through to a plain text input and POSTed a bare string (the 400 in this issue),entityReferencewas hardcoded to a user/team picker that ignoredcustomPropertyConfig(a property restricted toglossaryTermlisted users), and every remaining type produced a payload shape the backend rejects. Custom properties are now rendered by dedicated per-type widgets in both form stacks, serialized through one sharedserializeExtensionValuehelper so every submit path emits backend-valid shapes, and grouped under a "Custom Properties" section with a property-type badge. This also adds intake-form support to the Create Glossary Term modal, which had none even though the backend enforces intake forms onPOST /v1/glossaryTerms, and lets intake forms include optional (not just required) fields via a newformFieldsarray with a per-fieldrequiredflag.Type of change:
High-level design:
UI — two form stacks, one serializer. The create forms live on two different stacks, so the widgets are implemented twice but the payload logic is shared:
AddDomainFormExtensionFields.tsx(new) — react-aria/react-hook-form widgets for Create Domain + Data Product. Kept the core-componentsUSER_TEAM_SELECT_INPUTwidget for entity references but fed it from a newfetchExtensionReferenceOptions, which searchesgetCustomPropertyReferenceSearchIndex(definition)and stores a realEntityReference. Deliberately avoided embeddingDataAssetAsyncSelectListhere: it is Ant Design, and antd popups portal todocument.bodyand break inside the react-aria create drawers.GlossaryTermIntakeFields.component.tsx(new) — antd widgets for the Create Glossary Term modal, which is an antdModal, so it reuses the existingDataAssetAsyncSelectList,DatePicker,SchemaEditor, etc.serializeExtensionValue(inCustomProperty.utils.ts) is shape-based and stack-agnostic, so all three submit paths — the domain form's own submit, the drawer footer'stransformDomainFormData, and the glossaryhandleSave— emit identical, backend-valid JSON.Schema — additive, backward compatible.
intakeForm.jsongainsformFields(withrequiredper field);requiredFieldsis retained as a deprecated compatibility view that the backend keeps in sync viaIntakeFormUtil, so existing API clients and stored rows keep working. A1.13.3post-data migration backfillsformFieldsfromrequiredFields. Deleting a custom property now removes it from any intake form referencing it, instead of leaving a dangling field.Alternative rejected: reusing
PropertyValue.tsx(the entity-details editor) inside the create forms. It is antd + inline-edit oriented and would have broken in the react-aria drawers, so the shared logic was factored into utils instead of the components.Tests:
Use cases covered
hyperlink-cpproperty sends{url, displayText?}and succeeds (previously a 400)entityReferenceproperty configured forglossaryTermlists glossary terms — not users — and submits{id, type: "glossaryTerm"}integer/number/timestampsubmit JSON numbers,enumsubmits an array, date/dateTime/time submit strings in the configured formatUnit tests
AddDomainFormExtensionFields.test.tsx,GlossaryTermIntakeFields.test.tsx,AddGlossaryTermForm.test.tsx(all new), plusAddDomainForm.test.tsx,CustomProperty.utils.test.ts,IntakeFormUtils.test.ts,PropertyValue.test.tsxIntakeFormUtilTest.java(new),IntakeFormValidatorTest.javafetchExtensionReferenceOptionsassertssearchQueryis called withsearchIndex: 'glossaryTerm'and never withUSER/TEAM, and the serializer asserts the{url, displayText?}hyperlink shape.Backend integration tests
openmetadata-integration-tests/for new/changed API endpoints.IntakeFormResourceIT.java(+488 lines) —formFields/requiredFieldsround-trips, optional-field handling, and custom-property deletion cascading into intake forms.Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Pages/IntakeForm.spec.ts— a Data Product test asserting the create payload for every property type (including an invalid-URL negative case), a Domain variant covering the shared form, and a Glossary Term test asserting create-time enforcement plus that intake fields are absent when editing.Manual testing performed
npx tsc --noEmitis clean for the changed files; UI checkstyle (organize-imports → eslint --fix → prettier) andmvn spotless:check -pl openmetadata-serviceboth pass.UI screen recording / screenshots:
Not attached — the change is verified by the Playwright payload assertions above. Happy to add a recording if reviewers want one.
Checklist:
I have read the CONTRIBUTING document.
My PR is linked to a GitHub issue via
Fixes #30612above.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.
I have added tests (unit / integration / Playwright as applicable) and listed them above.
I have added a test that covers the exact scenario we are fixing.
Greptile Summary
This PR expands intake forms to support optional fields and all custom-property types across Domain, Data Product, and Glossary Term creation.
formFieldswhile retaining and synchronizing the legacyrequiredFieldsrepresentation.Confidence Score: 3/5
The PR is not yet safe to merge because the custom-property deletion cascade can dispatch IntakeForm lifecycle reactions before the enclosing Type update has committed, and its transaction atomicity remains unresolved.
The nested IntakeForm updater reacts immediately while execution is still inside the outer Type mutation, allowing subscribers to observe work that a later rollback or retry can invalidate; the nested JDBI transaction boundary also does not yet establish that the IntakeForm mutation and manually inserted event commit atomically with the initiating deletion.
Files Needing Attention: openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/IntakeFormRepository.java; openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TypeRepository.java; openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java
Important Files Changed
formFieldsandrequiredFields.formFieldswhile retaining the deprecated compatibility field.Reviews (24): Last reviewed commit: "Merge branch 'main' into harshach/intake..." | Re-trigger Greptile