Repository navigation
Fixes #36797: Ontology Studio header/workspace alignment, Tasks badge, common placeholder and loader - #36798
Conversation
…count on one line, use common placeholder and loader - Tasks count badge moves to the Button's iconTrailing slot so it no longer wraps under the label. - AI-mode header gets a bottom inset and the workspace below it becomes a card with the same inset, radius and border so their edges line up. - Header actions are bottom-aligned with a small gap so they clear the card border and line up with the mode tab text. - Aggregate and owner load errors render SomethingWentWrongPlaceholder / NoDataPlaceholder from components/common/EmptyPlaceholder. - Page-level loading text is replaced by the common Loader.
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
|
| Count | Rule |
|---|---|
| 1 | openmetadata-imports/review-sequential-api-calls |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/governance/ontology/OntologyGraphView/OntologyGraphView.tsx:586:9 |
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 |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed… are listed SomethingWentWrongPlaceholder only falls back to onReload when actions is empty, so listing the ontology shortcuts hid the Reload action. Put Reload in the actions array explicitly.
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Changing ontology load failures to shared placeholders and Reload actions could leave users without a clear recovery path if refetching fails. Aligns Ontology Studio header and workspace cards, keeps the Tasks count on one line, and switches load failures and loader states to the common placeholder and spinner. The aggregate load error now keeps the Reload action when ontologies are listed, which addresses the resolved finding. No open issues remain. ✅ 1 closed✅ Bug: Aggregate load error drops Reload when any ontology is listed
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
#36798 put the Studio workspace inside a wrapper div, so the sub-bar's nav is no longer a direct child of the shell and `:scope > nav` finds nothing. The rdf Playwright lane runs only when RDF paths change, so #36798's merge-queue run skipped this spec; main's scheduled run and every merge group that turns the lane on now fail it. The sub-bar's test id does not depend on where the wrapper puts the nav.
…-metadata#36638) * fix(users): keep credentials and the admin flag out of non-admin user writes - User versions, history and PUT/PATCH/POST/DELETE responses never carry a stored password hash or bot token; another user's email is masked there as it is on reads. - A non-admin PUT keeps the stored admin flag, and a non-admin CSV row cannot change an existing user's admin flag. - Users CSV import and export authorize against users as a whole rather than against a user who shares the team's name. - Self sign-up through the users API applies the registration domains. - With an email-domain allowlist, a provider token must carry an email (in any principal claim) in an allowed domain. - Identity comparisons use sameIdentifier instead of equalsIgnoreCase. * fix(secrets): keep stored secrets out of RDF and off retargeted pipelines - The RDF graph, JSON-LD and diff no longer carry connections, pipeline source configs, server connections or authentication mechanisms; the ontology and contexts stop advertising them. - The RDF diff, which reads stored versions directly, is admin only, and a user's RDF needs access to the user's email. - Storage manifest configs are typed like dbt ones, so their store credentials are masked on read and encrypted at rest. - A caller who sees an ingestion pipeline's secrets masked must enter them again when the dbt or manifest source they belong to points elsewhere, on PUT and PATCH. * fix(columns): apply search access policies to the column grid The column grid aggregates over the table and data model search documents, so with search access control on it now ANDs the caller's policy filter into every query it runs, as search does. * fix(lineage): leave assets the caller cannot view out of search lineage - Search lineage, its direction and entity-count variants, the CSV exports (sync and async) and data quality lineage drop the nodes the caller cannot view, the nodes reachable only through them, edges to them, pipelines on edges the caller cannot view, and upstream-lineage entries naming them. - Platform lineage, the whole catalog's lineage at once, is admin only. * fix(search): keep access policies, query_filter and deleted in hierarchy search The hierarchy rewrite turns the caller's query into one should clause among name matches, so a term matching by name came back without meeting the caller's search access policies, query_filter or deleted flag. They are now applied around each query it builds; the parents that only draw the tree, including those fetched for hits whose parent missed the page, still meet the policies and the deleted flag. * refactor(security): split the lineage filter and pipeline guard into small methods * docs(decisions): record the rules this security batch sets Provider tokens must carry an email while sign-in domains are restricted, only admins grant or revoke the admin flag, the RDF projection never carries stored secrets, search lineage returns only assets the caller can view, and the connection secrets guard now covers ingestion pipeline sources. * fix(lineage): filter a copy, across entity-count pages and in export jobs - The lineage graph builders can cache the graph they return and hand the same one to the next caller, so a caller's view is cut from a copy and the graph is left whole for whoever reads it next. - An entity-count page is a window of the nodes up to a depth, so the node that links one of them to the root can be on another page. Which nodes the root reaches through nodes the caller can view is decided on the depth-bounded graph the page is cut from, on the endpoint and its export. - An async lineage export keeps the bot the request was made on behalf of and runs under that impersonation, so isImpersonated() rules hold for the export as they did for the request. * fix(users): exporting users needs access to their emails A users CSV carries each member's email in the clear, which user reads mask for anyone but an admin or a bot, so only they may export one, on either route. The file is not masked for other callers instead: an import writes the email column, so a masked file would overwrite the emails with the mask. * fix(secrets): refuse a storage manifest source that no source schema matches A source that cannot be typed stays a map, which the masker and the secrets manager never reach. Creating or updating a pipeline with one is refused with 400. One stored before this check is read back without its manifest source, and the rest of the pipeline stays readable so it can be repaired. * fix(lineage): a pipeline shown as an edge reaches the assets it connects Search lineage keeps the nodes the root reaches through nodes the caller can view, walking the ends of edges. A pipeline shown as an edge is no end of the edges it carries, so a non-admin opening a pipeline's lineage got the pipeline alone. An edge's pipeline now links both of its ends. The domain filter for domain-restricted users walks the same graph and is fixed with it. * fix(search): stop scoping the domain picker to the selected domain The navbar sends its selected domain as a query_filter on every search, the domain picker's included. Re-applied by hierarchy search, it left the picker unable to find any other domain while one was selected. Hierarchy search still re-applies the access policies and the deleted flag; the query_filter, the caller's own filter and never an access control, again narrows only the caller's query, as it did before. * test(ui): find the Ontology Studio sub-bar by its test id open-metadata#36798 put the Studio workspace inside a wrapper div, so the sub-bar's nav is no longer a direct child of the shell and `:scope > nav` finds nothing. The rdf Playwright lane runs only when RDF paths change, so open-metadata#36798's merge-queue run skipped this spec; main's scheduled run and every merge group that turns the lane on now fail it. The sub-bar's test id does not depend on where the wrapper puts the nav. * chore(playwright): auto-refresh impact-map.generated.json * fix(sessions): leave the session cookie alone on requests that sent none A silent re-authentication could lose its pending session to a refresh that was already in flight. The refresh carried no session cookie, the server answered it with an expiring OM_SESSION, and that response could reach the browser just after the login's, deleting the pending-session cookie the login had set. The callback then found no session and sent the user to sign in. A cookie is now cleared only when the request carried one, malformed values included. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>



