You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 08f02bc
Browse filesBrowse the repository at this point in the historyBrowse files
authored
fix: Restore domain display and editing for classifications (#38641) (#38725)
* fix: restore domain display and editing for classifications
* fix(ui): save classification domains through the page's update handler
Route the Domains panel's save through handleUpdateClassification, as the
Owners panel does, so TagsPage's classification state reflects the new
domains. Add a browser test that renders the assigned domain and replaces
it through the picker.
* fix(ui): open a new classification on its empty state without a tags table flash
After creating a classification, make it the current one with termCount 0
instead of leaving the previous classification on screen until the name
fetch lands, and render the empty state directly for a classification known
to have no tags rather than the loading tags table.
* fix(ui): keep the saved classification domains when a domain save fails
Drop the onUpdate route through handleUpdateClassification: that handler
swallows errors, so DomainLabel showed the unsaved selection after a
rejected PATCH. DomainLabel's own API save keeps its previous domains on
failure. Add a browser test for the rejected save.
* fix(ui): keep classification domains read-only in version view and in sync after a panel save
- Gate the Domains panel editor on !isVersionView, as the Owners widget is,
so the version history page cannot PATCH the live classification.
- Merge the saved domains into TagsPage's current classification through
afterDomainUpdateAction, so the Edit drawer pre-fills the saved domains.
- Drive the domain picker in browser tests through openPicker/setSelected,
and add tests for the version-view gate and the edit-form domains.
* fix(ui): keep a late domain save from landing on another classification
Key the Domains panel by classification id so a save that resolves after
switching classifications cannot update the new panel, and merge saved
domains into TagsPage state only when the patched id matches the current
classification. Add a browser test that holds the PATCH across a switch.
---------
(cherry picked from commit bacceff)
Co-authored-by: Alex Castillo González <82875882+pcbeingused333@users.noreply.github.com>
Co-authored-by: Sweta Agarwalla <swetaagarwalla13@gmail.com>
Co-authored-by: Sweta Agarwalla <105535990+sweta1308@users.noreply.github.com>
Copy file name to clipboardExpand all lines: openmetadata-ui/src/main/resources/ui/src/components/Classifications/ClassificationDetails/ClassificationDetails.interface.ts
Copy file name to clipboardExpand all lines: openmetadata-ui/src/main/resources/ui/src/components/Classifications/ClassificationDetails/ClassificationDetails.test.tsx
+68-18Lines changed: 68 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,11 @@ import { Classification } from '../../../generated/entity/classification/classif
Copy file name to clipboardExpand all lines: openmetadata-ui/src/main/resources/ui/src/components/Classifications/ClassificationDetails/ClassificationDetails.tsx
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,6 @@ import tagClassBase from '../../../utils/TagClassBase';
0 commit comments