Repository navigation
fix(dq): #33556 filtered "Select all" on a bundle suite adds only the filtered subset - #33656
Conversation
✅ Playwright Results — workflow succeededValidated commit ✅ 1017 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 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) 56m 23s ⏱️ Max setup 4m 43s · max shard execution 16m 49s · max shard-job elapsed before upload 21m 9s · reporting 5s 🌐 159.77 requests/attempt · 2.10 app boots/UI scenario · 12.69% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
🚦 Removed from the merge queue —
|
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
Code Review ✅ Approved 2 closed / 2 findings🔴 High risk · The PR changes persisted suite membership through filter-driven bulk writes Filtered "Select all" on bundle suites now respects the active search filter end to end, addressing the bug where bulk add ignored filter context. Previous findings—unnecessary fully-qualified class names and redundant suite reloads per batch—have been resolved; filtered bulk adds now batch relationship inserts in a single transaction and call ✅ 2 closed✅ Quality: Fully-qualified class name used instead of import
✅ Performance: Filtered bulk add reloads and reindexes the whole suite on every batch
OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
| Count | Rule |
|---|---|
| 6 | react-hooks/exhaustive-deps |
| 2 | openmetadata-imports/review-sequential-api-calls |
| 1 | openmetadata-imports/no-cross-page-imports |
| 1 | openmetadata-imports/no-lower-layer-page-imports |
| 1 | openmetadata-imports/no-rest-ui-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx:294:34 |
react-hooks/exhaustive-deps |
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. |
| 🟡 | src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx:327:35 |
react-hooks/exhaustive-deps |
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. |
| 🟡 | src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx:672:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchTestCases'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx:697:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has an unnecessary dependency: 'fetchColumnOptions'. Either exclude it or remove the dependency array. |
| 🟡 | src/components/DataQuality/AddTestCaseList/AddTestCaseList.component.tsx:794:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'items'. Either exclude it or remove the dependency array. |
| 🟡 | src/components/DataQuality/BundleSuiteForm/BundleSuiteFormDrawer.tsx:121:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'computeDefaultValues' and 'form'. Either include them or remove the dependency array. |
| 🟡 | src/components/DataQuality/BundleSuiteForm/BundleSuiteFormDrawer.tsx:129:11 |
openmetadata-imports/review-sequential-api-calls |
Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent |
| 🟡 | src/components/DataQuality/BundleSuiteForm/BundleSuiteFormDrawer.tsx:153:7 |
openmetadata-imports/review-sequential-api-calls |
Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent |
| 🟡 | src/pages/TestSuiteDetailsPage/hooks/useTestSuiteDetailsPage.tsx:54:1 |
openmetadata-imports/no-cross-page-imports |
Page features must not import another page feature. Move shared code to components, hooks, interfaces, or pure utilities. |
| 🟡 | src/rest/testAPI.ts:47:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/rest/testAPI.ts:47:1 |
openmetadata-imports/no-rest-ui-imports |
REST clients must not import UI or state-layer modules. Move shared request/response types to the interface layer. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
|
|



Summary
Part 2 of #33556 — the "Select all selects everything, ignoring the filter" bug.
When adding test cases to a bundle suite, clicking Select all N test cases while a search/filter was applied sent
mode=allwith no filter context, so the backend added every test case in the system instead of the filtered subset shown in the UI.This makes bulk
allfilter-aware end to end.Schema
bundleSuiteBulkAddRequestBulkAll.filtergains the same criteria the UI exposes —q,testCaseStatus,testCaseType,entityLink,includeAllTests,columnName— alongside the existingexcludeIds.Backend
TestCaseResource— when the filter carries search criteria, build aSearchListFilter(reusing the existingbuildSearchListFilter+entityLink→entityFQNinjection) and route to the repository. No-filterallkeeps the original bulk-insert path (backward compatible).TestCaseRepository.addMatchingTestCasesToLogicalTestSuite— resolves matching ids from the search index viasearch_afterdeep pagination (listWithDeepPagination, batch 1000, sorted onfullyQualifiedName.keyword), so the count is not capped bymax_result_window; dropsexcludeIdsand reuses the existing add-by-ids path.UI
AddTestCaseList— carries the active search/filter into everyselectAllpayload.useTestSuiteDetailsPage(existing suite) andBundleSuiteFormDrawer(create suite) — forward the filter through.rest/testAPI— newAddTestCaseListFiltertype; maps the filter into the bulk request.Generated TS types regenerated from the schema.
Testing
mvn -pl openmetadata-service -am compile— passesmvn -pl openmetadata-integration-tests -am test-compile— passes (new ITtest_bulkAddAllRespectsSearchFilter)mvn -pl openmetadata-service,openmetadata-integration-tests spotless:apply— cleanjest—AddTestCaseList47/47,BundleSuiteFormDrawer21/21tsc --noEmit— clean; ESLint 0 errors; Prettier cleantest_bulkAddAllRespectsSearchFilterend to end.Fixes #33556 (with #33654)
The PR appears safe to merge; both previous findings are resolved and no new actionable defect remains.
Summary
This PR makes bundle-suite “Select all” operations preserve the active test-case filter end to end and addresses both previous review findings.
Diagram
sequenceDiagram participant UI as AddTestCaseList participant API as TestCaseResource participant Search as Search Repository participant DB as TestCaseRepository UI->>UI: Snapshot active search/filter UI->>API: "Bulk add (mode=all, filter, excludeIds)" alt Filter has search criteria API->>Search: Deep-page matching test-case IDs loop Each search page Search-->>API: Up to 1,000 IDs + search_after cursor end API->>DB: Add matching IDs in bounded batches else No search criteria API->>DB: Existing unfiltered bulk-add path end DB-->>UI: Updated bulk-add responseReviews (4) · Last reviewed commit: "Merge branch 'main' into fix/33556-selec..."