Describe your changes:
Fixes #36797
Ontology Studio layout and state fixes, raised in design review:
Badgewas a child of the button's text span and, being block-level, always wrapped under "Tasks" (56px tall button). It now goes in theButton'siconTrailingslot, the same patternChangeRequestsIndicatoruses.rounded-xlandborder-secondary, so the edges line up (header x 351–1426, sub-bar 352–1425 inside the 1px border). Classic mode is unchanged.PageHeaderdrops its bottom padding when it has a tab footer, so the action buttons sat on the border. The footer row is now bottom-aligned (tabs stay flush) and the actions getpb-1.5; tab text and button centres are within 0.5px, 7px above the border.SomethingWentWrongPlaceholder(load failures) andNoDataPlaceholder(aggregate graph too large) fromcomponents/common/EmptyPlaceholder, as Glossary does. Ontology shortcut buttons are kept as placeholder actions; the wrappers keeprole="alert". The action label is now Reload (was Retry).Loaderspinner (Explorer page, single-ontology graph, and the graphSuspensefallbacks). Small inline "Loading…" labels inside panels/drawers are left as-is.Type of change:
High-level design:
N/A — small UI change.
Tests:
Use cases covered
Unit tests
OntologyExplorerPage.integration.test.tsx(expects the loader and the Reload action) andOntologyGraphView.test.tsx(waits for the loader to disappear instead of a text that no longer exists).OntologyExplorerPage,OntologyGraphView,AllOntologiesGraphView,OntologyStudioHeader,OntologyTasksDrawersuites: 190/190 pass.Backend integration tests
Playwright (UI) tests
OntologyReview.spec.tsto expect the Reload button on the ontology load-failure state. Not run locally.Manual testing performed
UI screen recording:
Not applicable — styling and state-rendering fix, not a feature. Screenshots below.
Before — Tasks count wraps, plain-text error (classic)

Before — AI header and workspace not aligned

After — Collate (AI) light

After — Collate (AI) dark

After — classic

After — loading, light

After — loading, dark

Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code