Skip to content

fix(intake-forms): port #30614 UI changes to 1.13 — custom-property type rendering in create forms - #30726

Merged
anuj-kumary merged 36 commits into
1.13from
ui-cherry-pick-30614-1.13
Jul 31, 2026
Merged

anuj-kumary merged 36 commits into
1.13from
ui-cherry-pick-30614-1.13

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Cherry-picks the UI-only portion of #30614 ("fix intake-forms: render every custom-property type correctly in create forms") onto the 1.13 release branch, adapted for 1.13's antd Form stack (no react-hook-form or @openmetadata/ui-core-components imports).

What changed

New files:

  • AddDomainFormExtensionFields.tsx — antd-based renderer for custom-property intake fields (date, dateTime, time, timestamp, integer, number, enum, hyperlink, entityReference, entityReferenceList, markdown, timeInterval); renders inside a data-testid="custom-properties-section" wrapper with a CustomPropertyTypeBadge per field
  • AddDomainFormExtensionFields.utils.ts — getExtensionFieldKind maps API property-type names to local render kinds; includes hyperlink-cp fix
  • GlossaryTermIntakeFields.component.tsx — imperative-ref child that owns its own antd Form for the glossary term create modal; exposes validate() and getExtension() to parent
  • CustomPropertyTypeBadge/CustomPropertyTypeBadge.component.tsx — antd Tag showing property type name
  • IntakeFormUtils.ts — getIntakeFormFields bridge between legacy requiredFields and new formFields

Modified files:

  • intakeForm.ts — added IntakeFormField interface + formFields?: IntakeFormField[] to IntakeForm
  • createIntakeForm.ts — same formFields addition on the create request type
  • CustomProperty.utils.ts — added serializeExtensionValue, hasPopulatedTableRows; fixed getCustomPropertyTypeDisplayName to return UPPERCASE names (HYPERLINK, ENTITYREFERENCE, STRING, etc.) matching the Playwright badge assertions
  • AddDomainForm.component.tsx — replaced the old 145-line extensionFields useMemo with <AddDomainFormExtensionFields>; buildExtension serializes every custom-property type correctly on submit
  • AddGlossaryTermForm.component.tsx / .interface.ts — accept intakeFormFields, intakeCustomProperties, intakeFieldsRef and render GlossaryTermIntakeFields when fields are present
  • IntakeFormDesignerModal.tsx — reads/writes new formFields + legacy requiredFields with per-field required checkboxes
  • IntakeForm.spec.ts — ported new test blocks from main: IntakeForm — custom-property type regressions (covers all custom-property types in a data product form + hyperlink URL validation) and IntakeForm — Glossary Term create and edit

Test plan

  • Run yarn playwright test IntakeForm --project=chromium on a running 1.13 server
  • IntakeForm — custom-property type regressions → Data Product serializes all types correctly (entity reference, hyperlink {url,displayText}, integer, number, date, dateTime, time, timestamp, entityReferenceList)
  • IntakeForm — custom-property type regressions → URL validation rejects ftp:// and accepts https://
  • IntakeForm — Glossary Term create and edit → required intake fields submitted on create, absent on edit
  • Existing entity-reference tests continue to pass

🤖 Generated with Claude Code

Greptile Summary

This PR ports custom-property-aware intake form rendering to the 1.13 UI.

  • Adds type-specific extension controls and serialization for domain and data-product creation.
  • Integrates intake fields directly into glossary-term creation.
  • Adds per-field inclusion and required-state support to the intake form designer.
  • Expands Playwright coverage for custom-property types and glossary-term intake behavior.

Confidence Score: 4/5

The PR is not yet safe to merge because glossary-term creation can still submit without loaded intake requirements when configuration requests are pending or fail.

The glossary form initializes intake configuration as absent, performs both configuration requests asynchronously, and leaves the modal submit action enabled; failures also reset configuration to empty state. A fast submission or request failure can therefore omit configured fields and defer the error to backend validation.

