feat(explore): redesign search export scope to export full tab results with accurate counts#27354
feat(explore): redesign search export scope to export full tab results with accurate counts#27354harsh-vador wants to merge 6 commits intomainfrom
Conversation
…s with accurate counts
openmetadata-ui/src/main/resources/ui/src/components/ExploreV1/ExploreV1.component.tsx
Outdated
Show resolved
Hide resolved
openmetadata-ui/src/main/resources/ui/src/components/ExploreV1/ExploreV1.component.tsx
Outdated
Show resolved
Hide resolved
🔴 Playwright Results — 2 failure(s), 20 flaky✅ 3633 passed · ❌ 2 failed · 🟡 20 flaky · ⏭️ 85 skipped
Genuine Failures (failed on all attempts)❌
|
Code Review ✅ Approved 2 resolved / 2 findingsRedesigns search export scope to export full tab results with accurate counts, resolving issues where missing aggregation buckets caused zero-size exports and failed fetches displayed incorrect result totals. ✅ 2 resolved✅ Edge Case: Tab export sends size=0 when aggregation bucket is missing
✅ Edge Case: Failed count fetch leaves tab scope showing 0 results
OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Describe your changes:
Problem
The Search Export modal had two issues:
hits.totalcap) instead of the actual tab count (e.g., 2987)Changes
Export scope behaviour
frompagination offset is removed;sizeis set to the full tab countAccurate count
handleOpenExportScopeModalnow extracts the tab-specific count directly from theentityTypeaggregation buckets of the existingDATA_ASSETcount query (zero extra API calls). UsessearchClassBase.getEntityTypeSearchIndexMapping()to map the activesearchIndexto the correct aggregation bucket →doc_countDynamic label
The first export card now shows the active entity type name instead of the static "Visible results" (e.g., "Tables (2987 Results)", "Dashboards (90 Results)")
Screen.Recording.2026-04-14.at.5.10.36.PM.1.mov
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>