Repository navigation
Fixes #37309: Context Center Documents clear selection fails after folder/search changes - #37325
Merged
Rohit0301 merged 1 commit intoNov 9, 2026
Conversation
Contributor
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Rohit0301
approved these changes
Nov 9, 2026
Rohit0301
enabled auto-merge (squash)
November 9, 2026 05:40
Contributor
❌ UI Checkstyle Failed❌ Bundle Runtime CheckA route chunk loads but one of its chunks still exports Fix locally (fast - only checks files changed in this branch): make ui-checkstyle-changed |
Contributor
Rohit0301
deleted the
detail/bug-fix/fixes-37309-context-center-documents-clear-selecti-a7cc16
branch
November 9, 2026 06:02
This was referenced Nov 11, 2026
Merged
Merged
anuj-kumary
added a commit
that referenced
this pull request
Nov 11, 2026
…ings and MetricSearch (#37515) - Context Center bulk move/delete/download: #37325 clears the selection when the search changes, so select both files from one search on a uuid their names share. - ContextCenterArchive lazy-load beforeAll: 18 uploads each wait up to 90s for extraction; give the hook a 3-minute budget. - LineageSettings: an upgraded instance stores no graphPerformanceConfig and the server fills defaults on write; compare against the seeded value. - MetricSearch: assert no error toast instead of any alert-bar, which catches other workers' success notifications.
anuj-kumary
added a commit
that referenced
this pull request
Nov 11, 2026
…cs (2.1 backport of #37512) (#37513) * test(playwright): select bulk documents under one search and open OSS workflows by URL Context Center: since #37325 changing the documents search clears the selection, so selecting two files with a search per file left only the last one selected and '2 selected' never appeared. Give the files a shared prefix and select both under one search (selectDocumentsBySearch). Workflows: the list shows 12 cards per page and the seeded workflow definitions already fill page 1, so the test workflow was on page 2 and never clickable. Open the detail page by URL. (cherry picked from commit 899e67f) * chore(playwright): regenerate impact map
anuj-kumary
added a commit
that referenced
this pull request
Nov 11, 2026
…ings and MetricSearch (#37514) - Context Center bulk move/delete/download: #37325 clears the selection when the search changes, so select both files from one search on a uuid their names share. - ContextCenterArchive lazy-load beforeAll: 18 uploads each wait up to 90s for extraction; give the hook a 3-minute budget. - LineageSettings: an upgraded instance stores no graphPerformanceConfig and the server fills defaults on write; compare against the seeded value. - MetricSearch: assert no error toast instead of any alert-bar, which catches other workers' success notifications.
anuj-kumary
added a commit
that referenced
this pull request
Nov 11, 2026
…cs failing on 2.1 (#37512) * test(playwright): select bulk documents under one search and open OSS workflows by URL Context Center: since #37325 changing the documents search clears the selection, so selecting two files with a search per file left only the last one selected and '2 selected' never appeared. Give the files a shared prefix and select both under one search (selectDocumentsBySearch). Workflows: the list shows 12 cards per page and the seeded workflow definitions already fill page 1, so the test workflow was on page 2 and never clickable. Open the detail page by URL. * chore(playwright): regenerate impact map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detail bug report: View on Detail
Describe your changes:
Fixes #37309
In the Context Center Documents page, stale "ghost" ids remain in
selectedIdswhen the visible list changes (folder navigation, search, or single-file delete). The bulk-action bar's Clear button only toggled ids present in the currently rendereddata, so it could not deselect ids that were no longer visible — the bar stayed on with a stale count, and bulk delete/move passed those invisible ids to the APIs.I worked on clearing the document selection whenever the visible context changes and giving the Clear button a way to empty the entire set, because bulk actions should never operate on files the user cannot see in the current view.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
onClearSelectionfalls back to the old per-id toggle behavior (backward compatibility)Unit tests
src/components/ContextCenter/DocumentsView/DocumentsView.test.tsx(5 new tests)src/pages/ContextCenterPage/ContextCenterDocumentsPage/ContextCenterDocumentsPage.test.tsx(4 new tests)Backend integration tests
Ingestion integration tests
Playwright (UI) tests
ContextCenterDocument.spec.tsverified against a running server — 5 key tests in isolation pass: bulk delete, bulk move, single delete, search filter, clear search).Manual testing performed
2.1.0-rc1images.ContextCenterDocument.spec.tsPlaywright suite against the pre-built UI at:8585— 26/30 passed; the 4 failures are pre-existing test-ordering/version-mismatch issues unrelated to this fix.:3000and re-ran the suite — 16/30 passed; the 14 failures are due to API version mismatch between the development-branch UI and the2.1.0-rc1server image (document upload prerequisites failed silently), not caused by this fix.UI screen recording:
Not applicable — standalone bug fix in selection state management; no new UI feature or visual change to record.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.docs/decisions/(see itsREADME.md).Automatic Fixes PRs can be configured here.