Files Needing Attention: openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.component.tsx; openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermModal/GlossaryTermModal.component.tsx

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainFormExtensionFields.tsx Adds type-specific custom-property controls and targeted multi-type entity-reference search.
openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.component.tsx Connects glossary creation to intake configuration, but submission remains possible while configuration is unavailable or still loading.
openmetadata-ui/src/main/resources/ui/src/pages/IntakeForms/IntakeFormDesignerModal.tsx Adds included and required state management for the new formFields representation.
openmetadata-ui/src/main/resources/ui/src/utils/CustomProperty.utils.ts Adds centralized serialization for the custom-property value shapes used by create forms.
openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts Expands end-to-end coverage across intake designer behavior, custom-property types, and glossary-term creation.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Designer[Intake form designer] --> Config[Intake form configuration]
  Config --> Domain[Domain and data-product create form]
  Config --> Glossary[Glossary-term create form]
  Domain --> Serializer[Type-aware extension serialization]
  Glossary --> Serializer
  Serializer --> API[Entity create API]
  API --> Validator[Backend intake validator]
Loading

Reviews (24): Last reviewed commit: "removed unwated scenerio" | Re-trigger Greptile

anuj-kumary and others added 3 commits July 31, 2026 00:24
Conflict-resolved UI portion of the #30614 cherry-pick:
- AddDomainForm, AddGlossaryTermForm, PropertyValue, useGridEditController, CSVUtilsClassBase
- IntakeForm Playwright spec
- All 19 locale JSON files (keys merged from both 1.13 and main)

Backend + new files landed directly on 1.13 in the preceding commit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…m stack

- AddDomainFormExtensionFields: renders all custom-property types using antd
  Form/Form.Item instead of react-hook-form and @openmetadata/ui-core-components
- GlossaryTermIntakeFields: antd-Form-based imperative ref component
- CustomPropertyTypeBadge: use antd Tag instead of ui-core-components Badge
- AddDomainForm: switch from extensionRequiredFields/FieldProp[] to
  formFields-based AddDomainFormExtensionFields component
- IntakeFormUtils: getIntakeFormFields, getRequiredIntakeFormFields, toLegacyRequiredFields
- IntakeFormDesignerModal: updated for new formFields schema with include/required flags
- Generated types: added IntakeFormField and formFields to intakeForm.ts and createIntakeForm.ts
- CustomProperty.utils: added getCustomPropertyTypeDisplayName

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…erage for 1.13

- Fix getCustomPropertyTypeDisplayName to return UPPERCASE names (HYPERLINK, ENTITYREFERENCE, STRING, etc.) matching Playwright test expectations; PR #30614 used the same convention
- Fix getExtensionFieldKind: add hyperlink-cp → hyperlink case (HYPERLINK_TYPE_CUSTOM_PROPERTY constant)
- Rewrite AddDomainFormExtensionFields: add custom-properties-section wrapper + CustomPropertyTypeBadge per field; fix hyperlink sub-field testids (url/displayText); add ExtensionEntityRefSelect combobox that calls /api/v1/search/query for non-user entity reference types; add multiple-select support for entityReferenceList; use message.url-must-use-http-or-https for URL validation error
- Port IntakeForm.spec.ts new test blocks from main: add ensureCustomProperty, removeCustomProperty, IntakeRequiredField, createIntakeForm, extensionInput, selectExtensionReference helpers; add GLOSSARY_TERM_INTAKE_NAME constant; add 'IntakeForm — custom-property type regressions' describe block covering date/dateTime/time/timestamp/integer/number/hyperlink/entityReference/entityReferenceList fields; add 'IntakeForm — Glossary Term create and edit' describe block
@anuj-kumary
anuj-kumary requested a review from a team as a code owner July 30, 2026 20:13
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Jul 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@anuj-kumary anuj-kumary self-assigned this Jul 31, 2026
@anuj-kumary anuj-kumary added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Jul 31, 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.

…etadata/OpenMetadata into ui-cherry-pick-30614-1.13

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainForm.component.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.component.tsx
anuj-kumary and others added 6 commits July 31, 2026 08:34
…y datetime utils

- Add parseCustomPropertyDateTime and formatCustomPropertyDateTime to
  CustomProperty.utils.ts so PropertyValue.tsx can import them (fixes
  the Rollup "not exported" build error)
- Revert AddDomainForm.interface.ts to its pre-bad-commit form; the
  Collate-specific types (DomainFormSelectItem, DomainFormValues) it
  imported from CoverImageUploadUtils were not exported and broke the
  build
- Revert CSVUtilsClassBase.tsx: the bad commit added 1862 lines that
  imported isSystemClassificationTagFqn, getCustomPropertyReferenceSearchIndex
  and EntityBulkEditConfigClassBase — none of which exist in 1.13 OSS
- Restore locale JSONs, AddDomainForm.test.tsx and useGridEditController.ts
  to their upstream 1.13 state (bad commit overwrote them with
  Collate-only code)
