Repository navigation
Fixes #34738: Support DataAssetList with AutoComplete like component - #34739
Conversation
DataAssetAsyncSelectList (an Autocomplete select control) and DataAssetSelectList (a trigger-based picker) rendered their popups independently. Share the picker's pieces so both look the same: - core Autocomplete: optional popoverHeader / popoverFooter slots, pinned around a separately scrolling list - extract DataAssetPickerCountBar and DataAssetPickerFooter from the picker shell - DataAssetAsyncSelectList renders DataAssetPickerRow and the shared count bar and footer; users and teams keep their avatar row - DataAssetPickerRow highlights react-aria focus and carries an option-<fqn> test id
Every open re-ran the empty search and cleared the options first, so the dropdown blinked "no data" until the response arrived, with no loading indicator in the autocomplete. - useAsyncDataAssetOptions keeps the current options while a search loads and skips a query it already shows (same index and filter) - core Autocomplete takes an optional emptyState; DataAssetAsyncSelectList shows the shared DataAssetPickerLoading row there while loading - DataAssetPickerShell uses the same loading row
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
🚦 Removed from the merge queue —
|
# Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/McpApplicationConfiguration/McpApplicationConfiguration.test.tsx # openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/McpApplicationConfiguration/McpApplicationConfiguration.tsx
🚦 Removed from the merge queue —
|
# Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppRunsHistory/AppRunsHistory.component.tsx # openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppRunsHistory/AppRunsHistory.merge.test.tsx # openmetadata-ui/src/main/resources/ui/src/components/common/FormBuilder/FormBuilder.tsx
🚦 Removed from the merge queue —
|
…gmented date field
…re date picker helper
Code Review ✅ Approved 6 closed / 6 findings🟡 Medium risk · Migrating app and SSO forms to FormBuilderV1 changes field rendering and selection behavior, which could cause users to submit unintended configuration values. Unifies the data asset autocomplete with the picker dropdown (shared rows, count bar, footer, loading row) and moves remaining app and SSO forms from the legacy FormBuilder to FormBuilderV1. Resolved this session: the count bar now excludes hidden selected options, repeat queries no longer let stale in-flight searches overwrite results, unused imports that broke the tsc build were removed, the read-only run config modal Submit button works, ✅ 6 closed✅ Bug: Count bar counts selected options that the list hides
✅ Bug: Skipped repeat query lets an in-flight search overwrite the list
✅ Bug: Unused FormBuilder/validator/ServiceCategory imports break tsc build
✅ Bug: Read-only run config modal now shows a working Submit button
✅ Bug: Extending full FormProps makes
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
|



Describe your changes:
Fixes #34738
Two related changes:
DataAssetAsyncSelectList(autocomplete-style select control) andDataAssetSelectList(trigger-based picker) rendered their dropdowns independently, so the same data asset search looked different depending on the control. The autocomplete control now reuses the picker's dropdown pieces (asset rows, "Showing X of Y" count bar, keyboard-hint footer, loading row) while keeping its select-control behaviour (inline input, chips, single/multiple selection).FormBuilderremoved. The remaining users of the antdFormBuilderand its JSON-schema widgets (SelectWidget,AsyncSelectWidget,TreeSelectWidget,PasswordWidget) move toFormBuilderV1: application configuration, MCP application configuration, the read-only run config in app run history, and the SSO configuration form's enum selects.FormBuilderV1gains what those forms relied on.Merge order: open-metadata/openmetadata-collate#7265 moves
CollateAppConfigurationoffFormBuilderand must merge first;maven-collate-cifails on this PR until it does.Type of change:
High-level design:
Data asset dropdown
Autocompletegains optionalpopoverHeader,popoverFooterandemptyStateprops. With a header or footer the popover becomes a flex column: header and footer stay pinned and the list gets its own scroller, which still drivesonPopoverScrollpaging. Existing callers pass none of them and render unchanged (virtualized lists included).DataAssetPickerCountBar,DataAssetPickerFooterandDataAssetPickerLoadingare extracted fromDataAssetPickerShell; the shell composes them, soDataAssetSelectListrenders as before.DataAssetAsyncSelectListrendersDataAssetPickerRowfor entity options (user and team options keep their avatar row) and passes the count bar and footer through the new slots. While a search runs the list is replaced by the loading row, as the picker shell does, instead of leaving the previous query's results looking current.useAsyncDataAssetOptionskeeps the current options while a search loads and skips a query it already shows (same index and filter).DataAssetPickerRowhighlights react-aria's own focus state (needed inside a combobox) and carriesdata-testid="option-<fqn>".FormBuilderV1parity with the legacy buildertreeSelectfields: rendered byFormBuilderV1'sCoreEnumMultiSelectField(added onmainin feat(ui): Add Applications to the profile settings modal (core-ui) #35179), which this PR relies on rather than adding its own tree widget. Moving the app configs ontoFormBuilderV1is what puts the SearchIndexing, DataInsights, RdfIndex and CacheWarmup entity pickers on it.Field ids:
CoreSelectWidgetputs the RJSF field id on the select trigger andCoreBooleanFieldon the switch input, so<label for>and#root/<field>locators resolve as they did with the antd widgets. Select options carrydata-testid="select-option-<value>"again.Doc panel focus: custom fields (toggles, tag arrays) report focus through
formContext.handleFocus;FormBuilderV1now forwards a form-levelonFocusthere when the caller sets nohandleFocus, so the app config doc panel follows booleans and arrays again. Callers that pass their ownformContext.handleFocuskeep it.validatorprop: defaults to the stock ajv8 validator, so callers with other JSON Schema drafts can pass their own.SSO form:
SSOFieldTemplatealready draws the label, description and errors, so the SSO form wrapsCoreSelectWidgetto render only the control.Alternatives considered: turning the picker shell into a select control (would duplicate
Autocomplete's input/focus/keyboard handling and lose chips/multi-select); keeping the legacy antd widgets alongsideFormBuilderV1(two form stacks to maintain, and antd is deprecated for new work).No schema, API or migration impact.
Tests:
Use cases covered
treeSelectfields render as the "All"-aware enum multi-select; picking a specific entity replaces "All"Unit tests
autocomplete.test.tsx— popover header/footer and empty-state testsDataAssetAsyncSelectList.test.tsx(count bar, footer, loading row replaces stale results),useAsyncDataAssetOptions.test.ts,CoreBooleanField.test.tsx(field id on the real switch),FormBuilderV1.test.tsx(focus forwarding),SSOConfigurationForm.test.tsx(single label, field id on the select trigger)Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Local Playwright run: PASSED — impact-mapped specs, commit
ddab722c507, 2 workers, local stack (2.0.0-SNAPSHOT).Specs were chosen by tracing each changed component to the UI that renders it, not the planner's full list (its canary/smoke sets and the broad
FormBuilderV1mapping run in the merge queue anyway).Pages/SearchIndexApplication.spec.tstreeSelectentities picker, enum selectPages/DataInsightReportApplication.spec.tsFormBuilderV1(boolean toggles)Pages/DataInsightSettings.spec.tsPages/AppRunsHistoryLogs.spec.tsAppRunsHistory)Pages/AppStopRunModal.spec.tsFeatures/SSOConfiguration.spec.tsSsoSelectWidget, field id)Features/ProfileSsoSettings.spec.tsFormBuilderV1Features/ContextCenterMemories.spec.tsDataAssetSelectListfilter + memory modal pickerFeatures/ContextCenterPermission.spec.tsDataAssetAsyncSelectList)Flow/ServiceDocPanel.spec.tsFeatures/DataQuality/ProfilerIngestionForm.spec.ts¹CoreSelectWidget)Features/StorageMetadataAgentForm.spec.ts¹Flow/ServiceForm.spec.ts¹¹ The local stack has no Argo, so the server reports the pipeline service as unavailable and the UI disables "add ingestion" / Test Connection. These specs ran with only
GET /api/v1/services/ingestionPipelines/statusanswered as healthy by a local proxy; every other request hit the real server. They cover the forms (render, validate, submit payloads), not pipeline execution — the merge queue runs them against a real pipeline service.²
Kafka › should persist empty schemaRegistryTopicSuffixNametimed out waiting for the savePATCHonce, then passed on an isolated re-run.Not covered by an existing spec: the bulk-edit custom-property entity-reference cell (
DataAssetAsyncSelectListinCSVUtilsClassBase) — covered by its Jest tests.SearchIndexApplicationpicks Table in the entities multi-select (enum-multi-select-root/entities) instead of driving the antd tree;DataInsightReportApplicationandDataInsightSettingsclick the switch label, since the field id now sits on the visually hidden switch input;DataInsightSettingspicks the backfill dates with the existingpickDateInCorePickerhelper, since they are now coreDatePickers.AppConfigArrayField(from openmetadata-collate#7265); open-metadata/openmetadata-collate#7329 removes it so Collate uses the same widget and these specs match both.Manual testing performed
Local dev server against a local
2.0.0-SNAPSHOTstack:UI screen recording / screenshots:
TODO: attach the asset filter (idle / searching / results), Link an Asset picker, Search Indexing entities tree (closed / open) and SSO LDAP select screenshots.
Checklist:
I have read the CONTRIBUTING document.
My PR title is
Fixes <issue-number>: <short explanation>My PR is linked to a GitHub issue via
Fixes #<issue-number>above.I have commented on my code, particularly in hard-to-understand areas.
For JSON Schema changes: not applicable, no schema changes.
For UI changes: I attached a screen recording and/or screenshots above.
I have added tests (unit / integration / Playwright as applicable) and listed them above.
I have added tests around the new logic.
Summary by Gitar
FormBuildertoFormBuilderV1SelectWidgetwithCoreSelectWidgetinSSOConfigurationFormonFocusto custom fields throughformContext.handleFocusinFormBuilderV1FormBuilderand the legacy JSON schema select, async select, tree select and password widgetsCoreTreeSelectWidgetfor string enum multi-selects with anallsentineltreeSelectarrays inCoreArrayFieldto RJSF's array fieldFormBuilderV1widgets and legacy JSON schema widgets to affected specsThis will update automatically on new commits.