fixes: 28703 - Show total asset count for Advanced Search / filtered results on Explore page#28873
fixes: 28703 - Show total asset count for Advanced Search / filtered results on Explore page#28873satender-kumar-collate wants to merge 16 commits into
Conversation
…tive (#28703) - Render search-results-count in SearchedData when showResultCount=true - Pass showResultCount={hasActiveFilters} from ExploreV1 so the count appears only when a search query, quick filter, or advanced search filter is active — hidden in bare browse mode - Fix GlobalSearchBar clear button to navigate with search='' when on the Explore page, so clearing the search bar also resets the count and results back to browse mode - Fix Playwright auth/teardown timeouts by using domcontentloaded instead of load strategy in UserClass.ts and admin.ts - Add unit tests for SearchedData count visibility and ExploreV1 showResultCount prop propagation - Add E2E tests for count show/hide behaviour in AdvancedSearch.spec.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chirag-madlani
left a comment
There was a problem hiding this comment.
Please attach screenshot / video with changes
🟡 Playwright Results — all passed (17 flaky)✅ 4289 passed · ❌ 0 failed · 🟡 17 flaky · ⏭️ 88 skipped
🟡 17 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…e blocks The bad merge had folded column tag tests into the Explore Search Count Visibility describe block and dropped required variable declarations. - Restore Explore Search Count Visibility with its 3 correct tests - Extract column tag tests into their own Advanced Search – Column Tag filter describe block with module-level variables and beforeAll setup - Restore missing Column Tags == tag1 test that was dropped in the merge - Add ClassificationClass and TagClass imports Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The filter-checkbox-PersonalData.Personal element only appears when entities tagged with that tag exist in the search aggregations, which requires beforeAll setup not present in this describe block. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Code Review 👍 Approved with suggestions 1 resolved / 2 findingsAdds total asset count visibility for filtered Explore page results and cleans up dead code in ExploreV1. Please add cleanup logic to the Advanced Search Playwright tests to ensure entities are deleted after test execution. 💡 Quality: Column Tag describe creates entities but never deletes them📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/AdvancedSearch.spec.ts:1104-1118 The new 'Advanced Search – Column Tag filter' describe block creates a Suggested fix: add an Delete the tables, tags and classification created in beforeAll.✅ 1 resolved✅ Quality: Leftover commented-out SearchedData block in ExploreV1
🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
Describe your changes:
Fixes #28703 - Shows total result count on the Explore page when searched or filtered for a particular item.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
UI screen recording / screenshots:
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.Summary by Gitar
Explorewhen active filters or search queries are applied.hasActiveFilterslogic to track state ofqueryFilter,quickFilters,sqlQuery, andsearchQueryParam.GlobalSearchBarto persist filters when clearing search queries.AdvancedSearch.spec.tsfor count visibility.SearchedDataandExploreV1components to verify correct count rendering.admin.tsandUserClass.tsto usedomcontentloadedwait strategy for better test reliability.jest.config.jsto mockcodemirrordependencies.This will update automatically on new commits.