- Drop unused getCustomPropertyTypeDisplayName import from
  AddDomainFormExtensionFields.tsx (CustomPropertyTypeBadge handles it)
…ix badge/separator styling

- Replace antd Input/InputNumber with MUITextField for text, email, number,
  timestamp, hyperlink, timeInterval, and fallback fields so they visually match
  the rounded MUI inputs used for Experts/Reviewers
- Fix CustomPropertyTypeBadge: remove antd 5.x-only `bordered` prop (TS2322),
  use inline `border: none` style instead; remove unused React import (TS6133)
- Fix GlossaryTermIntakeFields: add component={false} to inner antd Form so it
  renders no <form> HTML element — eliminates the horizontal line separator that
  appeared between Reviewers and custom-property fields; remove unused React import

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…InputBase for text fields

- Switch all text/email/number/timestamp/hyperlink/timeInterval/fallback fields
  from MUITextField to a thin CoreTextInput adapter around InputBase
  (@openmetadata/ui-core-components). InputBase renders a clean rounded border
  via Tailwind ring — no MUI fieldset/legend that caused a visible line at the
  top of the outlined box
- Fix label+badge gap: use inline-flex span with gap:6 so the type badge has
  consistent spacing from the label text across all field types

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…re required asterisk

Replaced gap:6 inline-flex span with a plain text space so the label, badge,
and antd-injected asterisk all flow as inline content with no extra container gap.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- marginLeft: 4 on Tag gives small gap between label text and badge
- marginRight: 0 overrides antd Tag's default 8px right margin that was
  creating the large gap between the badge and the required asterisk

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
anuj-kumary and others added 5 commits July 31, 2026 15:11
antd's .ant-form-vertical CSS relies on a class that antd injects at
runtime. The project's own form-item-vertical class in form.less uses a
higher-specificity selector (.form-item-vertical .ant-form-item-row) that
overrides the default flex-direction:row regardless of antd's CSS load
order, guaranteeing labels stack above inputs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…in form

Align glossary-term intake form with how domain/data-product do it:
- Move AddDomainFormExtensionFields directly inside the outer antd Form
  (layout="vertical"), so the extension Form.Items inherit its context and
  its vertical layout without a separate inner form or a forwardRef
- Drop GlossaryTermIntakeFields (separate inner Form + imperative ref) —
  no longer needed since antd validates extension fields automatically on
  form.submit() and values arrive directly in handleSave via formObj.extension
