Repository navigation
Conversation
The input and output port picker searches the data asset index, which also holds table columns, so a column could be picked and the server then refused it as a port. The picker now excludes columns, matching what the server accepts as a port.
❌ 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 |
Code Review ✅ Approved🟡 Medium risk · Filtering columns from both data-product port pickers changes available selections; an overly broad filter could omit assets users need to associate. Excludes table columns from the data product input and output port pickers by adding a VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
| const { queryFilter } = (searchQuery as jest.Mock).mock.calls[0][0]; | ||
|
|
||
| expect(queryFilter.query.bool.must_not).toEqual( | ||
| expect.arrayContaining([{ term: { entityType: 'tableColumn' } }]) | ||
| ); |
There was a problem hiding this comment.
Later pages lack test coverage
The new port tests check only the first search request. The separate onScroll path also changed, but existing scroll tests use the glossary picker and check only the page number. Removing the exclusion from onScroll would leave these tests passing while columns reappear on later pages. Extend the parameterized test to scroll and assert that the next request still excludes tableColumn.
❌ UI Checkstyle Failed❌ Bundle Runtime CheckA route chunk loads but one of its chunks still exports 🔍 ESLint findings in this PR's files — 0 error(s), 4 warning(s)Errors block the build. Warnings do not yet — they are rules whose backlog is still 0 error(s), 4 warning(s) across 1 changed file(s).
All findings
Fix locally (fast - only checks files changed in this branch): make ui-checkstyle-changed |
|
Folded into #35740, which now carries this change together with the related governance fixes. |
|



Describe your changes:
The data product input/output port picker no longer offers table columns.
The picker searches the
dataAssetindex, and the column index (column_search_index) is one of its parents since #25622. So a column could be picked as a port, and the server then refused it (Asset '<column>' of type 'tableColumn' cannot be added as a port; ports must reference a data asset, added in #30186). The picker now leaves columns out for input and output ports only; every other asset picker is unchanged.Type of change:
High-level design:
N/A — small change in
useAssetSelectionState: amust_not entityType = tableColumnclause is combined into the picker's query filter when it picks ports.Tests:
Use cases covered
Unit tests
useAssetSelectionState.test.ts:leaves columns out of the DATA_PRODUCT_INPUT_PORT picker,... DATA_PRODUCT_OUTPUT_PORT picker,keeps columns in the glossary picker— file 41 passed;AssetsSelectionModalfolder 5 suites, 100 passed.Manual testing
Local server, a table
loyalty_memberswith columnsmember_idandloyalty_points. A plaindataAssetsearch forloyaltyreturns both columns; the Add Input Ports picker for the same search lists the database, schema, table and data products, and no columns:Checklist:
The change appears safe to merge, with a non-blocking gap in pagination tests.
Findings
Summary
Excludes table columns from data product input and output port searches.
Reviews (1) · Last reviewed commit: "fix(ui): leave columns out of the data p..." · Reviewed by Greptile