- Add buildExtension to serialize extension values (mirrors domain's impl)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… helper

- CoreEntityRefSelect: use SearchIndex.ALL when multiple entity types are
  configured so results from every allowed type appear, not just the first
- IntakeFormDesignerModal: replace inline requiredFields derivation with
  toLegacyRequiredFields() from IntakeFormUtils to remove the duplication
- IntakeFormUtils: drop unused getRequiredIntakeFormFields export

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
anuj-kumary and others added 5 commits July 31, 2026 15:46
Add translations for the 4 keys introduced in #30614 that were only
present in en-us.json:
  - custom-property-definition-unavailable
  - custom-property-empty-description
  - enter-a-valid-link-example
  - enter-text-to-display-for-link

Also fix intake-form-custom-properties-help in all non-English locales:
the previous value was English fallback text in every locale file.

Languages: ar-sa, de-de, es-es, fr-fr, gl-es, he-he, ja-jp, ko-kr,
           mr-in, nl-nl, pr-pr, pt-br, pt-pt, ru-ru, th-th, tr-tr,
           zh-cn, zh-tw

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…arch

When an entityReference custom property allows multiple types (e.g.
user, team, glossaryTerm), pass them as a comma-separated index string
("user,team,glossaryTerm") instead of the catch-all "all" index.

getSearchIndexParam in searchAPI.ts already passes string values through
as-is, so Elasticsearch receives a targeted multi-index query. This
mirrors main's getCustomPropertyReferenceSearchIndex(definition) which
does config.join(',').

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ilures

PropertyValue.test: add parseCustomPropertyDateTime to the CustomProperty.utils
mock — our commit 28a5b29 added the function to the utils file but the test
mock only listed getCustomPropertyLuxonFormat, making the date-cp/dateTime-cp
render path throw at runtime.

GlossaryTermRelationSettings.test: replace jest.requireActual('@openmetadata/
ui-core-components') with explicit inline mocks so that react-aria-components'
ModalOverlay (bundled inside the real SlideoutMenu) no longer triggers an
"Invalid hook call" outside a component context.  Add compound sub-component
mocks (Table.*, SlideoutMenu.*, TableCard.Root, Select.Item), handle the
Table.Body render-prop (items + function-as-children), handle SlideoutMenu's
function-as-children pattern, and expose the Input label/hint props that the
duplicate-error assertion depends on.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…card search

When the Autocomplete fires onSearchChange('') on focus/open our handler
returned early and left the dropdown empty. Use '**' (Elasticsearch
wildcard-all) for empty queries so the dropdown shows initial suggestions
across all configured types (e.g. user,team,glossaryTerm) when the field
first opens — matching how the entity-reference picker behaves elsewhere.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…on type

The Autocomplete uses menuTrigger="input" so it only calls onSearchChange
when the user types — clicking the field opens the dropdown but leaves it
empty. Fix: hook onOpenChange and fire a wildcard ('**') search on first
open so the dropdown is pre-populated immediately. A ref guards against
re-fetching on subsequent opens when items are already loaded.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment on lines +85 to +90
.catch((error: AxiosError) => {
if (!cancelled) {
setIntakeForm(null);
showErrorToast(error);
}
});

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.

P1 Configuration failures bypass intake enforcement

When either intake-configuration request fails, these handlers replace the unavailable configuration with empty state while leaving submission enabled. The form then omits configured requirements or submits custom-property values without type-aware serialization, causing glossary-term creation to fail backend validation without field-level remediation.

Knowledge Base Used: IntakeForm: Configurable Required Fields for Governance Entities

…ect scenarios

Covers 6 entity-reference custom property scenarios:
- initial dropdown load fires wildcard search on first open (validates onOpenChange fix)
- search-as-you-type narrows results via scoped API call
- single selection stores correct entityReference shape in the API payload
- list mode (entityReferenceList) stores an array of two entity references
- multi-type allowedTypes sends a comma-joined search index (e.g. glossaryTerm,table)
- clearing a selected reference removes the selection chip

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
anuj-kumary and others added 3 commits July 31, 2026 17:44
…ting fixtures

Backend enforces intake-form required fields on API creates too, so a
leftover domain or glossaryTerm form with required custom properties made
Domain.create()/GlossaryTerm.create() in beforeAll fail with 400.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…e2e spec

Component: replace the once-per-mount initialFetchRef guard with a
lastQueryRef check — if the first wildcard fetch fails or races search
indexing, reopening the dropdown now re-fires it instead of leaving the
list empty until the user types. Typed queries are never clobbered.

Spec (review feedback):
- scenario 4 registered waitForResponse after the fill that triggers the
  request; all searches now go through a shared searchEntityRefOption
  helper that retries the full search, which also rides out async ES
  indexing of the beforeAll fixtures
- scenario 1 reopens the dropdown until options appear instead of
  asserting on the first (possibly pre-index) response
- scenario 6 asserts the selected chip is gone in both clear paths

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

❌ UI Checkstyle Failed

❌ ESLint + Prettier + Organise Imports (src)

One or more source files have linting or formatting issues.

❌ Playwright - ESLint + Prettier + Organise Imports

One or more Playwright test files have linting or formatting issues.

Affected files
  • openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts

❌ Tailwind Audit

Hardcoded Tailwind values found. Use a design-system utility (run yarn tw-audit:report for the token each value maps to).

❌ Antd + Less Deprecation Guard

A new antd import or new .less file was added. Use UntitledUI + Tailwind for new work.

Affected files

at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
at Function._load (node:internal/modules/cjs/loader:1211:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49 {


Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 64%
64.14% (62269/97072) 44.54% (33376/74926) 47.35% (10213/21566)

@sonarqubecloud

Copy link
Copy Markdown

@anuj-kumary
anuj-kumary merged commit f30b160 into 1.13 Jul 31, 2026
61 of 64 checks passed
@anuj-kumary
anuj-kumary deleted the ui-cherry-pick-30614-1.13 branch July 31, 2026 13:04
@gitar-bot

gitar-bot Bot commented Jul 31, 2026

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

Ports the 1.13 intake-form custom-property rendering and serialization changes from main, addressing missing glossary-term intake fields, raw dayjs serialization, and multi-type entity reference queries. No issues found.

✅ 13 resolved
✅ Bug: Glossary Term intake fields never rendered or submitted

📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.component.tsx:74-88
The new glossary-term intake feature is not wired up end-to-end. GlossaryTermModal renders <AddGlossaryTermForm> without passing intakeFormFields, intakeCustomProperties, or intakeFieldsRef, so GlossaryTermIntakeFields (which guards on intakeFormFields.length > 0) never mounts. Additionally, AddGlossaryTermForm.handleSave never calls intakeFieldsRef.current.validate() and never merges getExtension() into the CreateGlossaryTerm payload, so even if the props were passed the custom-property values would neither be validated nor submitted. As a result the whole feature is dead code and the new E2E test 'IntakeForm — Glossary Term create and edit' (which expects custom-properties-section to be visible and the extension to be POSTed) will fail. Wire the modal to fetch the glossary-term intake form + custom properties and pass them down, hold the ref in the parent, and in the save flow await intakeFieldsRef.current.validate() before merging intakeFieldsRef.current.getExtension() into the submitted data.

✅ Bug: PropertyValue.tsx imports non-existent date helpers

📄 openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyValue.tsx:66-70 📄 openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyValue.tsx:292-298 📄 openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyValue.tsx:320-326 📄 openmetadata-ui/src/main/resources/ui/src/utils/CustomProperty.utils.ts
PropertyValue.tsx imports formatCustomPropertyDateTime and parseCustomPropertyDateTime from ../../../utils/CustomProperty.utils, but neither symbol is exported there (or anywhere in the codebase — grep finds them only in this file). Only getCustomPropertyLuxonFormat exists. This is a missing-export compile error (TS2305) and, at runtime, calling the undefined functions in the dateTime initialValues/onFinish handlers would throw. Add and export both helpers in CustomProperty.utils.ts (they appear to be part of the intended change but were not carried over in this commit), or revert PropertyValue.tsx to the previous DateTime.fromFormat/toFormat logic.

✅ Bug: Glossary Term intake fields never wired into modal or submission

📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.component.tsx:40-48 📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.component.tsx:489-495
AddGlossaryTermForm now accepts intakeFieldsRef, intakeCustomProperties, and intakeFormFields and renders GlossaryTermIntakeFields, but the only caller, GlossaryTermModal.component.tsx (lines 152-158), never passes these props and never fetches the glossaryTerm intake form. Its handleSave (lines 72-106) also never calls intakeFieldsRef.current.validate() nor merges getExtension() into the payload. As a result the entire glossary-term intake feature is unreachable: required custom-property fields are never rendered, never validated, and never submitted — the new IntakeForm — Glossary Term create and edit E2E test will fail. Wire the props through GlossaryTermModal (fetch intake form + custom properties, create the ref, pass all three props) and validate + merge the extension in handleSave before calling onSave.

✅ Bug: Duplicate module-scope declarations break IntakeForm.spec.ts

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:62-76 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:116-130 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:153-157 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:159-173 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:176-181 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:183-197 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:224-238 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:258-272 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:295-299 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:301-315 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:318-323 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/IntakeForm.spec.ts:325-339
The merge duplicated a whole block of top-level declarations in IntakeForm.spec.ts: ensureCustomProperty (L62 & L224), removeCustomProperty (L116 & L258), type IntakeRequiredField (L153 & L295), createIntakeForm (L159 & L301), extensionInput (L176 & L318), and selectExtensionReference (L183 & L325). TypeScript/ESLint reject redeclaring block-scoped identifiers at module scope (TS2451 / TS2300), so the entire spec fails to compile and none of the ported tests run. Delete the second copy (L224-L364) of each helper/type so only one definition of each remains.

✅ Bug: date/dateTime/time custom properties serialized as raw dayjs

📄 openmetadata-ui/src/main/resources/ui/src/utils/CustomProperty.utils.ts:250-264 📄 openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainFormExtensionFields.tsx:290-304
serializeExtensionValue has no branch for the date-cp, dateTime-cp, or time-cp property types, so they fall through to default and return the raw value unchanged. The renderer uses bare antd <DatePicker>/<TimePicker> whose form value is a dayjs object, so buildExtension submits a dayjs object that JSON-serializes to a full ISO timestamp (e.g. 2026-07-15T00:00:00.000Z). This does not match the backend's expected yyyy-MM-dd / yyyy-MM-dd HH:mm:ss / HH:mm:ss string formats, and the new E2E assertions (payload.extension[date] matching /^\d{4}-\d{2}-\d{2}$/, time equal to 08:45:00, etc.) will fail. Add explicit cases that format the dayjs value using the property's configured format before submitting.

...and 8 more resolved from earlier reviews

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants