Skip to content

feat(ui): use the Ontology Studio glyph in both nav surfaces - #32324

Merged
ShaileshParmar11 merged 2 commits into
mainfrom
feat/ontology-studio-nav-icon
Sep 1, 2026
Merged

ShaileshParmar11 merged 2 commits into
mainfrom
feat/ontology-studio-nav-icon

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

The Ontology Studio page header renders LayersThree01 in a brand-solid square, but the two nav entries that lead there used unrelated icons and, in the app-mode sidebar, the pre-rename "Ontology Explorer" label.

Screenshot 2026-08-31 at 11 34 03 PM

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

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:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

Greptile Summary

The PR aligns the Ontology Studio label and glyph across the classic sidebar and application-mode governance navigation.

  • Adds a shared, restroked OntologyStudioIcon based on LayersThree01.
  • Replaces the classic sidebar’s lineage icon with the shared glyph.
  • Updates the application-mode entry from “Ontology Explorer” to “Ontology Studio” and uses the same glyph.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/src/components/governance/govern/govern.module.tsx Updates the application-mode Ontology navigation entry to use the shared glyph and current label.
openmetadata-ui/src/main/resources/ui/src/constants/LeftSidebar.constants.ts Replaces the classic sidebar’s Ontology Studio icon with the shared glyph.
openmetadata-ui/src/main/resources/ui/src/utils/IconUtils.tsx Introduces a reusable strokable icon type and shared Ontology Studio icon wrapper.

Reviews (2): Last reviewed commit: "fix(ui): restroke the Ontology Studio na..." | Re-trigger Greptile

The Ontology Studio page header renders LayersThree01 in a brand-solid
square, but the two nav entries that lead there used unrelated icons and,
in the app-mode sidebar, the pre-rename "Ontology Explorer" label.

- classic sidebar (LeftSidebar.constants.ts): ic-lineage.svg ->
  LayersThree01, restroked to 1.2 via createIconWithStroke so it matches
  the neighbouring glossary/classification/metric SVGs (raw @untitledui
  icons ship at stroke 2). Follows the existing DataProductIcon/Cube01
  precedent in the same file. The now-unused LineageIcon import is
  dropped; no other sidebar entry referenced ic-lineage.svg.
- govern app module: ask-collate-nav-bar/ontology-{default,active}.svg ->
  LayersThree01, and labelKey label.ontology-explorer ->
  label.ontology-studio, matching the page title. Single glyph, so no
  activeIcon. The item key stays 'ontology-explorer' to keep the
  existing test ids and Playwright selectors working.

label.ontology-studio already exists in en-us.json, so no new keys.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@anuj-kumary anuj-kumary self-assigned this Sep 1, 2026
@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Sep 1, 2026
@anuj-kumary anuj-kumary added the skip-pr-checks Bypass PR metadata validation check label Sep 1, 2026
@github-actions github-actions Bot added the UI UI specific issues label Sep 1, 2026
Review catch on #32324: the classic sidebar restroked LayersThree01 to
1.2 but the govern module used it raw, so the two nav entries for the
same destination drew at different weights. The gap is visible — NavItem
renders the icon at 20px, so stroke 2 on a 24 viewBox lands at 1.67px
next to sibling SVGs that draw 1.2px on a 20 viewBox, ~39% heavier.

Hoist the wrapped icon into IconUtils as `OntologyStudioIcon` and use it
from both surfaces, so they cannot drift apart again. The cast that
`createIconWithStroke` needs for `@untitledui` icons is now named
(`StrokableIcon`) and exported, since it had been inlined at each call.

The page header keeps the unrestroked glyph: there it is reversed out on
a brand-solid badge, where the heavier stroke is correct.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.56% (90792/132415) 53% (57133/107787) 54.64% (17314/31687)

@gitar-bot

gitar-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Aligns the Ontology Studio glyph across both navigation surfaces by adopting the LayersThree01 icon in the Classic sidebar and updating the app-mode label, with the stroke adjusted to match the page header rendering. The glyph stroke inconsistency has been resolved.

✅ 1 resolved
✅ Quality: Ontology glyph stroke differs between the two nav surfaces

📄 openmetadata-ui/src/main/resources/ui/src/constants/LeftSidebar.constants.ts:57-60 📄 openmetadata-ui/src/main/resources/ui/src/components/governance/govern/govern.module.tsx:66
In LeftSidebar.constants.ts the LayersThree01 glyph is wrapped with createIconWithStroke(..., 1.2) to match the sidebar's other icons, but govern.module.tsx uses the raw LayersThree01 at its default stroke width. Since this PR's stated goal is a consistent Ontology Studio glyph across both nav surfaces, consider restroking it in govern.module.tsx as well (or sharing the wrapped icon) so the two entries render identically.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

sonarqubecloud Bot commented Sep 1, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 03add95a8ff2f1fb36950e358f99ac3dd6633106 in Playwright run 33469192074, attempt 1.

✅ 551 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 49m 40s

⏱️ Max setup 4m 8s · max shard execution 16m 9s · max shard-job elapsed before upload 19m 37s · reporting 3s

🌐 215.97 requests/attempt · 2.81 app boots/UI scenario · 1.96% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 215.97 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.81 per UI scenario (1608 boots / 572 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 130 0 0 0 0 0
✅ Shard chromium-02 140 0 0 0 0 0
✅ Shard chromium-03 126 0 0 0 0 0
✅ Shard data-asset-rules-01 63 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 33 0 0 0 0 0
✅ Shard ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@ShaileshParmar11
ShaileshParmar11 added this pull request to the merge queue Sep 1, 2026
Merged via the queue into main with commit 057f1de Sep 1, 2026
93 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the feat/ontology-studio-nav-icon branch September 1, 2026 19:03
Rohit0301 pushed a commit that referenced this pull request Sep 3, 2026
* feat(ui): use the Ontology Studio glyph in both nav surfaces

The Ontology Studio page header renders LayersThree01 in a brand-solid
square, but the two nav entries that lead there used unrelated icons and,
in the app-mode sidebar, the pre-rename "Ontology Explorer" label.

- classic sidebar (LeftSidebar.constants.ts): ic-lineage.svg ->
  LayersThree01, restroked to 1.2 via createIconWithStroke so it matches
  the neighbouring glossary/classification/metric SVGs (raw @untitledui
  icons ship at stroke 2). Follows the existing DataProductIcon/Cube01
  precedent in the same file. The now-unused LineageIcon import is
  dropped; no other sidebar entry referenced ic-lineage.svg.
- govern app module: ask-collate-nav-bar/ontology-{default,active}.svg ->
  LayersThree01, and labelKey label.ontology-explorer ->
  label.ontology-studio, matching the page title. Single glyph, so no
  activeIcon. The item key stays 'ontology-explorer' to keep the
  existing test ids and Playwright selectors working.

label.ontology-studio already exists in en-us.json, so no new keys.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(ui): restroke the Ontology Studio nav glyph in the govern module

Review catch on #32324: the classic sidebar restroked LayersThree01 to
1.2 but the govern module used it raw, so the two nav entries for the
same destination drew at different weights. The gap is visible — NavItem
renders the icon at 20px, so stroke 2 on a 24 viewBox lands at 1.67px
next to sibling SVGs that draw 1.2px on a 20 viewBox, ~39% heavier.

Hoist the wrapped icon into IconUtils as `OntologyStudioIcon` and use it
from both surfaces, so they cannot drift apart again. The cast that
`createIconWithStroke` needs for `@untitledui` icons is now named
(`StrokableIcon`) and exported, since it had been inlined at each call.

The page header keeps the unrestroked glyph: there it is reversed out on
a brand-solid badge, where the heavier stroke is correct.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
shrabantipaul-collate pushed a commit to PRADDZY/OpenMetadata that referenced this pull request Sep 3, 2026
…tadata#32324)

* feat(ui): use the Ontology Studio glyph in both nav surfaces

The Ontology Studio page header renders LayersThree01 in a brand-solid
square, but the two nav entries that lead there used unrelated icons and,
in the app-mode sidebar, the pre-rename "Ontology Explorer" label.

- classic sidebar (LeftSidebar.constants.ts): ic-lineage.svg ->
  LayersThree01, restroked to 1.2 via createIconWithStroke so it matches
  the neighbouring glossary/classification/metric SVGs (raw @untitledui
  icons ship at stroke 2). Follows the existing DataProductIcon/Cube01
  precedent in the same file. The now-unused LineageIcon import is
  dropped; no other sidebar entry referenced ic-lineage.svg.
- govern app module: ask-collate-nav-bar/ontology-{default,active}.svg ->
  LayersThree01, and labelKey label.ontology-explorer ->
  label.ontology-studio, matching the page title. Single glyph, so no
  activeIcon. The item key stays 'ontology-explorer' to keep the
  existing test ids and Playwright selectors working.

label.ontology-studio already exists in en-us.json, so no new keys.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(ui): restroke the Ontology Studio nav glyph in the govern module

Review catch on open-metadata#32324: the classic sidebar restroked LayersThree01 to
1.2 but the govern module used it raw, so the two nav entries for the
same destination drew at different weights. The gap is visible — NavItem
renders the icon at 20px, so stroke 2 on a 24 viewBox lands at 1.67px
next to sibling SVGs that draw 1.2px on a 20 viewBox, ~39% heavier.

Hoist the wrapped icon into IconUtils as `OntologyStudioIcon` and use it
from both surfaces, so they cannot drift apart again. The cast that
`createIconWithStroke` needs for `@untitledui` icons is now named
(`StrokableIcon`) and exported, since it had been inlined at each call.

The page header keeps the unrestroked glyph: there it is reversed out on
a brand-solid badge, where the heavier stroke is correct.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
github-actions Bot added a commit to aokimoon/OpenMetadata that referenced this pull request Sep 10, 2026
)

* fix: default data contracts to draft status

* Apply batched suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* fix: localize data contract status options

* fix(playwright): narrow add-reactions locator to fix strict mode violation (#32275)

* fix(playwright): narrow add-reactions locator to avoid strict mode violation

The `add-reactions` locator inside `message-container` was resolving to
multiple elements (one per thread participant card), causing Playwright's
strict mode to abort the Mention notification test. Added
`data-testid="feed-card-footer"` to FeedCardFooterNew and scoped the
locator to the footer that contains `reply-button` (main message only).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* lint fix

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(security): bump httpclient5 to 5.6.4 (#32264)

Closes CVE-2026-71290 (CWE-295, Improper Certificate Validation; critical,
CVSS 9.1). In httpclient5 5.6.3 and earlier, HostnameVerificationPolicy#BUILTIN
has no effect on the async TLS upgrade path, so SSL parameters are not applied
and a MITM attacker can impersonate a server with a certificate valid for a
different domain. Fixed in 5.6.4.

httpclient5 5.6.4 declares httpcore5 5.4.3, identical to 5.6.3, so the
client/core pairing pinned above (httpcore5 5.4.3) is preserved and the
SingleCoreIOReactor lease-leak failure mode is not reintroduced. Still within
the 5.6 line, so the disableContentCompression() requirement on the
OpenSearch/Elasticsearch transports is unchanged. Root pom dependencyManagement
is the sole authority for this pin.

Mirrors open-metadata/openmetadata-collate#6277.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* ci(playwright): run release-branch nightly E2E with 2 per-test retries (#32267)

* ci(playwright): run MySQL nightly E2E with 2 per-test retries

playwright.config.ts hardcoded retries to 1 on CI with no way to vary it
per workflow. Make it overridable via PLAYWRIGHT_RETRIES, thread a
`retries` input through the reusable E2E workflow onto the shard test
step's env, and set it to 2 for the MySQL release-branch nightly, where
flakes accumulate faster than on main. Empty default keeps every other
caller (postgres PR gate, nightlies) at the existing CI default of 1.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci(playwright): PostgreSQL release-branch nightly also gets 2 retries

Same rationale as the MySQL nightly: release branches accumulate flakes
faster than main, so the on-demand release-branch runner passes
retries: "2" to the reusable. The PR gate (playwright-postgresql-e2e.yml)
intentionally stays at the config default of 1.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci(playwright): type the retries input as number

Review feedback: the string + empty-sentinel input forced callers to
quote the value and made the contract unclear. Declare it type: number
with default 1 (matching playwright.config.ts's CI default, so the PR
gate is unchanged) and pass bare `retries: 2` from the nightlies.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci(playwright): simplify retries fallback to a single ?? expression

Review suggestion, corrected: `?? CI ? 1 : 0` alone parses as
`(RETRIES ?? CI) ? 1 : 0`, which collapses every override to 1.
With parens forcing `RETRIES ?? (CI ? 1 : 0)` plus Number(), the
one-liner matches the nested ternary in all scenarios (override,
CI default, local 0, explicit 0).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

* fix(ui): re-enable all disabled Jest tests; promote jest/no-disabled-tests to error (#32249)

Every `it.skip` / `describe.skip` in the UI test suite was genuinely
re-enabled and made to pass against current behavior — no re-skipping, no
inline suppressions, no weakened assertions.

Highlights:
- TestCaseStatusModal: mock the new transitionIncident/incident-refresh submit
  path; assert real outcomes.
- QueryCardExtraOption: set the mock user to the actual voter so the un-vote
  path executes.
- NextPreviousWithOffset: open the hover-triggered antd dropdown via mouseEnter.
- MlModelDetail: rebuild mocks for the rewritten component (useRequiredParams,
  DataAssetsHeader, GenericProvider, tabs) keeping real DETAILS-tab assertions.
- SettingsRouter: mount under a `/settings/*` parent so relative routes resolve;
  fix a wrong route constant. One inner test targeted CustomPageSettings, which
  was removed from the codebase entirely (feature relocated to another router) —
  the obsolete test was deleted rather than fake-passed.
- AdvanceSearchProvider: restore the real getQbConfigs, handle the lazy modal,
  and drive userEvent with the global fake timers.
- UserPage: restore the wired Users mock; update the getUserByName field list.
- TagsPage: rewrite the classification-rename test to the refactored
  ManageButton -> ClassificationFormDrawer flow; drop a stale file-level
  eslint-disable directive.

96 tests across the 9 files pass; 0 project-wide ESLint errors.

Closes #30982

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(security): bump jsoup to 1.23.2 (#32266)

CVE-2026-75140 (CVSS 8.7, CWE-770): jsoup's XmlTreeBuilder copies the whole
inherited namespace map on every start element, so a deeply nested XML
document with uniquely-namespaced elements costs quadratic time and memory.
A remote attacker can drive the JVM to OutOfMemoryError and terminate the
application.

The fix is jsoup PR #2556 (commit 862ba2f, "Optimize XML namespace scope
tracking"), which ships in the 1.23.2 release of 2026-08-26. Earlier triage
runs classified this unfixable because at the time the fix existed only as an
unreleased commit.

jsoup is not declared by any module; it reaches openmetadata-service solely
through com.vladsch.flexmark:flexmark-html2md-converter 0.64.8, which declares
1.15.4 as a soft requirement. 0.64.8 is flexmark's latest release, so managing
jsoup in the root dependencyManagement is the only available fix.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(security): bump qs to 6.16.0 (#32265)

Bump qs from 6.15.2 to 6.16.0 in the openmetadata-ui workspace to clear
two medium Snyk findings, both fixed in qs 6.16.0:

- CVE-2026-82562 (SNYK-JS-QS-19432017) — Allocation of Resources Without
  Limits or Throttling in parseArrayValue() under comma: true.
- CVE-2026-82417 (SNYK-JS-QS-19432019) — Uncaught Exception in isBuffer()
  reachable from stringify() under plainObjects/allowPrototypes.

Neither advisory's precondition is present in this source tree, so this is
a dependency-hygiene bump rather than a fix for a reachable exploit.

A resolutions pin was also added because the transitive requester
url -> qs@^6.12.3 otherwise kept resolving to the old 6.15.2; the pin
collapses it to a single 6.16.0 entry so no vulnerable copy remains.

OSS-side counterpart to open-metadata/openmetadata-collate#6278.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Fixes 32206: stop linking a table to itself from the Databricks system lineage tables (#32214)

* Fixes #32206: stop linking a table to itself from the Databricks system lineage tables

system.access.table_lineage records table access rather than derivation, so a
streaming or CDC write legitimately names its target table as its own source. The
Databricks Pipeline and Unity Catalog connectors both passed those rows straight
through, producing an edge from a table to itself that renders as a loop and
carries no information.

Skip rows where source and target are the same table, matching the guard the SQL
DLT parser already applies.

* fix(unitycatalog): skip self-referencing rows in the column lineage cache too

The table pair they belong to is dropped, so the cached columns can never be
read. They only grow column_lineage_map and inflate the cached-lineage counts
in the log.

* swap hybrid default values keyword vs semantic (#31968)

* swap hybrid default values keyword vs semantic

* migration for change

* remove unneeded sql comments

* greptile comment

* test(playwright): page to the app card; anchor the steward switch (#32295)

* test(playwright): page to the app card; anchor the steward switch

Settings > Applications paginates at PAGE_SIZE_BASE (15). Adding
RdfInferenceApp in #28042 took the bundled app count past that boundary
and pushed the Search Indexing card to page 2, so four tests that clicked
it without paging started failing as 60s click timeouts. LiveIndexingTab
was already flaky on postgres before that — the suite was sitting exactly
on the boundary.

- add isOnAnyApplicationPage to playwright/utils/applications.ts and build
  findApplicationCard / expectApplicationInstalled /
  expectApplicationNotInstalled on it, so presence and absence are both
  asserted across every page rather than page 1. The installed list and the
  marketplace share a card testid and paging controls and differ only in the
  endpoint a page turn hits, so APPLICATION_LIST selects between them and
  installSearchIndexApplication's hand-rolled marketplace loop is gone
- use them in LiveIndexingTab (including the Data Insights guard, which
  had the same latent bug) and SearchIndexApplication. The post-install
  toBeVisible() would itself have failed once the reinstall took the count
  back to 16; the post-uninstall toBeHidden() passed trivially whenever the
  card sat on a later page
- TestDefinitionPermissions: target the definition the spec itself creates
  instead of getByRole('switch').first(). The Test Library is shared across
  the run and TestLibrary.spec.ts seeds AaaaExternalTest* to sort first;
  an external definition's toggle is disabled by design, so the positional
  locator asserted on a row this spec never owned
- delete that definition in afterAll. It leaked before, which was harmless
  under .first() but not once the row's position is load-bearing: the Test
  Library is paginated with no search, so accumulated `aaa*` rows would
  eventually push the target off page 1
- prune the four now-unused positional-locator suppressions

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* test(playwright): lower the recorded no-positional-locator count

The suppressions corpus test asserts exact per-rule totals, so pruning the
baseline without lowering EXPECTED fails ui-checkstyle:

  not ok 25 - the suppressions baseline matches its recorded state exactly

Four no-positional-locator suppressions were fixed in this branch — two in
TestDefinitionPermissions and two in SearchIndexApplication, which now has
no entry at all — so 1328 becomes 1324.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* Fixes #30895: Complete Metrics hierarchy and details (#30896)

* feat(metrics): complete hierarchy and detail experience

* Update generated TypeScript types

* Fix metrics CI regressions

* Fix Linux metric visual baselines

* Fix metric UI CI workflows

* fix(metrics): optimize hierarchy pagination

* fix(ui): satisfy metrics lint gate

* fix(metrics): bound catalog-wide scans

* fix: resolve metrics CI failures

* fix(metrics): resolve integration and UI regressions

* test(ui): refresh metric desktop baselines

* fix(metrics): keep group assignments transactional

* fix(metrics): keep entity writes on group transaction

* fix(playwright): handle glossary rejection comments

* fix(tests): prevent short namespace collisions

* fix(tests): disperse short namespace identifiers

* fix(workflows): isolate async field patches

* fix(workflows): restore durable approved versions

* fix: resolve metrics CI regressions

* fix: address metrics review feedback

* fix: retry lineage writes after deadlocks

* test: tolerate delayed conversation visibility

* fix: stabilize glossary reindexing and metric compatibility

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix(security): bump Apache Jena and Fuseki to 6.2.0 (CVE-2026-61372) (#32274)

* fix(security): bump Apache Jena and Fuseki to 6.2.0 (CVE-2026-61372)

CVE-2026-61372 (high): Jena's SPARQL Update engine accepted LOAD source
URLs pointing at local resources, so an update could read data off the
machine running the engine. 6.2.0 restricts those URLs to http/ftp. The
CVE covers everything up to and including 6.1.0, and there is no 5.x
release carrying the fix (5.6.0 ends that line), so the only way off it
is the major bump.

Two halves to it:

- The client libraries openmetadata-service compiles against, all on the
  root pom's ${jena.version}: jena-core, jena-arq, jena-rdfconnection,
  jena-shacl (plus openmetadata-integration-tests).
- The Fuseki server images, which are where a LOAD actually reads local
  files. docker/rdf-store/Dockerfile and the quickstart variants
  downloaded Fuseki 5.6.0, and the compose files and docs tag the built
  image with that version. The base JRE goes 17 -> 21 because Fuseki 6.x
  is compiled with --release 21; on a 17 JRE it dies at startup with
  UnsupportedClassVersionError.

Jena 6 removed the deprecated single-argument RDFParser.fromString(String).
The seven call sites now pass the Lang alongside the string, which is the
documented replacement and drops the redundant .lang() call. That removal
is a binary incompatibility as well as a source one, so a downstream
consumer cannot pin Jena 6.2.0 without this commit.

Verified on the built 6.2.0 image (config.ttl + shiro.ini unchanged, TDB2
and the Lucene text index boot fine on JRE 21):

  LOAD <file:///tmp/x.ttl>                      -> 400 Not found  (fixed)
  LOAD <file:///tmp/x.ttl> INTO GRAPH <urn:g>   -> 204, triple loaded

So upstream's fix is partial. Fuseki 6.2.0 installs a per-request
StreamManager carrying only the http and ftp locators (Fuseki.java), but
UpdateEngineWorker.visit(UpdateLoad) only threads the action context
through the no-INTO branch — the INTO GRAPH branch calls
RDFDataMgr.open(source) with no context and so resolves through the global
StreamManager, which still has a file locator. Worth reporting upstream.
What closes that residual path for us is SparqlFederationGuard, which
already treats a LOAD source as a federation endpoint and denies it unless
the deployment allowlists it (federation is off by default); the Fuseki
update endpoint also requires the shiro `writer` role.

Also verified: openmetadata-service compiles clean on 6.2.0 and its RDF /
ontology / SPARQL / inference unit tests pass (924 tests, 0 failures).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(rdf): initialize Jena before anything can touch the RDF vocabulary

The integration tests went red on Jena 6.2.0 with

  Could not initialize class org.apache.jena.graph.NodeFactory
  Could not initialize class org.apache.jena.rdf.model.impl.ModelCom

across GlossaryRdfImportIT, OntologyGovernanceIT, OntologyPackResourceIT,
RdfGlossaryGraphIT and GlossaryOntologyExportIT. Those are secondary errors:
the primary one happens once, at startup, and poisons every Jena class in the
JVM for the rest of its life.

Root cause is a class-initialization cycle new in Jena 6.2.0.
InitJenaCore.init() calls TypeMapper.reset(), which registers the RDF 1.2
datatypes by reading RDF.dtLangString, RDF.dtDirLangString, RDF.dtRDFJSON,
RDF.dtXMLLiteral and RDF.dtRDFHTML — static fields on
org.apache.jena.vocabulary.RDF. But RDF's own <clinit> calls RDF.resource(),
which reaches NodeFactory.<clinit>, which calls JenaSystem.init(). So if RDF is
the first Jena class the JVM initializes, JenaSystem.init() runs re-entrantly
on the same thread while RDF is half-built, TypeMapper reads those fields as
null, and registerDatatype() throws NPE inside a static initializer.

Reproduced with the module's own classpath, first Jena touch varied:

  vocabulary.RDF   -> FAILED NullPointerException   <- the trap
  vocabulary.RDFS  -> OK        ResourceFactory -> OK
  vocabulary.OWL   -> OK        ModelFactory    -> OK
  vocabulary.SKOS  -> OK        RDFDataMgr      -> OK
  vocabulary.XSD   -> OK        QueryFactory    -> OK

and against RdfResource's own startup path, which builds an
RdfEntityDiffService whether or not RDF is enabled:

  new RdfEntityDiffService(baseUri) first   -> FAILED (identical NPE)
  JenaSystem.init() first, then the same    -> OK

Jena 5.6.0 does not have the cycle: TypeMapper.reset() there does not read the
RDF vocabulary class, so every ordering worked and nothing had to initialize
Jena explicitly.

Fix: call JenaSystem.init() at the top of OpenMetadataApplication.run(), before
registerResources() constructs the RDF resources. It is idempotent, and once
the subsystem is up the vocabulary classes initialize in any order. Unit tests
were unaffected (924 pass either way) because their first Jena touch is a model
or a parser, never the RDF vocabulary.

Worth reporting upstream alongside the partial LOAD fix.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Fixes #32317: Show relations in Ontology data mode (#32318)

* Fixes #32317: Show Ontology data mode relations

* Address ontology data graph review feedback

* Make bounded ontology queries deterministic

* Handle unmapped ontology lineage assets

* Fix ontology data CI regressions

* Revert "Fixes #30895: Complete Metrics hierarchy and details (#30896)" (#32333)

This reverts commit 427c2988522315c76ca76bdc903f75cff12f081c.

* fix(ui): full-width ER diagram drawer and column panel double-close (#32305)

* fix(ui): full-width ER diagram drawer and column panel double-close

- Add `width: 100%` to `.entity-summary-panel-container` so the panel
  fills the Drawer body width in contexts without an explicit panelPath
  modifier (e.g. ER Diagram tab).
- Fix column detail panel double-close: replace `selectedColumn?.fqn`
  dep in `openColumnDetailPanel` useCallback with `selectedColumnRef.current`
  so the callback is not recreated on deselect, preventing useFqnDeepLink
  from re-triggering and reopening the panel.
- Strengthen `closeColumnDetailPanel` Playwright helper with URL bounce-
  back check and a second visibility assertion to guard against regression.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(playwright): use positive toHaveURL assertion in closeColumnDetailPanel

Address PR review: replace negative `not.toHaveURL(columnUrl)` with an
optional positive `toHaveURL(entityUrl)` so callers can assert the URL
has settled at the FQN-less entity path. A negative assertion passes on
any transient state and cannot detect the URL bouncing back; a positive
assertion polls until the URL IS the expected value, catching a reopen.
Fallback to `not.toHaveURL(columnUrl)` keeps all existing callers intact.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* Fixes 31278: Extract lineage from SQL-defined Databricks DLT pipelines (#31654)

* Fixes 31278: Extract lineage from SQL-defined Databricks DLT pipelines

SQL DLT transformations parsed to nothing because kafka_parser only
understood the Python DLT API, so those pipelines produced no lineage.
Parse CREATE [OR REFRESH] MATERIALIZED VIEW / STREAMING TABLE through
the existing LineageParser, resolve qualified upstreams against their
own catalog and schema, read `file` libraries, and recurse into
workspace subdirectories.

* refactor(databricks): dispatch DLT parsing through a language registry

Adding SQL support as a fallback inside extract_dlt_table_dependencies
left an if/elif chain that dispatched on failure rather than language,
against the registry convention in docs/design-patterns.md.

Introduce dlt_parsers.py with a DltSourceParser protocol and registry.
Python and SQL each declare handles/extract and an explicit priority, so
a Python notebook embedding SQL strings is not misread and a new language
needs no dispatch edit. Move the parse-result dataclasses to models.py and
reduce kafka_parser.py to Kafka configuration.

Fix three Databricks SQL shapes found while probing real constructs:
APPLY CHANGES INTO lost its source, the LIVE. prefix was resolved as a
schema, and table-valued functions were returned as tables. Also use the
previously dead get_pipeline_libraries helper instead of a duplicated
inline copy.

* fix(databricks): address PR review on DLT source discovery

Glob includes were only normalised for the `/**` form, so `*.sql` and
`**/*.sql` kept their wildcard and were exported as literal paths, missing
every transformation. Reduce any include to the directory before its first
wildcard, always ending in a slash.

Stripping the LIVE. prefix could collapse two references onto one dataset,
so de-duplicate upstreams while preserving order. Drop table-valued
functions only when the statement invokes them, so a dataset named `range`
still resolves. Strip whitespace and stray dots when qualifying a name.
Remove the dead DLT_TABLE_PATTERN and the unused get_pipeline_libraries
client parameter.

* refactor(databricks): model DLT references and simplify parser dispatch

_qualify_dlt_table_name returned a bare (catalog, schema, table) tuple, so
callers had to know what each position meant. Return a DLTTableReference
instead, alongside the other connector models.

Replace the parser registry, the Protocol priority field and the per-call
sort with an explicit ordered DLT_PARSERS list. Two implementations did not
justify the indirection, and the previous approach also misused
enum_register, which everywhere else keys functions by an enum value rather
than classes by an ad-hoc string. Order is now stated where the list is
defined, and a test asserts it rather than assuming it.

Bound the entity caches with LRUCache, which CLAUDE.md requires and the
sibling Databricks ownership source already uses. Typing the cache surfaced
that fqn.build can return None and the old code cached under a None key, so
collapse the two duplicated cache blocks into a single _lookup_table helper
that guards it once.

Build the source through the real create() in tests instead of assigning its
internals. The hand-assigned caches had already drifted from production once
without any test failing. Cache bounds, eviction, miss caching and the None
guard are now asserted against the real object.

* fix(databricks): select only the files a DLT glob actually matches

glob_base_directory reduced an include to its base directory and the caller
then expanded that whole tree, so a selective include such as
/transformations/*.sql pulled in unrelated files and attributed their
lineage to the pipeline. That is worse than the wildcard bug it replaced,
because the edges are wrong rather than absent.

Model a library entry as DLTLibrarySource, carrying the directory to list
and the pattern its contents must match. Recurse only for **, and check
every candidate with glob_matches, where * stays inside a path segment and
** spans them. fnmatch is unsuitable because its * also crosses /.

Tests now assert which files an include selects rather than which directory
it reduces to, which is what the earlier assertion missed.

* fix(databricks): keep library entries modelled and treat ? as a wildcard

get_pipeline_libraries returns DLTLibrarySource, but the spec.configuration
and spec.development source_path fallback still appended a raw string, so
iterating the list hit AttributeError on library.is_directory and lineage
died for pipelines that use those fields.

glob_base_directory only looked for *, while glob_matches also honours ?, so
an include such as /transformations/file_?.sql was treated as a concrete
path and sent to the export API literally. Both now share GLOB_WILDCARDS so
they cannot disagree again.

* fix(databricks): expand a pattern-less library directory in full

A configuration or development source_path produces a library with no
pattern, and treating that as non-recursive skipped every nested
transformation. No pattern means no filter, so the whole tree is in scope.

An include that names a bare directory was also stored as its own pattern,
which then matched nothing and dropped the directory entirely. Only attach
a pattern when the include actually contains a wildcard.

Cover every spec.libraries shape end to end so the reduction and the
matching cannot drift apart again.

* fix(databricks): state directory-ness instead of inferring it from the path

is_directory was read off a trailing slash, so a source_path that Databricks
spells without one was exported as a file and its transformations never
listed. The producer knows what each entry is, so it now says so: notebook
and file entries are files, a wildcard include is always a directory, and a
source_path is normalised to a directory.

is_recursive only looked for **, so a wildcard in a directory segment such as
/tx/2024_?/file.sql reduced to /tx/ and then refused to descend, selecting
nothing. Decide from the part of the pattern below the base directory, where
either ** or a / means traversal is required.

* fix(databricks): let the workspace settle an ambiguous glob include

A glob include with neither a wildcard nor a trailing slash may name a file
or a directory, and the string cannot tell them apart: assuming a file leaves
a directory unlisted, assuming a directory swallows a concrete .sql. Model
the gap instead, with is_directory None meaning the spec did not say, and
resolve it by listing the path. Anything that lists is a directory, anything
that does not is read as a single source.

* fix(databricks): read the legacy and private DLT create forms

CREATE LIVE TABLE, CREATE STREAMING LIVE TABLE and the PRIVATE modifier are
spellings DLT still accepts but the query parser cannot read. It falls back to a
bare command and reports no tables, so the dataset was dropped with neither an
error nor a warning.

Rewrite them to the modern equivalent before parsing, anchored to the CREATE
clause so a dataset whose own name contains "live" is left alone.

* refactor(databricks): drop the glob machinery Databricks cannot produce

The pipelines API accepts only an exact file, a directory, or a directory with a
trailing **, and rejects every other wildcard form outright. The pattern matcher,
the wildcard set and the recursive flag were therefore unreachable, along with the
tests asserting on them.

A library is now just a file or a directory taken in full.

* fix(databricks): describe library discovery as it behaves and lift the depth cap

The get_pipeline_libraries docstring still promised pattern filtering that no
longer exists, and the expansion cap of 5 silently dropped transformations nested
deeper than that, which costs the lineage depending on them.

Correct the docstring and raise the cap to 20. A directory that is not there costs
nothing to look for.

* fix(databricks): use the real lookup cache in the self-referencing lineage test

The test stubbed _table_lookup_cache with a plain dict, which satisfied main's
implementation but not this branch's LRUCache. The lookup raised, the exception
was swallowed, and the two tests expecting an edge failed once main was merged in.

* fix(databricks): read a null libraries value and quieten per-file logging

The libraries key can be present and null, and testing for the key rather than
reading it made len() raise before the source paths were collected, which cost the
pipeline its lineage. Per-path discovery also logged at INFO, which buries the run
summary now that expansion is recursive.

* Fix user patch permissions (#32323)

* Fix user patch permissions

* Address review: enforce impersonation on all authorizer paths, fix role elevation

Centralize the impersonation check in DefaultAuthorizer.getSubjectContext()
instead of authorize()/authorizeRequests(). The admin-only guards
(authorizeAdmin, authorizeAdminOrBot), listPermissions, getPermission,
authorizePII and shouldMaskPasswords all short-circuit on isAdmin(), so a bot
impersonating an admin its IMPERSONATE policy denies could reach any admin-only
endpoint without the policy ever being evaluated. Every authorization entry
point and every resource that filters on the effective subject resolves it
through getSubjectContext(), so the check now covers all of them. A per-request
memo in ImpersonationContext keeps the bot lookup and policy evaluation to once
per request rather than once per subject resolution.

Fix hasRoleElevation: it treated any non-empty role change as an elevation, so
dropping one of several roles was rejected with a 403. Elevation is now gaining
a role the user does not already hold. It also compared against
existingUser.getRoles(), which findByNameOrNull() never populates - it returns
core fields only - so the current roles are loaded before comparing. Without
that, the containsAll() form would reject every self-update naming any role.

Compare the self-update principal to the user name case-insensitively, matching
generateTokenWithId. The principal comes from the token unmodified while the
user name is normalized to lower case.

Rewrite the impersonation unit tests to exercise the real getSubjectContext()
through a CatalogSecurityContext rather than static-mocking the authorizer, and
cover the admin-only guards. Add integration tests for impersonation on an
admin-only endpoint and for partial role shedding.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Handle roles as admin-only input on user create

Route authorizeAdmin(String) through the same subject resolution as the
SecurityContext overload so the impersonation check applies to callers
that only have the effective user name.

Require admin authorization for roles supplied in a CreateUser body on
both POST and PUT, except when useRolesFromProvider replaces them with
the token's roles. PUT now treats a missing existing user as holding no
roles instead of skipping the check.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Avoid overloading getSubjectContext

The username variant made DefaultAuthorizer.getSubjectContext(any())
ambiguous: that name is statically imported and stubbed with untyped
Mockito matchers across the codebase. Rename it to
subjectContextForUserName and make it private, since authorizeAdmin
is its only caller.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(security): gate PUT role elevation on any target

createOrUpdateUser evaluated hasRoleElevation only in the self-update
branch of an else-if chain, so a principal holding EDIT on users could
grant roles to somebody else through PUT /v1/users while the same change
over PATCH /v1/users/{id} was refused by isPrivilegedUserPatchPath.
Nothing downstream compensated: UserUtil.getUser copies the request body
roles onto the entity and UserRepository.updateRoles applies them with no
admin check.

Move hasRoleElevation into the privileged-field condition so it is
evaluated whoever the target is. grantsPrivileges() is deliberately not
reused here - it fires on any non-empty roles in the body, and PUT is a
full-document replace whose body normally echoes the roles the user
already holds, so it would reject ordinary self-updates.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(security): block impersonation on token revoke/logout, validate rotated bot tokens

Close two impersonation gaps left by the PAT-create fix:

- UserResource: guard PUT /users/security/token/revoke and POST /users/logout
  with the same impersonation check as createAccessToken. An impersonating bot
  could otherwise revoke or invalidate the target's personal access tokens and
  sessions (self-scoped ops that resolve the principal to the impersonated user).

- JwtFilter: under impersonation, validate the impersonating bot's own token
  against BotTokenCache instead of skipping the check. Bot tokens are revoked by
  rotation, so skipping let a leaked, since-rotated bot token keep working simply
  by attaching an X-Impersonate-User header.

Add regression ITs exercising the real wiring (not mocked authorizer):
- WorkflowTriggerPermissionsIT: advisory PoC - bot without the grant using
  X-Impersonate-User on POST /automations/workflows/trigger/{id} is denied.
- BotImpersonationIT: revoke-under-impersonation and rotated-bot-token replay.

Verified live against a local server: revoke/logout -> 403, rotated token -> 401,
current token -> 200, no-grant impersonation -> 403.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(security): block PAT listing under impersonation to prevent token exfiltration

GET /v1/users/security/token returned the target's raw jwtToken and had no
impersonation guard. An impersonating bot could list and exfiltrate the target's
personal access token, then authenticate as that user outside the impersonation
flow - a standalone credential that survives revoking the impersonation grant.

Guard the listing endpoint with the same rejectImpersonatedTokenOperation check
used for create/revoke/logout, and add a BotImpersonationIT regression.

Confirmed live before the fix: impersonated GET returned 200 with the target's
jwtToken, and that token used standalone resolved loggedInUser to the target.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>

* Playwright burn-down 1: eliminate no-wait-for-timeout and no-force-option (#32283)

* refactor(playwright): remove fixed waits from KnowledgeCenter helpers

Five playwright/no-wait-for-timeout sites, first slice of the burn-down.

Three were straight assertion swaps — toggleTask now asserts the checkbox
actually flipped, createCallout and createTable wait for the node the slash
command inserts rather than a guessed 200/300ms.

The other two were pacing inside a hand-rolled scroll-and-retry loop (20
retries, fixed 500ms between wheel events). Replaced with a single
expect.poll that owns the retry budget and the interval, and reports the
article it was looking for instead of a bare timeout.

toggleTask no longer needs its page parameter, so the signature and its one
caller in KnowledgeCenterTextEditor.common.ts change with it.

The suppressions baseline is deliberately NOT pruned here — the remaining 37
sites in this PR are still to convert, and pruning once at the end keeps the
baseline consistent with corpus.test.ts in a single commit.

(cherry picked from commit 426558222a00962db59ad45223236b884638a21e)

* refactor(playwright): remove or justify seven more fixed waits

ContextCenterArticles: two removed — the trailing assertion and the 'Unsaved'
badge are the real signals, so the fixed waits added nothing.

customizeLandingPage: Promise.race([waitForResponse, waitForTimeout(10000)])
reinvented waitForResponse's own timeout option. Replaced with
{ timeout: 10_000 } plus .catch(() => null), which keeps the previous
behaviour of continuing rather than failing when nothing matches.

ContextCenterUtil (x2) and logsViewer: justified disables rather than
conversions. Detecting that lazy-loading has *stopped* has no positive signal
to await — the pause is the measurement — and the wheel-event pacing exists
because back-to-back synthetic wheels coalesce in the browser. Both carry the
reason inline, which justified-rule-disable enforces.

(cherry picked from commit e886b0b658bc2658c8da972c82fbdbdb8c04ef4d)

* refactor(playwright): drop force:true from taskWorkflow clicks

All eleven playwright/no-force-option sites, every one of them redundant.

Each click is already preceded by an explicit expect(...).toBeVisible(), an
isVisible() guard, or scrollIntoViewIfNeeded() — so actionability has been
established before force:true tells Playwright to skip checking it. The flag
was belt-and-braces, not load-bearing.

Where it stops being redundant is the case worth catching: an element that is
visible but overlaid. force clicks through the overlay and hits whatever is
underneath; without it the click fails, which is the correct signal rather
than a silent wrong-element click.

Four of the eleven sit behind .catch(() => undefined), so a newly-failing
click is swallowed rather than thrown. Each is followed by a check that
surfaces it — expect(tagsInput).toBeVisible, waitForMenuItem(), or the
editorAppearedAfterClick probe — so the failure reports at the assertion
instead of being lost. AUT is the validator here.

(cherry picked from commit a56a3e731e1defbd4c0fe6b8ba05266d7a99d445)

* refactor(playwright): finish the wait/force burn-down, baseline 1505 -> 1463

Removes the last fixed waits and justifies the ones that must stay, then
prunes the suppressions they were held under.

Both targeted rules are now absent from the baseline entirely rather than
merely reduced, so they are dropped from EXPECTED instead of lowered.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* refactor(playwright): fix the SSO waits instead of disabling the rule

The first pass justified 19 fixed waits in SSOAuthentication.spec.ts rather than
fixing them. Most of those justifications did not hold: a wait followed
immediately by a localStorage or token read can be polled directly, and a wait
before an assertion that the app is still authenticated has a positive signal
already available in verifyAuthenticated().

17 of the 19 are now real waits on the condition each one was standing in for:

  - expect.poll on localStorage / IndexedDB token state, replacing sleep-then-read
  - expect.poll on the mock OIDC refreshAttempts counter, so token-expiry and
    401-retry tests wait for the renewal to actually land
  - expect.poll on the captured console log for the visibilitychange handler
  - verifyAuthenticated() as the positive signal before asserting the URL
  - two sleeps deleted outright: one before a navigation, one after an explicit
    verifyAuthenticated() that already waits

Two remain, with the reasons rewritten to state what they actually are:
asserting a blocked broadcast (a non-event, which cannot be polled because any
condition already holds at t=0), and an idle period that is the test input
rather than a wait for something. page.clock could fake the latter, but a fake
clock would also fake the token exp checks the test exercises.

Removes ~60s of fixed sleeps from the suite. No CI lane runs this file
(playwright.sso.config.ts is not wired into any workflow), so this is verified
by tsc and eslint only -- flagged in the PR.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* Fixes #32320: Enforce ingestion pipeline action permissions (#32321)

* fix: enforce ingestion pipeline action permissions

* fix: preserve ingestion action compatibility

* fix: validate bulk pipeline deployment IDs

* refactor: OIDC login handler and MCP callback auth handling (#32354)

* refactor: OIDC login handler and MCP callback auth handling

Adapt the OIDC/SSO login flow to the current pac4j 6 API (major upgrade with
breaking changes). AuthenticationCodeFlowHandler and the MCP callback servlet
are the only consumers:

- OidcCredentials field types changed (getCode/getIdToken/getAccessToken/
  getRefreshToken now return String/Map). Use the to*() converters and
  set*Object()/serialize() where the nimbus types are needed, and parse each
  token once per request. MCP validates the id token from its stored String
  form directly.
- Provider metadata: getProviderMetadata()/findProviderMetadata() were replaced
  by a lazy IOidcOpMetadataResolver. Added a resolveProviderMetadata() helper
  and initialize the resolver during single-threaded startup so concurrent
  logins never race to create it.
- PrivateKeyJWT config getter now returns IPrivateKeyJwtClientAuthnMethodConfig.

Added a unit test for resolveProviderMetadata. Verified: openmetadata-service
+ openmetadata-mcp build, AuthenticationCodeFlowHandlerTest (34 tests) green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix: improve OIDC callback token handling

* refactor: reuse parsed OIDC token claims

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ui): stop deriving the Explore tab from a tied hybrid top hit (#32316)

When NLQ is enabled, the Explore count query is a hybrid search over the
24-index dataAsset alias. OpenSearch's RRF score-ranker-processor is a
phase_results_processors entry, so it ranks per shard: every single-shard
member contributes its own rank-1 document and two dozen of them tie at an
identical fused score (0.4/(30+1) = 0.012903226). hits[0] is therefore
arbitrary, and feeding it to findActiveSearchIndex auto-selected a tab the
counts in the very same response contradicted.

Measured against a local cluster: `revenue by region` selected apiEndpoint
(4 hits) over table (24); `user activity` selected apiCollection (1 hit)
over table (5).

The aggregation counts are already computed and already back the tab
badges, so the fix is to ignore the top hit on the hybrid path only. Plain
BM25 ranks globally, so its top hit remains a valid tie-breaker and is
left untouched, as is findActiveSearchIndex itself.

Fixes #32315

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>

* fix: mask PubSub credentials in backend (#32102) (#32135)

* fix: mask PubSub private key in configuration UI (#32102)

Signed-off-by: zhang-arvin <arvin.zhang@htx-inc.com>

* fix: resolve PubSub credential schema variants

Select the active credential oneOf branch before rendering connection details and resolve local schema references so privateKey metadata cannot be lost through an unrelated branch.\n\nAdd regression coverage for service-account masking, credential-path and ADC references, and unknown discriminator handling. Keep dereferenced schema output generated rather than source-controlled.

* refactor: isolate connection schema traversal

* fix: preserve non-discriminated connection unions

* fix: match mixed connection schema unions

* fix: reject mismatched schema discriminators

* fix: validate complete connection discriminators

* fix: mask PubSub credentials in backend

Convert PubSub GCP credentials to their concrete schema types before applying the existing password masker, matching the BigQuery flow.

* test: cover persisted PubSub credential masking

Exercise masking and unmasking from the map-shaped service configuration returned from persistence.

---------

Signed-off-by: zhang-arvin <arvin.zhang@htx-inc.com>
Co-authored-by: Ayush Shah <ayush02shah12@gmail.com>

* feat(login): drive login video gradient from LoginClassBase (#32311)

The login video panel and inset-card gradients were inlined in
CarouselLayout. Move them behind getLoginVideoPanelClassName() and
getLoginVideoCardClassName() on LoginClassBase (OSS default palette
unchanged) so downstream builds can override the login palette without
forking the layout.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

* Fixes #32256: Queries tab shows parent table's description provenance (#32292)

The Description component fell back to the page-level GenericProvider
change summary whenever changeSummaryEntry was not passed. When
TableQueryRightPanel renders a Query's description inside a Table page,
the Query's "authored/accepted by" line silently inherited the parent
table's provenance ("Accepted by admin • 6 days ago").

Only use the context change summary when the rendered entity type
matches the context entity's type. Adds a regression test.

Co-authored-by: Auto-revert Test <test-auto-revert@example.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Improve casing on quick filters across pages for glossary terms and tags (#32190)

* fix(ui): preserve original casing in quick filter options and chips

Quick filters aggregate on `.keyword` fields indexed through
`lowercase_normalizer`, so terms buckets come back lowercased while `_source`
keeps the original casing. #26805 fixed this for the Explore page by adding a
`sourceFields` literal to each dropdown array in AdvancedSearch.constants.ts,
which left every filter list defined elsewhere — Data Products, Domain,
Sub-domain — still rendering raw lowercase keys, and never covered the
`glossaryTags` / `classificationTags` fields at all.

Replace the ~50 duplicated literals with one QUICK_FILTER_SOURCE_FIELDS map
resolved inside ExploreQuickFilters, so every page rendering those dropdowns is
covered by a single code path. Membership was audited field-by-field against the
index mappings: only keywords carrying `lowercase_normalizer` whose `_source`
holds an original-case value are listed.

Selected values round trip through the URL as the lowercase key alone, so chips
and checked options reverted to lowercase on reload or on a shared link. Recover
their labels from the rows already listed — each hit of a filtered result set
carries the matched value in its `_source` — which needs no extra request.

Filter values stay the lowercase bucket key throughout, so query building,
shared URLs and saved query filters are unaffected.

Also dedupe the two bucket parsers: parseBucketsData had its own dot-path
reduce with no array handling, so array-crossing paths like `tags.tagFQN`
silently fell back to the bucket key in the Advanced Search query builder.
It now shares extractSourceValue.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(ui): resolve filter label casing beyond the current page of rows

Review feedback on #32190.

Label hydration read only the rows currently listed, so a selected value whose
matching row sat on another page — or one crowded out by a sibling value of the
same field — fell back to the lowercased URL key. Move the logic into
useQuickFilterLabels, which keeps the free path (labels the current rows already
explain), remembers what it resolves so casing survives paging and result-scope
changes, and falls back to one targeted aggregation per still-unresolved value.
Each value is asked for at most once per page lifetime, so a value that resolves
to nothing is not re-requested on every row change, and both caches are bounded.

Also drop the positional fallbacks in extractSourceValue. Picking element [0]
when no element matched the bucket key labelled a bucket with a sibling value —
a wrong label, which is worse than the lowercased key the caller falls back to.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(ui): merge each filter label as it resolves, not latest-request-wins

Review feedback on #32190.

Values were marked attempted before their requests finished while a single
request id invalidated every earlier result, so a value whose label arrived
after another value started resolving had that label discarded — and the
attempted guard then blocked it from ever being asked again, leaving it
lowercased for the rest of the page lifetime.

The requests are independent: each writes only its own cache key, and the
attempted guard already prevents a duplicate in flight for the same value, so
no result can be superseded by a later one. Drop the request-id guard, merge
each result as it lands, and keep only an unmount check so nothing sets state
on a torn-down page.

Covered by a test that resolves the second value first and asserts the first
value's label still applies.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(ui): write the cache-key separator as an escape, not a literal NUL

The separator was committed as a literal NUL byte, so git classified
useQuickFilterLabels.ts as binary and the file's diff was unreviewable in the
PR. Writing the same value as the escape sequence keeps the two halves of the
cache key unambiguous while leaving the source as text.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

* feat(ui): use the Ontology Studio glyph in both nav surfaces (#32324)

* feat(ui): use the Ontology Studio glyph in both nav surfaces

The Ontology Studio page header renders LayersThree01 in a brand-solid
square, but the two nav entries that lead there used unrelated icons and,
in the app-mode sidebar, the pre-rename "Ontology Explorer" label.

- classic sidebar (LeftSidebar.constants.ts): ic-lineage.svg ->
  LayersThree01, restroked to 1.2 via createIconWithStroke so it matches
  the neighbouring glossary/classification/metric SVGs (raw @untitledui
  icons ship at stroke 2). Follows the existing DataProductIcon/Cube01
  precedent in the same file. The now-unused LineageIcon import is
  dropped; no other sidebar entry referenced ic-lineage.svg.
- govern app module: ask-collate-nav-bar/ontology-{default,active}.svg ->
  LayersThree01, and labelKey label.ontology-explorer ->
  label.ontology-studio, matching the page title. Single glyph, so no
  activeIcon. The item key stays 'ontology-explorer' to keep the
  existing test ids and Playwright selectors working.

label.ontology-studio already exists in en-us.json, so no new keys.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(ui): restroke the Ontology Studio nav glyph in the govern module

Review catch on #32324: the classic sidebar restroked LayersThree01 to
1.2 but the govern module used it raw, so the two nav entries for the
same destination drew at different weights. The gap is visible — NavItem
renders the icon at 20px, so stroke 2 on a 24 viewBox lands at 1.67px
next to sibling SVGs that draw 1.2px on a 20 viewBox, ~39% heavier.

Hoist the wrapped icon into IconUtils as `OntologyStudioIcon` and use it
from both surfaces, so they cannot drift apart again. The cast that
`createIconWithStroke` needs for `@untitledui` icons is now named
(`StrokableIcon`) and exported, since it had been inlined at each call.

The page header keeps the unrestroked glyph: there it is reversed out on
a brand-solid badge, where the heavier stroke is correct.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Fixes #30076: Add UI support for soft delete and restore of test cases (#32085)

* feat(ui): support soft delete for test cases

* fix(ui): handle test case restore edge cases

* test(ui): assert visible restore action in modal

* refactor(ui): address code-review findings on test-case soft delete

- Move getTestCaseListDisplayState pure helper into TestCases.utils.ts
  per the .utils.ts convention for non-JSX logic.
- Consolidate the repeated testCaseData?.deleted check in
  useTestCaseIncidentHeader into a single isDeleted derived value.
- Compute DataQualityTab row menuItems/hasAnyPermission directly per
  branch instead of building then discarding the edit/delete case.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* fix(ui): make deleted test case details read-only

* test(ui): preserve default test case side panel state

* refactor(ui): address soft-delete review feedback

* fix(ui): handle restore cancellation and test flakiness

* fix(ui): preserve newer selection after restore

* refactor(ui): align test case restore review feedback

* fix(ui): keep restore state scoped to request

* fix(ui): address tooltip and e2e regressions

* fix(ui): target test definition select trigger

* test(ui): stabilize data quality e2e assertions

* test(ui): deflake test definition mouse selection

* fix(ui): avoid nested DQ alert controls

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

* fix(ui): route hardcoded copy through t(); promote i18next/no-literal-string to error (#32328)

Clears the i18next/no-literal-string regrowth (66 violations) and enforces the
rule at error so hardcoded user-facing strings can't land again.

- Genuine UI text across 10 components wrapped in t(), reusing existing keys
  where present; 25 new keys added to en-us.json and translated into all 19
  non-English locales (no English placeholders left).
- Decorative glyphs/units (✓, ▸, ⌘↵, Esc, ·, ms, "(A → Z)") that are not
  translatable carry a documented single-line disable with a reason.
- Mock/fixture files (*.mock.*, mocks/**, test/**) exempted — sample strings are
  not user-visible copy.

Verified: 0 i18next/no-literal-string violations, 0 ESLint errors, check-i18n in
sync, all 19 locales fully translated + valid JSON, full UI suite green.

Closes #30985

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ui): stretch glossary terms table to fill its container (#32269)

* fix(ui): stretch glossary terms table to fill its container

Every visible column in the glossary terms table declared a fixed pixel
width. The table itself is width:100%, so once the container grew past
the columns' combined 1220px there was nothing allowed to absorb the
surplus, and it rendered as a dead strip past the Actions column. The gap
scales with the viewport - ~30px at 1512px wide, 438px at 1920px, 1078px
at 2560px - and is exactly 0 at 1280px, where the fixed widths happen to
fill the container. That is why it stayed hidden until viewed on a wide
window.

Drop the fixed width from the description column so it stays fluid and
takes the leftover space, and move its 420px floor onto the cell content,
where it still propagates up as the column's min-content width. Narrow
viewports therefore keep the intended horizontal scroll rather than
squeezing the description to fit.

Verified across 1280-2560px: the gap is 0 at every width, in the
collapsed tree, after Expand All, and with the optional Reviewers and
Synonyms columns toggled on; at 1100px the floor holds and the container
scrolls.

Also swap the no-description span onto the core Typography component, so
the muted colour comes from the semantic token - which carries a
dark-mode variant - instead of the legacy text-grey-muted LESS class.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* test(ui): update glossaryTermTableColumnsWidth for descriptionMin

ad06cd7b4 dropped the description column's fixed width so it can absorb
the container's surplus, and renamed the 420 entry to descriptionMin --
it is now a floor applied to the cell content, not a column width. The
GlossaryUtils assertion still expected the old `description` key.

Rename the expected key and retitle the spec so it states what the
object now means rather than claiming every entry is a fixed width.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(ui): size glossary terms table to content instead of stretching

On the glossary page the tab pane gives the scroll container a definite
full-height via a flex cascade, so the flex-1 table card stretched to fill
it and left a large empty area below the rows when few terms exist. The
term details page has no such cascade, so the same card sized to content
there — hence the mismatch.

Use flex-initial (grow 0, shrink 1, basis auto): the card now sizes to its
content when rows are few (no empty gap), and still shrinks to the
container height and scrolls internally with a pinned pagination footer
when rows overflow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* fix(ui): keep glossary terms table filling the panel height

Revert the flex-initial change: the table card should fill the full panel
height (single row at top, empty table body, pagination pinned at the
bottom) rather than collapse to content height. Verified against the live
app — the card height matches the scroll container and the pagination
stays pinned at the bottom.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* fix(ui): app-mode page height + native interface switcher, with app-mode E2E coverage (#32277)

* fix(ui): restore app-mode page height and style quick-filter menu checkboxes

Two fixes to the app-mode (AI shell) UI.

1. AssistantLayout page height. The shell's assistant-layout.less did not
   declare the page-height custom properties, so pages inside app mode
   inherited the :root --ant-navbar-height of 80px (temp.css) even though the
   shell renders no navbar. Every page rendered ~68px too short with a phantom
   gap at the bottom. Declare --ant-navbar-height at the .assistant-layout
   scope to match the shell's only vertical chrome (the .assistant-content
   my-1.5 margins, 6px + 6px = 12px), re-declare --om-page-height in the same
   scope (a nested var() binds where the custom property is declared), and set
   --content-panel-offset to 16px for the compact app-mode pages.

2. Quick-filter menu checkboxes. SearchDropdown menu rows render a native
   <input type="checkbox|radio"> (generateSearchDropdownLabel), not an antd
   Checkbox, so the existing .immediate-apply-dropdown .ant-checkbox-inner
   rules never reached them and the rows showed unstyled browser checkboxes.
   Add native-input styling scoped to .ant-dropdown-menu-item (leaving antd's
   own hidden .ant-checkbox-input untouched) that matches the compact design:
   an 18px rounded box filling primary with a "+" mark when checked, and a
   filled dot for the radio variant.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ui): render the interface switcher natively in the profile dropdown

The classic navbar profile dropdown showed two overlapping app-mode controls:
the collapsible AppModeSwitcher ("Classic mode" trigger) rendered by OSS, and a
Collate-injected "User Interface" list (InterfaceModeMenuItem) added via
NavbarUtilClassBase.getUserProfileExtraItems(). Both carried key "app-mode", so
Collate showed them stacked.

Consolidate to a single, OSS-native control:
- Add an OSS InterfaceModeMenuItem (the inline "User Interface" Classic/AI
  switch) and render it in UserProfileIcon in place of AppModeSwitcher. AI is
  always available in OSS (the app-mode shell ships in-tree — see
  SettingsAppModePage), so it renders unconditionally, no install gate.
- AppModeSwitcher is unchanged and still used by the AI sidebar
  (UserProfileCard); only its use in the classic profile dropdown is removed.
- Add the label.user-interface key and sync locales.

The matching Collate cleanup (dropping the getUserProfileExtraItems override and
the Collate-side InterfaceModeMenuItem) ships separately.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ui): use 28px navbar height for app-mode shell, drop quick-filter checkbox styling

Revert the native checkbox/radio styling added to search-dropdown.less and set
the app-mode shell's --ant-navbar-height to 28px so AI pages size correctly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* chore(ui): translate label.user-interface into all locales

Replace the English placeholder for label.user-interface with proper
translations in every non-en locale (pr-pr pirate locale left as-is).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test(ui): add OSS app-mode E2E coverage (authz, settings, marketplace live-refresh)

The app-mode shell, resolver, user-preference and tenant-default settings now
live in OSS, but there was zero app-mode Playwright coverage here — a break in
the OSS resolver/settings would go unnoticed until a downstream repo ran its
own suite. Add the mechanic tests that belong next to the OSS code:

- AppModeAuthGating.spec.ts — API authz for the per-user preference
  (`/users/{id}/preferences/appMode`, self-or-admin) and the tenant-wide
  `appConfiguration` write (admin-only).
- AppModeSettings.spec.ts — the DefaultAppModePage admin UI: menu visibility,
  non-admin route block, save-enables-on-change, PUT payload, and "no default"
  clearing.
- AppModeLiveRefresh.spec.ts — the Marketplace Domains / Data Products list
  pages mount inside the AI shell and live-refresh when an entity is created
  over REST.

Supporting infra: a shared fixtures.ts (worker-scoped isolated admin +
data-consumer, so a test that persists `appMode='ai'` cannot leak into the
rest of the run), a cross-worker appConfig mutex, and seedAiAppMode() — the
OSS-native way to enter AI mode (seed the app-mode session tuple; no plugin
install gate, since OSS ships the shell in-tree).

Ported from the Collate suite as part of moving app-mode ownership to OSS.
`yarn lint:playwright` passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test(ui): port the remaining app-mode E2E specs to OSS

Move the app-mode mechanic specs that exercise OSS-owned code (the boot
resolver, precedence chain, cross-tab/session persistence, user-preference
round-trip, and kept-alive route isolation) from the Collate suite into OSS,
next to the code they test:

- AppModeResolver.spec.ts — session tuple, cross-tab hint, remember-checkbox.
- AppModePrecedence.spec.ts — the rung 3→6 precedence chain (user pref >
  persona > tenant default > default).
- AppModePreferenceRoundTrip.spec.ts — the remember toggle's PUT/DELETE.
- AppModeCrossDevice.spec.ts — a preference set in one browser is picked up on
  a fresh login in another.
- AppModeAiPersonaLandsAtRoot.spec.ts — an AI persona lands at "/" not /my-data.
- AppModeRouteIsolation.spec.ts — kept-alive routes don't cross-fetch.

Shared helper `Utils/appMode.ts` provides the OSS-native app-mode controls
(enableAiAppMode / disableAiAppMode seed the session tuple + hint and stub the
boot preferences GET; stubTenantDefaultAppMode; assertAppMode;
switchToAiModeViaProfileToggle). This also fixes AppModeLiveRefresh, which was
using a seed-only helper that the boot resolver overwrites — it now uses the
full enableAiAppMode (with the preferences stub).

Adaptations for the OSS playwright lint gate: positional `.first()` on the dual
sidebar switcher → `:visible` locators; inline `page.waitForResponse` races →
hoisted listeners; AI-only `/ai-dashboards` route → shared `/my-data` (the
`ask-sidebar` assertion still proves AI). The Collate debounce-coalesce test
relied on a banned `waitForTimeout` with no clean equivalent and is not ported.

`yarn lint:playwright` passes on all specs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test(ui): seed app-mode timing baseline + address review feedback

- Seed .github/playwright/timing-baseline.json with the 33 new app-mode tests
  (per-file, identity-matched by file+title). The plan-playwright gate hard-fails
  when every planned test in a file falls through to FALLBACK_TEST_MS; the ported
  AppMode specs had no baseline history, so the planner would under-budget their
  shard and time out the merge queue. Durations are conservative per suite
  (API-only ~5s, persona/cross-context flows up to ~120s).

- appMode.ts: `disableAiAppMode` no longer clears a server-side appMode
  preference. It resolved the SHARED super-admin and deleted THAT user's
  preference, not the isolated fixture user the specs actually log in as — the
  fixtures already DELETE the right user's preference per test.

- appConfigMutex.ts: make `withAppConfigLock` genuinely reentrant via an
  in-process depth counter (a nested call previously self-deadlocked to the
  120s acquire timeout), and reclaim a stale lock by an atomic rename-steal that
  re-checks staleness on each poll — closing the double-unlink race where two
  waiters both removed the lock and both believed they held it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* style(ui): apply canonical prettier wrap in AppModeResolver spec

The ui-checkstyle playwright step re-runs organize-imports + eslint --fix +
prettier and fails on any resulting diff; one toHaveAttribute assertion was
wrapped differently than prettier's fixed point. No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test(ui): align app-mode settings label, drop unsupported live-refresh e2e

AppModeSettings asserted the Collate label "App Mode"; OSS labels the entry
"Default App Mode" (page title, description, and menu agree), so match that.

Remove AppModeLiveRefresh.spec.ts: it exercises websocket-driven live refresh
of the marketplace Domains/Data Products lists, but OSS never broadcasts
domain/dataProduct create/update over the websocket (WebsocketNotificationHandler
only pushes Task/Conversation/Reply/Announcement), so the feature the test
covers does not exist in OSS. Also drop its two entries from the Playwright
timing baseline.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test(ui): restore AppMode timing-baseline seeds dropped in merge

The main-branch merge resolution took origin/main's timing-baseline.json
wholesale, dropping the 31 AppMode spec timing seeds this PR added. That
tripped the PR-time stale-baseline gate for AppModeAuthGating,
AppModePrecedence, AppModeResolver, and AppModeSettings. Re-add the seeded
entries on top of main's refreshed baseline.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.nor…
shrabantipaul-collate pushed a commit that referenced this pull request Oct 5, 2026
…irectly

#32324 introduced `OntologyStudioIcon` for one reason: to restroke
`@untitledui`'s LayersThree01 from its shipped weight of 2 down to 1.2 in a
single place, so the classic sidebar and the app-mode sub-nav could not drift
apart. #34141 then migrated icons to core-ui, whose LayersThree01 sets
`strokeWidth={1.3}` on its own `<path>` — a presentation attribute that beats
the value inherited from the `<svg>`. The restroke has been inert ever since,
leaving a pass-through alias that buys nothing.

Two repo rules say to name the component at the call site instead: "No
wrappers around core-ui components — a wrapper that only passes props through
is a maintenance liability: it hides which core component is in use", and
"Import icons from @openmetadata/ui-core-components/icons". The indirection
also hid the thing worth checking: you could not tell from the nav entry that
the glyph was LayersThree01, which is what makes it match the other
LayersThree01 entries beside it.

Verified against the running app before and after — same path data, same
stroke 1.3, same rgb(24, 73, 169) when selected and rgb(113, 118, 128) at
rest, on both the AI sub-nav and the classic left nav.
shrabantipaul-collate pushed a commit that referenced this pull request Oct 5, 2026
The sub-nav where the icon looked wrong (Audit Hub, Automations, AI Assets →
Frameworks) is defined in Collate's governance module, not here. OSS's own
Ontology Studio entry already renders correctly: verified against the running
app, it draws LayersThree01 at stroke 1.3, rgb(113, 118, 128) at rest and
rgb(24, 73, 169) when selected — the same glyph and tint Frameworks gets.

So this repo needed nothing, and three of the edits were speculative:

- ontology-active.svg / ontology-default.svg were redrawn as the layers glyph
  on the theory that Collate wired those assets. Nothing in this repo
  references either file, so the rewrite had no verified consumer.
- Dropping the OntologyStudioIcon alias would have broken Collate's build if
  its governance module imports the symbol.

Restored to origin/main. What remains is the icon-colour work, which is
AI-mode-only and was confirmed in the browser.

The dead restroke stands as a separate finding: #32324 added
createIconWithStroke(LayersThree01, 1.2), and #34141's move to core-ui — whose
LayersThree01 sets strokeWidth={1.3} on its own path — made it inert. Worth a
follow-up, but not on the critical path for this fix.
timothybrush pushed a commit to timothybrush/OpenMetadata that referenced this pull request Oct 5, 2026
…pen-metadata#34642)

* fix(ui): align AI-mode sidebar icon glyph and colour tokens

Three icon inconsistencies in the AI-shell sidebar, all scoped to AI mode
(the classic left nav renders identically before and after):

- Expand/collapse rail buttons and the inbox launcher used
  `tw:text-fg-quaternary`, which resolves to gray-400, while every nav and
  list icon beside them uses `--tw-text-color-quaternary` (gray-500). That
  one-step-paler token is why they read washed out next to the globe. The
  class is dropped so each icon inherits its button colour, and the two
  `__expand-btn` rules move from `@ask-text-quaternary` to `@ask-icon-rest`
  so they also track the nav icons in dark mode (gray-600 there, where raw
  quaternary would flip to gray-400).

- `ontology-active.svg` / `ontology-default.svg` were the old
  circles-and-lines knowledge-graph glyph and are unreferenced in this repo.
  Redrawn as the `LayersThree01` path so the Ontology Studio entry cannot
  diverge from Frameworks in the selected state. The active variant
  previously hardcoded `stroke="#1849A9"`, which would have matched in light
  mode but not dark, where `@ask-brand-active` resolves to brand-300;
  `currentColor` inherits whatever the sibling inherits, in every theme.

- `OntologyStudioIcon` drops its `createIconWithStroke(..., 1.2)` wrapper.
  The restroke never applied: core-ui's `LayersThree01` sets
  `strokeWidth={1.3}` on its `<path>`, and a presentation attribute on the
  element beats the value inherited from the `<svg>`. Removing it deletes a
  comment claiming a weight the icon has never had; rendering is unchanged
  on both the AI sub-nav and the classic left nav.

* refactor(ui): drop the OntologyStudioIcon alias, name LayersThree01 directly

open-metadata#32324 introduced `OntologyStudioIcon` for one reason: to restroke
`@untitledui`'s LayersThree01 from its shipped weight of 2 down to 1.2 in a
single place, so the classic sidebar and the app-mode sub-nav could not drift
apart. open-metadata#34141 then migrated icons to core-ui, whose LayersThree01 sets
`strokeWidth={1.3}` on its own `<path>` — a presentation attribute that beats
the value inherited from the `<svg>`. The restroke has been inert ever since,
leaving a pass-through alias that buys nothing.

Two repo rules say to name the component at the call site instead: "No
wrappers around core-ui components — a wrapper that only passes props through
is a maintenance liability: it hides which core component is in use", and
"Import icons from @openmetadata/ui-core-components/icons". The indirection
also hid the thing worth checking: you could not tell from the nav entry that
the glyph was LayersThree01, which is what makes it match the other
LayersThree01 entries beside it.

Verified against the running app before and after — same path data, same
stroke 1.3, same rgb(24, 73, 169) when selected and rgb(113, 118, 128) at
rest, on both the AI sub-nav and the classic left nav.

* Revert the Ontology Studio icon changes — they belong in Collate

The sub-nav where the icon looked wrong (Audit Hub, Automations, AI Assets →
Frameworks) is defined in Collate's governance module, not here. OSS's own
Ontology Studio entry already renders correctly: verified against the running
app, it draws LayersThree01 at stroke 1.3, rgb(113, 118, 128) at rest and
rgb(24, 73, 169) when selected — the same glyph and tint Frameworks gets.

So this repo needed nothing, and three of the edits were speculative:

- ontology-active.svg / ontology-default.svg were redrawn as the layers glyph
  on the theory that Collate wired those assets. Nothing in this repo
  references either file, so the rewrite had no verified consumer.
- Dropping the OntologyStudioIcon alias would have broken Collate's build if
  its governance module imports the symbol.

Restored to origin/main. What remains is the icon-colour work, which is
AI-mode-only and was confirmed in the browser.

The dead restroke stands as a separate finding: open-metadata#32324 added
createIconWithStroke(LayersThree01, 1.2), and open-metadata#34141's move to core-ui — whose
LayersThree01 sets strokeWidth={1.3} on its own path — made it inert. Worth a
follow-up, but not on the critical path for this fix.

---------

Co-authored-by: Shrabanti Paul <shrabantipaul@Shrabantis-MacBook-Pro.local>
Rohit0301 added a commit that referenced this pull request Oct 7, 2026
…34805)

* Fixes #34540: Support a shared lifecycle stage on entities and let active workflows own it (#34541)

* Fixes #34540: Support a shared lifecycle stage on entities and let active workflows own it

Every entity type whose schema declares entityStatus now gets its lifecycle
stage rules from EntityRepository instead of a schema default, so they live in
one place:

- A new entity starts in its type's stage: Draft for domains, data products,
  glossaries, articles, ontology axioms, data contracts and AI assets;
  Approved for assets that come from the data infrastructure. Metrics and
  glossary terms start Draft only when they have reviewers.
- A PUT, bulk upsert or CSV import whose request carries no stage keeps the
  stage the entity is in instead of resetting it.
- While a deployed, unsuspended governance workflow sets an entity type's
  stage, only that workflow (acting as the governance bot) may change it.
  A direct change is rejected with 403, and a create that asks for a stage the
  workflow owns starts in the type's own stage. The workflow's trigger filter
  decides which entities it owns; suspending it releases them.
- GET /v1/metadata/types/lifecycleStages lists the stages and, per entity
  type, the workflows that own its stage.
- Context memories move from their own Draft/Active/Archived status onto
  entityStatus. The 2.1.0 migration converts stored memories and their
  version history (Active becomes Approved).
- The approval-task closing, in-review delete and reviewer rules that seven
  repositories each duplicated are shared now, with per-type flags keeping
  each rule on the entity types that had it.
- A consolidated update no longer re-validates a stage change that an earlier
  version made, such as a workflow approving on the user's behalf.
- createOntologyAxiom no longer requires entityStatus, and DataProduct
  lifecycleStage is deprecated in favor of entityStatus.

BaseEntityIT checks the stage rules for every entity type; types without a
lifecycle (users, teams, test suites, ...) opt out.

* Update generated TypeScript types and dereferenced schemas

* Cover the repository lifecycle-stage rules with unit tests

The repositories' stage rules reached the active workflows through a static
EntityStatusWorkflows lookup, so no unit test could put an entity under an
owning workflow. EntityRepository now takes a StageOwnership, with the active
workflows as its default, and the create-time stage assignment and the
updater's stage check are package-private instead of being reached through
reflection.

New tests cover a create that asks for a workflow-owned stage, the workflow
creating and moving an entity in that stage, types whose stage no workflow
owns, approval and rejection by reviewers and reviewing teams, sending an
entity in review back to Draft, session consolidation, memory transitions
through the updater, and glossary terms inheriting reviewers. Line and branch
coverage of the repositories' stage code goes from 66% and 58% to 91% each.

* Let an entity type declare its own lifecycle stages

Every type with entityStatus draws its stages from one vocabulary, but a type
can now declare its own lifecycle in its repository: the stages it uses,
including stages only it has, and the moves between them. Types that declare
none keep the general lifecycle, any move between today's seven stages, so
nothing changes for them, Metric included. A stage added to the vocabulary
later is outside the general lifecycle, so only the types that declare it can
use it.

EntityRepository rejects with 400 a create in a stage outside the type's
lifecycle and a stage change the lifecycle has no move for, for direct edits,
imports and workflows alike. Context memories are the first type to declare
one (Draft, Approved, Archived), replacing their own transition table and
validators. GET /v1/metadata/types/lifecycleStages now reports each type's
stages and transitions, and BaseEntityIT checks that every type rejects a move
outside its lifecycle.

* test(amundsen): expect approved service status

* Fix lifecycle-stage regressions in shared entity status

- Keep main's starting stages: entities start Unprocessed unless their type
  derives one (glossary terms and metrics from reviewers, ontology axioms Draft,
  system relationship types and memories Approved); keep DataProduct
  lifecycleStage instead of deprecating it.
- Record governance-bot impersonation on page, ontologyAxiom, relationshipType,
  contextMemory and AI asset schemas, so a workflow's own Set Action is not
  rejected by the stage lock it holds.
- Apply the stage rules to batched CSV import updates (workflow lock, lifecycle
  moves, keep stored stage when the row has none) and keep a blank glossary
  status instead of resetting it to Draft.
- Skip workflow definitions this server cannot read when resolving stage
  ownership instead of failing every stage change.
- Restore the in-review delete flag on Tag and TestCase.
- Seed glossary status-filter Playwright specs with their glossary excluded
  from the approval workflow, and update ITs for main's starting stages.

* chore(playwright): auto-refresh impact-map.generated.json

* Update generated TypeScript types and dereferenced schemas

* Apply the reviewer rule only to direct stage changes

- A workflow's approval task already decides who may approve (reviewers,
  owners or named candidates), so its write no longer fails the reviewer rule
  when an owner or candidate approves; direct edits and imports keep the rule.
- Load reviewers, inherited ones included, before checking an import row that
  moves an entity out of review, since import rows are matched from stored JSON
  that holds no relationship fields.

* Align tests with main's starting stages and the CSV stage lock

- ClassificationResourceIT expects a new classification to start Unprocessed
  again, as on main.
- The metric CSV-update Playwright test leaves the status cell blank: the
  fixture metric is In Review under MetricApprovalWorkflow, so a CSV row cannot
  move its stage, and a blank status keeps it.

* Test that a CSV import lets only a reviewer approve a tag in review

An import row is matched from stored JSON, which holds no reviewers, so the
reviewer rule only works on import because applyEntityStatusRulesForImport
reloads them. The test imports a classification CSV as admin that approves two
tags in review: the one another user reviews fails with "is not a reviewer"
and stays In Review, and the one admin reviews becomes Approved. Without the
reload, the non-reviewer's row goes through.

* test(glossary): isolate status fixtures

Exclude marked glossary fixtures from automatic approval during test
bootstrap. Status and search tests can update stages through the API
without waiting for the shared workflow event queue.

* refactor: move status initialization before flush

Keep status assignment before persistence while avoiding overlapping
creation hooks with #34025 in the merge queue.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
Co-authored-by: Ram Narayan Balaji <ramnarayanb3005@gmail.com>

* fix(glue): match external table locations with a trailing slash to their containers (#34634)

* fix(glue): match external table locations with a trailing slash to their containers

Normalize the scheme and one trailing separator in the shared lineage mixin before
the exact fullPath lookup, and skip the table search when no container matches.

* test changes

* fix(ui): core charts clean-up after the recharts migration (#34641)

* fix(ui): core charts clean-up after the recharts migration

- areaGradient fades rgb() / rgba() series colours too (withAlpha). It ran
  every colour through hexToRgba, so an rgba colour came out as a wrong,
  greenish fill.
- Chart tooltips are appended to <body>, so one left open on a kept-alive
  route that goes hidden floated over the next page. EChart now hides its
  tooltip on hideChartTooltips(), and KeepAliveRoutes fires it whenever the
  active route changes. hideChartTooltips is also exported from the root
  entry, so the shell does not load echarts to call it.
- Docs: zoom 'auto' follows zoomVisiblePoints; valueFormatter does not apply
  to tooltip.render.
- CustomBarChart / CustomAreaChart use tw:w-full.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(playwright): retry the AI-mode custom property select picks

chooseSelectOption opened the react-aria listbox once and clicked the
option. Playwright's actionability scroll closes the non-modal popover,
so the option detached mid-click and the Date format pick timed out.
Route it through selectOptionWithRetry, which centres the trigger and
reopens the listbox if it closes.

* style(ui-core): prettier-format the charts barrel

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(ingestion): escape backticks in Databricks legacy column-type DESCRIBE (#34518)

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>

* chore(deps): bump dompurify in /openmetadata-ui/src/main/resources/ui (#34327)

Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.13 to 3.4.16.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.4.13...3.4.16)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.16
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fixes #26311: Trust the SSO login landing page on the configured callback host (#33978)

* Fixes #26311: trust the request origin for the SSO /auth/callback redirect

SSO login has been unusable since 2.0.0 on any deployment whose
oidcConfiguration.serverUrl is not byte-identical to the browser's origin
- the normal case behind an ingress, where serverUrl is often left at its
http://localhost:8585 default.

The frontend asks to land on <its own origin>/auth/callback, but the
redirect allow-list added in 2.0.0 only ever derived its /auth/callback
entry from serverUrl. Exact scheme+host+port+path matching then rejected
the login with "Redirect URI must exactly match a trusted redirect URI"
and a 400 that named no candidate. There was no config-only remedy: a
root-relative redirect canonicalizes against the same stale config origin.

Derive the origin the client actually reached the deployment on and trust
it for OpenMetadata's own two fixed callback paths. X-Forwarded-Proto and
X-Forwarded-Host are read first (Jetty's scheme/host only reflect the
external hop when useForwardedHeaders is on, which is off by default and
not surfaced by the shipped Docker or Helm configs), falling back to the
connector's own view for a direct deployment.

The derived origin is client-influenced, so it is only ever concatenated
with /auth/callback and /mcp/callback, the scheme is restricted to
http/https, and an origin carrying user-info, a path, a query or a
fragment is discarded. A forged X-Forwarded-Host therefore buys nothing:
the token rides the response back to whoever made the request, so the
forger can only redirect themselves. Any other target still has to match a
configured entry. An unparseable header is dropped rather than aborting
validation of a legitimately configured candidate.

Rejections now log the trusted candidate set at WARN, which the
wire-facing 400 deliberately omits.

Also corrects the callback documentation that sent reporters down the
wrong path in the first place: the SSO settings placeholders advertised
/auth/callback while the field's own default is /callback, and
conf/openmetadata.yaml pointed at /api/v1/callback, which is not a route
at all. The IdP redirect_uri is /callback (the server endpoint that
performs the code exchange); /auth/callback is the UI route the server
redirects to afterwards and must not be registered with the IdP. The
two same-named responseType and callbackUrl fields are now documented as
public-client vs confidential-client, including that
GET /api/v1/system/config/auth reports the top-level one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Harden the request-origin derivation behind proxies

Two defects in the origin lookup added by the previous commit, both found
by asking whether X-Forwarded-Host can actually be relied on. It cannot:
the repository ships no nginx config, Helm chart or ingress template, so
the proxy layer is entirely the operator's choice.

Read the closest hop, not the furthest. These headers are normally
replaced rather than appended, but a proxy that appends leaves the
caller's own value left-most - so reading from the left let a caller
sending "X-Forwarded-Host: evil.example.com, om.example.org" choose the
derived origin. Each further hop appends to the right, so the right-most
value is the one written by the most trusted proxy. The previous comment
justified the left-most read as "the original client hop", which is the
correct rule for X-Forwarded-For and the opposite of what is wanted here.

Resolve scheme and authority independently. AWS ALB sets
X-Forwarded-Proto and X-Forwarded-Port but never X-Forwarded-Host, passing
the client's Host through untouched; hand-rolled nginx behaves the same
way, since X-Forwarded-Host there is opt-in. Reading the scheme only
alongside a forwarded host resolved those deployments to the internal
http hop and rejected their own login - the very bug this was meant to
fix. Host is now also preferred over the connector's view, because
getServerPort() reports the local listener when the header carries no
explicit port and would otherwise graft :8585 onto a public origin.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Add additionalCallbackUrls and sp.additionalAcsUrls for multi-hostname SSO (#28870)

A deployment reachable at more than one hostname (load balancer, DR site)
needs the IdP-facing callback to follow the host the browser arrived on.
Add the two config lists that carry the extra registered URLs:

- authenticationConfiguration.additionalCallbackUrls: extra OIDC redirect_uri
  values. Top-level rather than inside oidcConfiguration because
  ConfigResource strips oidcConfiguration from the browser-facing auth
  config, and public clients build redirect_uri in the browser.
- samlConfiguration.sp.additionalAcsUrls: extra Assertion Consumer Service
  URLs. sp.entityId stays single-valued.

Both default to [], so single-hostname deployments are unaffected. Wire the
env vars in conf/openmetadata.yaml and conf/openmetadata-h2-test.yaml (the
latter also gains the missing additionalTrustedRedirectUris), and regenerate
the TypeScript types and the dereferenced UI schema.

* Select a callback URL by request origin in SecurityUtil (#28870)

Add SecurityUtil.sameOriginCallbackUrl(requestOrigin, primary, additional):
the configured additional callback URL on the origin the request arrived
on, or null to keep the primary. An entry qualifies only when it shares
the primary's path, so selection changes the host the identity provider
returns to but never the endpoint, and it is returned exactly as
configured because the token request must repeat redirect_uri byte for
byte. The request origin is client-influenced, so a forged host can only
pick a URL the operator already registered; a malformed entry is skipped
rather than failing the login.

Extract sameOrigin(URI, URI) out of sameRedirect so both comparisons share
one scheme/host/port normalization.

* Carry the IdP redirect URI on the pending login session (#28870)

The callback that completes a login arrives as a separate request, so the
redirect_uri sent to the identity provider has to be remembered on the
pending session for the token request to repeat it exactly.

- UserSession gains idpRedirectUri. It is written only when set, and the
  class now ignores unknown properties: JsonUtils reads with a mapper that
  rejects them, so without both an older pod reading a newer pod's session
  mid rolling upgrade would fail. Sessions are a JSON blob in both stores,
  so no migration is needed.
- SessionService.createPendingSession takes a PendingLoginState record
  instead of seven positional arguments.

No behavior change yet: nothing sets idpRedirectUri until the OIDC handler
starts selecting callback URLs.

* Send the OIDC callback URL registered for the request host (#28870)

A deployment answering on several hostnames sent every identity provider
the single oidcConfiguration.callbackUrl, so logins from any other host
failed at the IdP.

- Web logins now send the additionalCallbackUrls entry registered for the
  host the request arrived on, falling back to the primary. The choice is
  recorded on the pending session and the token exchange reuses it, so the
  authorization and token requests carry the same redirect_uri even when
  the callback comes back through a different ingress.
- MCP logins keep the primary: that flow is anchored to serverUrl end to
  end, so it is left exactly as it was.
- The signin and logout redirects stay on the request host when it has a
  registered callback URL, instead of sending a secondary site's users to
  serverUrl. An unregistered or forged host still gets serverUrl.

With no additional callback URLs configured, nothing reads the request's
origin and every redirect is unchanged.

* Use the per-host callback URL for browser-side OIDC logins (#28870)

Public clients build the redirect_uri in the browser, so the server-side
selection alone left them sending the primary callback URL from every host.

- GET /api/v1/system/config/auth now returns additionalCallbackUrls.
- getRedirectUri picks the additional callback URL registered for the host
  the page is served from, with the server's rules: same path as the
  primary, the primary wins on its own origin, and the configured string
  is returned untouched. Login, the auth config, and the SSO test-login
  popup all use it.
- The SSO settings form gets an editable "Additional Callback URLs" list
  for OIDC providers; SAML and LDAP drop it with the other OIDC-only
  fields. The SAML additionalAcsUrls field stays hidden until the SAML
  side supports it.

New strings are translated for every locale.

* Reject additional callback URLs that login could never select (#28870)

Login skips an additional callback URL that is malformed or points at a
different endpoint, so a typo there only shows up as a login that quietly
keeps the primary. Validate the list when the SSO configuration is saved:
each entry must be an absolute http(s) URL, without user-info or a
fragment, on the same path as the callback URL the identity provider is
actually sent (the OIDC one for confidential clients, the top-level one
for public clients).

The rule lives in SecurityUtil.isAlternativeCallbackUrl, shared with the
runtime selection, so the two cannot drift apart. The live identity
provider probes still use only the primary: a disaster-recovery host is
often unreachable from the primary site when the config is saved.

* Send the SAML ACS registered for the request host (#28870)

The SAML side had one static Saml2Settings, so every AuthnRequest carried
the single sp.acs and logins from any other hostname failed at the IdP.

- SamlSettingsHolder builds one Saml2Settings per configured ACS (sp.acs
  plus sp.additionalAcsUrls) and publishes them in a single snapshot, so
  a reload never mixes old and new entries. Entries are keyed by
  configured URL, never by request input. The entityId stays the same
  across all of them.
- Login picks the additional ACS registered for the request host, using
  the same rule as OIDC, and records it on the pending session. The ACS
  callback validates against that recorded ACS instead of re-deriving it
  from headers. MCP logins keep the primary.
- The ACS callback now checks Destination and Recipient against the ACS
  URL the login sent, via onelogin's SamlMessageFactory hook, rather than
  the URL the container saw. In strict mode behind a load balancer that
  URL is the internal hop, so the check failed even with a single ACS.
  That pre-existing bug is fixed here too.
- The redirect allow-list trusts /auth/callback on the host of every
  configured ACS, and logs the trusted set when it rejects a redirect.

Also removes the dead relayState field and setSaml2Settings.

* List every configured ACS in the SAML SP metadata (#28870)

The SP metadata advertised only sp.acs, so an identity provider that
imports it would reject AuthnRequests from the other hostnames. It now
lists each additional ACS as another AssertionConsumerService, all under
the one entityID. Per-host metadata would be wrong here: IdPs key the SP
on entityID, so two documents with the same entityID conflict.

onelogin's template holds a single ACS and runs postProcessXml inside the
Metadata constructors, before a subclass could hold the extra URLs. So the
endpoints are added to the rendered document and the result is signed
afterwards, which keeps them covered by the signature. With no additional
ACS URLs the servlet serves exactly what getSPMetadata() returned before,
so existing IdP registrations see no change.

* Validate and expose the SAML additional ACS URLs (#28870)

- SamlValidator rejects an additional ACS URL that login could never
  select: it must be an absolute http(s) URL on the same path as sp.acs,
  the same rule the OIDC list is held to. At most 20 are accepted, since
  each one gets its own Saml2Settings. The error names the entry and is
  reported against sp.additionalAcsUrls.
- The SSO settings form shows an editable "Additional ACS URLs" list in
  the Service Provider section. The primary ACS is still auto-filled from
  the admin's origin, so the help text explains these are for the other
  hostnames and must also be registered with the identity provider.

New strings are translated for every locale.

* Cover the multi-host SSO paths the unit tests missed (#28870)

Changed-line coverage was 83.9%; these tests bring it to 98.8%.

- The SAML ACS callback validates with the ACS recorded at login and
  installs the destination-checking message factory. No unit test reached
  that part of handleCallback before.
- SamlSettingsHolder: initialization from the live auth config, the
  uninitialized guard, and the SP-key, keystore and missing-key-material
  branches of the signing setup.
- The SP metadata servlet over real HTTP: every ACS under one entityID.
- Logout from a registered secondary host stays on that host.
- The additional-URL checks run inside the SAML validator's entry point
  and the base authentication-field validation.
- SecurityUtil: an unparseable primary, and a hostless trusted entry.

The two token-exchange boundary tests now report the callback's status
and body when they fail.

* Trust the SSO landing page only on configured callback hosts (#26311, #28870)

With #26311 and #28870 in one change, the OIDC and SAML redirect
allow-lists no longer have a reason to follow different rules.

The OIDC allow-list trusted /auth/callback on whatever origin the request
claimed via X-Forwarded-Host or Host. A forged host could make a login
land on itself: SsoRedirectBoundaryTest encoded exactly that ("a forged
host can make the login land on itself"). It also left #26311 unfixed
for any deployment whose request did not happen to name its public
origin.

The landing page is now trusted on the host of every configured OIDC
callback URL: the primary oidcConfiguration.callbackUrl and each
additionalCallbackUrls entry. Those have to be right for login to work at
all, since the identity provider rejects any other redirect_uri, so they
name the deployment's real hosts even when serverUrl is left at its
localhost default. SAML already applied this rule to its configured ACS
URLs; both now share SecurityUtil.originOf. Nothing on the redirect path
reads the request any more, so the parameter #26311 threaded through
requireRedirectUri and sendRedirectWithToken is gone again.

ownUrl, used for the /signin and /logout redirects, now copies the origin
from the configured callback URL that matched rather than from the
headers that selected it. That resolves the three CodeQL
java/unvalidated-url-redirection alerts on it.

requestOrigin keeps its one legitimate job: choosing among URLs the
operator registered with the identity provider, where a forged host can
select nothing that was not already configured.

* Update generated TypeScript types and dereferenced schemas

* Keep signin and logout on the primary callback host (#26311)

ownUrl kept the request's host only when an *additional* callback URL
matched it, because sameOriginCallbackUrl returns null on the primary's
own origin. A request on the primary callback host therefore always got
serverUrl. In the #26311 setup this PR targets - serverUrl left at
http://localhost:8585, oidcConfiguration.callbackUrl on the real host -
login now worked, but logout and the missing-pending-session and
silent-auth fallbacks still sent the browser to localhost:8585.

SecurityUtil.registeredCallbackUrl now returns the configured callback
URL on the request's host, primary or additional. ownUrl builds the
redirect from that URL's base: the callback URL minus its trailing
/callback. The suggested fix rebuilt it from the origin instead, but
these redirects used serverUrl before, and serverUrl carries a base path
that an origin would drop (https://host/openmetadata/callback must give
https://host/openmetadata/logout). A callback URL that is not the
/callback servlet's keeps serverUrl. The request origin still only
selects among configured URLs, so an unregistered host keeps serverUrl.

Reported by gitar-bot on #33978.

* Drop multi-hostname SSO callback URLs (#28870); keep the #26311 fix

Review on #33978: multi-hostname/DR deployments are not a supported use
case ("this is not a use-case. Lets not add edge-cases into the code").
This removes #28870's work entirely - the additionalCallbackUrls and
sp.additionalAcsUrls settings, their generated types, form fields and
translations, the per-ACS SAML settings and SP metadata, the recorded IdP
redirect URI on the pending session, and the save-time validation - and
leaves this PR as the #26311 fix only.

Without additional hostnames nothing needs the request's host, so the
#26311 fix no longer reads the request at all:

- /auth/callback is also trusted on the host of the configured OIDC
  callback URL. That URL has to be right for login to work - the identity
  provider rejects any other redirect_uri - so it names the deployment's
  real host even when serverUrl is left at its localhost default. No
  forwarded or Host header can add a trusted target; requestOrigin and
  its X-Forwarded parsing are gone.
- Logout and the two /signin fallbacks are built from the callback URL's
  base (the URL minus its trailing /callback), so they no longer bounce
  the user to a stale serverUrl. A base path survives; a callback URL that
  is not the /callback servlet's keeps serverUrl.
- A rejected redirect logs the trusted targets at WARN.
- The callback documentation fixes stay: the SSO form placeholders and
  conf/openmetadata.yaml now point at /callback, not /auth/callback or
  the non-existent /api/v1/callback.

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Block new raw SVG asset debt via pre-commit guard (#34391)

* Block new raw SVG asset debt via pre-commit guard

Icons must come from @openmetadata/ui-core-components/icons, not raw SVGs
under src/assets/svg/. ESLint can't catch new .svg files and the import
rule can't become an error (~500 existing violations), so add a git-diff
guard mirroring tw-deprecation-guard.js that hard-fails only on NEW debt:
a newly added assets/svg .svg file or a newly added import from assets/svg.
Existing usage is untouched. Also drop the redundant @untitledui/icons
restriction from no-restricted-imports.

* Fix svg-guard: anchor pathspec to repo root, normalize moved imports

- newSvgFiles used a CWD-relative pathspec, so the new-.svg check silently
  no-op'd when run from the UI directory (only the repo-root pre-commit hook
  worked). Anchor with ':(top)'.
- Import comparison keyed on the raw specifier, so moving a file to a
  different folder depth rewrote '../assets/svg/x' to '../../assets/svg/x'
  and flagged a pure refactor as new debt. Compare by the stable
  'assets/svg/...' suffix via svgKey().

* Enforce raw-SVG import ban via ESLint error + suppressions baseline

Replace the pre-commit git-diff guard with a pure-ESLint approach: flip the
assets/svg no-restricted-imports rule from warn to error and baseline the 66
existing offenders into eslint-suppressions.json (the native bulk-suppressions
mechanism already used for the playwright rules). New raw-SVG imports now fail
ui-checkstyle (lint_src -> final gate), blocking merge, while commits stay
unblocked (no eslint pre-commit hook). Drop svg-deprecation-guard.js and its
pre-commit entry.

* Switch raw-SVG enforcement to the antd strategy (git-diff guard)

Fold the raw-SVG checks into tw-deprecation-guard.js so they run in the exact
same places as the antd/less guard: the tw-deprecation-guard pre-commit hook
and the tw_guard ui-checkstyle step (no new workflow wiring). A newly added
assets/svg .svg file or a new import from assets/svg now blocks both commit and
merge, matching how new antd debt behaves. Revert the ESLint error +
suppressions approach (rule back to warn as an editor nudge; suppressions
baseline removed). Add .svg to the hook's file filter, pipe git-show stderr to
silence the harmless new-file 'fatal' line, and cover the new logic with tests.

* Remove the global raw-SVG ESLint rule for antd-strategy parity

antd has no global no-restricted-imports entry — it's enforced solely by
tw-deprecation-guard.js. The SVG warn was a leftover from the ESLint approach
and did nothing but add an editor squiggle. Drop it so raw-SVG enforcement
lives entirely in the guard, exactly like antd.

* test gaurd

* reverted testing changes

* test(e2e): connect to Redshift with sslMode require (#34630)

The e2e Redshift cluster now rejects non-SSL connections and sslMode
defaults to disable, so set sslMode: require in every CLI e2e Redshift
config and select it in the Playwright Redshift connection form.

* Fix MCP search tool descriptions: search_metadata is keyword-only, semantic_search returns tables not columns (#34628)

* fix(ui): keep full breadcrumb when opening an asset from an Assets tab card (#34621)

* fix(ui): keep full breadcrumb when opening an asset from an Assets tab card

ExploreSearchCard precomputed the breadcrumb for the destination page and
passed it via router state, but computed parents-only and then sliced off the
last parent. The asset detail header renders that state verbatim without
re-appending the entity name, so arriving via an asset card showed only
service / database (schema and the asset name were dropped). Direct navigation
was unaffected because it rebuilds the trail from the fetched entity.

Compute the state breadcrumb with includeCurrent=true and stop slicing, so the
header receives the complete service > database > schema > table trail,
matching a direct visit. breadcrumbData[0] stays the service crumb, so the
AI-shell sidebar origin logic is unchanged.

* chore(playwright): auto-refresh impact-map.generated.json

* test(playwright): assert collapsed breadcrumb correctly after asset-card nav

The DataAssetsHeader breadcrumb auto-collapses: the schema ancestor moves into
the overflow menu and the current crumb (aria-current) renders the entity name,
not the displayName. Assert the schema via the overflow-aware helper and the
current crumb via aria-current + entity name.

* lint fix

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix(ui): reliably refresh teams list after create (fixes flaky Teams breadcrumb E2E) (#34619)

* fix(ui): reliably refresh teams list after create (nonce trigger)

The all-teams advanced fetch (parentTeam=...&fields=...) rode a boolean
flag: fetchAllTeamsBasicDetails set it true, an effect fired the fetch on
the flip, and the fetch reset it to false. When a refresh was requested
while a prior advanced fetch was still in flight (slow under load), the
boolean was already true, so the write was a no-op, the effect never
re-ran, and the refresh was silently dropped.

Split the single boolean into a monotonic nonce (trigger) and a dedicated
loading flag. Each basic-fetch completion bumps the nonce, so the effect
always re-fires even while a prior fetch is in flight. The loading flag
keeps driving the hierarchy count skeletons.

Fixes the flaky Teams breadcrumb Playwright test (the awaited teams-list
GET was never sent) and the underlying bug where creating a team while
counts were still loading left the new row's counts stale.

* fix(ui): guard overlapping team fetches and drop duplicate nav fetch

Address review feedback on the nonce change:

- Overlapping full refreshes: the nonce lets a newer advanced fetch start
  before an older one resolves. Tag each full refresh (updateChildNode=false)
  with a request id and only let the latest apply its list and clear the
  loading flag, so a slow pre-create response can no longer overwrite the
  list with stale data or hide the count skeletons early. Expand calls merge
  into a specific subtree and skip the request-id bump, so they don't
  invalidate each other.
- Duplicate fetch on navigation: keying the effect on both the nonce and fqn
  fired the advanced GET twice per navigation (once from fqn, once from the
  following nonce bump). Trigger on the nonce alone and read the latest fqn
  through a ref.

* refactor(ui): extract toListTeam helper to clear cyclomatic-complexity

fetchAllTeamsAdvancedDetails exceeded the complexity gate (11 > 10) after
the staleness guard was added. Extract the team-list row mapping (shared
verbatim with fetchAllTeamsBasicDetails) into a module-level toListTeam
helper, removing two decision points from the function and de-duplicating
the mapping.

* fix(ui): clear TeamsPage lint error and exhaustive-deps warnings

- cyclomatic-complexity (error): the previous helper only touched the map
  callback (a separate function), so fetchAllTeamsAdvancedDetails stayed at
  11. Extract the result-application branch into applyAllTeamsData, dropping
  two decision points from the function (now 9).
- exhaustive-deps (warnings): add the stable t to the two useCallback dep
  arrays that use it; annotate the three trigger effects with justified
  eslint-disable-next-line (their fetchers are non-memoized triggers, not
  reactive inputs — adding them would re-run every render or duplicate the
  navigation fetch).

* fix bots spec

* fix(ui): shorten eslint-disable justifications to satisfy max-len

* lint fix

* fix(ui): don't show whole-table skeletons when expanding a team row

The nonce refactor set isFetchAllTeamAdvancedDetails(true) at the start of
every advanced fetch, including expand (updateChildNode=true). That flag
drives the per-column skeletons across all rows in TeamHierarchy, so
expanding one row blanked the whole table. Restore the original behavior:
set the flag only for full refreshes (setIsFetchAllTeamAdvancedDetails(
isFullRefresh)); expand leaves it off.

* fix(ui): never let an expand toggle the full-refresh skeleton flag

setIsFetchAllTeamAdvancedDetails(isFullRefresh) still wrote false on expand,
and the finally cleared it too (isLatestFullRefresh is always true for
expands) — so expanding a row while a full refresh is mid-flight hid the
count skeletons early and showed stale values. Guard both the set and the
clear on full-refresh-only: set behind if (isFullRefresh); clear behind a
new isActiveFullRefresh() (isFullRefresh && latest). The && lives in a
nested arrow so cyclomatic-complexity stays at 10.

* test(ui): cover the advanced-fetch stale-response race in TeamsPage

Overlap two full refreshes (mount + showDeleted toggle), resolve the newer
one first and the older (stale) one last, and assert the stale response does
not overwrite the list. Verified it fails without the request-id guard in
fetchAllTeamsAdvancedDetails. Extends the TeamDetailsV1 mock to render
childTeams names so the applied list is observable.

* fix(ui): mark fire-and-forget advanced fetch with void (no-floating-promises)

* refactor(ui): remove all eslint-disable comments from TeamsPage

Replace the three disable directives with real fixes:

- Move updateTeamsHierarchy to module scope (pure, no closure); convert
  applyAllTeamsData, fetchAllTeamsAdvancedDetails, fetchAllTeamsBasicDetails,
  getParentTeam, and fetchTeamBasicDetails to useCallback with honest dep
  arrays so their identities are stable.
- fetchAllTeamsBasicDetails now chains the advanced fetch directly (void
  call) instead of bumping a nonce through an effect — removes the nonce
  state, fqnRef, and the two associated effects entirely.
- The team-list effect depends on [fqn, hasViewPermission,
  fetchAllTeamsBasicDetails]: fqn/permission changes trigger navigation
  refetches; fetchAllTeamsBasicDetails identity changes when showDeletedTeam
  flips (it closes over it), so the deleted-toggle refetch works without a
  dedicated effect.
- The team-details effect now lists all deps honestly: [hasViewPermission,
  fqn, fetchTeamBasicDetails, loadAdvancedDetails].
- applyAllTeamsData uses a functional setChildTeams updater on the expand
  path so it doesn't close over childTeams and can stay stable.
- createNewTeam explicitly refreshes the list after a create (void
  fetchAllTeamsBasicDetails) since navigation/toggle no longer cover it.

No behaviour change. 13/13 tests pass. Zero eslint-disable lines remain.

* fix(ui): guard fetchAllTeamsBasicDetails against stale navigation responses

A basic fetch from a previous fqn could resolve late, overwrite the list
with the old parent's teams, and chain an advanced fetch that bumps
advancedFetchIdRef — causing the in-flight advanced fetch for the current
fqn to be dropped as superseded. Add basicFetchIdRef alongside
advancedFetchIdRef and drop the response (and the chained advanced call)
if a newer basic fetch has already started.

* lint fix

* feat(ui): redesign glossary term synonyms widget with core components (#34370)

* feat(ui): redesign glossary term synonyms widget with core components

Replace the Ant Design Select/Button/icons in the synonyms widget with
ui-core-components and match the new design:

- Edit mode: chip input (Enter or comma adds, Backspace removes the last
  one) with a key hint, plus a Cancel/Save footer showing "Unsaved changes".
- Case-insensitive duplicates are rejected with an inline error and the
  matching chip highlighted.
- View mode shows up to six synonyms with a "+N More" / "Show Less" toggle.

The editor lives in its own component to keep the widget under the
cyclomatic-complexity limit; the duplicate check is a tested pure util.
Playwright selectors updated for the new markup.

* fix(ui): use BadgeWithButton chips and core tooltip for glossary synonyms

- Edit mode renders each synonym as a core BadgeWithButton instead of
  Tag/TagGroup. Core Tag's remove icon ignores its size classes and its
  label cannot be styled, which needed selectors into core internals.
  Duplicates use color="error"; remove buttons get an accessible name.
- Long synonyms truncate at max-w-24 so two fit per row, in both edit
  and view mode. SynonymBadge takes an optional className so the narrower
  width applies to this widget only.
- SynonymBadge shows the full synonym in the core Tooltip instead of the
  browser title attribute.
- Playwright and unit tests target remove-synonym-<name> buttons.

* fix(ui): keep typed synonym when saving without pressing Enter

Typed text was dropped if the user clicked Save before pressing Enter or
comma. Commit it on input blur, as the legacy antd tags input did; Save
blurs the input first, so the text is saved. Duplicates stay in the
input with the error and are not added.

* fix(ui): ignore IME Enter and show tooltips on synonym editor chips

- Skip key handling while an IME composition is active (isComposing, or
  keyCode 229 in Safari), so Enter that confirms a ja/zh/ko candidate no
  longer adds a half-composed synonym. Same guard as FeedEditor.
- Pass tooltip={synonym} to the editor chips so truncated synonyms can be
  read in full. The label is block-level so max-w-24 still applies inside
  the tooltip trigger.

* refactor(ui): edit glossary synonyms with core Autocomplete

Address review on the synonyms widget:

- Edit with core Autocomplete (allowsCreation, hideDropdown, multiple),
  the same field the create form uses, and remove the hand-rolled
  GlossaryTermSynonymsEditor. Case-insensitive duplicates are rejected in
  onItemInserted and flagged while typing; chips render via renderTag.
  Comma-to-add is dropped.
- Add a footer prop to WidgetCard so Save/Cancel render in Card.Footer
  next to Card.Content instead of inside it.
- Use Box for layout, reuse message.entity-already-exists and
  message.synonym-placeholder, and share one chip width constant.
- Move MAX_VISIBLE_SYNONYMS to Glossary.contant.ts and inline the
  duplicate check.
- SynonymBadge only opens its tooltip when the text is truncated, the
  IME guard drops keyCode 229, and the list collapses on save/cancel.

* test(playwright): fix ObservabilityAlerts permissions-test flakes (409 + load wait) (#34651)

Two independent failures of "Alert operations for a user with and without
permissions":

- beforeAll 409 "Entity already exists": the ingestion pipeline name was a
  module-level constant, so a second beforeAll in the same worker
  (fullyParallel) re-posted the same name into the shared pipelineService.
  PipelineClass.delete() also never removed the ingestion pipeline, which is
  a child of the service, not the pipeline. Name it per beforeAll and
  hard-delete it in PipelineClass.delete().

- visitObservabilityAlertPage timeout: waitForURL defaulted to waitUntil
  'load', which also waits on the third-party scarf.sh pixel in index.html.
  When that request hung in CI, load never fired although the page was on
  /observability/alerts and fully rendered. Wait for 'commit' instead.

* fix(ui): white tab surface on test case page and pad the incident list (#34650)

- Test case details page: put the tab panel on a white rounded surface
  (tw:bg-surface) in classic mode, so tab content no longer sits on the
  grey page background. AI mode keeps its own surface.
- TaskListV1: give the list its own padding (tw:p-5) instead of the
  activity-feed-tab-padding class, whose stylesheet is not loaded on the
  test case Incident tab, leaving the incident cards flush to the edges.

* fix(ui): align AI-mode sidebar icon colours (inbox, expand/collapse) (#34642)

* fix(ui): align AI-mode sidebar icon glyph and colour tokens

Three icon inconsistencies in the AI-shell sidebar, all scoped to AI mode
(the classic left nav renders identically before and after):

- Expand/collapse rail buttons and the inbox launcher used
  `tw:text-fg-quaternary`, which resolves to gray-400, while every nav and
  list icon beside them uses `--tw-text-color-quaternary` (gray-500). That
  one-step-paler token is why they read washed out next to the globe. The
  class is dropped so each icon inherits its button colour, and the two
  `__expand-btn` rules move from `@ask-text-quaternary` to `@ask-icon-rest`
  so they also track the nav icons in dark mode (gray-600 there, where raw
  quaternary would flip to gray-400).

- `ontology-active.svg` / `ontology-default.svg` were the old
  circles-and-lines knowledge-graph glyph and are unreferenced in this repo.
  Redrawn as the `LayersThree01` path so the Ontology Studio entry cannot
  diverge from Frameworks in the selected state. The active variant
  previously hardcoded `stroke="#1849A9"`, which would have matched in light
  mode but not dark, where `@ask-brand-active` resolves to brand-300;
  `currentColor` inherits whatever the sibling inherits, in every theme.

- `OntologyStudioIcon` drops its `createIconWithStroke(..., 1.2)` wrapper.
  The restroke never applied: core-ui's `LayersThree01` sets
  `strokeWidth={1.3}` on its `<path>`, and a presentation attribute on the
  element beats the value inherited from the `<svg>`. Removing it deletes a
  comment claiming a weight the icon has never had; rendering is unchanged
  on both the AI sub-nav and the classic left nav.

* refactor(ui): drop the OntologyStudioIcon alias, name LayersThree01 directly

#32324 introduced `OntologyStudioIcon` for one reason: to restroke
`@untitledui`'s LayersThree01 from its shipped weight of 2 down to 1.2 in a
single place, so the classic sidebar and the app-mode sub-nav could not drift
apart. #34141 then migrated icons to core-ui, whose LayersThree01 sets
`strokeWidth={1.3}` on its own `<path>` — a presentation attribute that beats
the value inherited from the `<svg>`. The restroke has been inert ever since,
leaving a pass-through alias that buys nothing.

Two repo rules say to name the component at the call site instead: "No
wrappers around core-ui components — a wrapper that only passes props through
is a maintenance liability: it hides which core component is in use", and
"Import icons from @openmetadata/ui-core-components/icons". The indirection
also hid the thing worth checking: you could not tell from the nav entry that
the glyph was LayersThree01, which is what makes it match the other
LayersThree01 entries beside it.

Verified against the running app before and after — same path data, same
stroke 1.3, same rgb(24, 73, 169) when selected and rgb(113, 118, 128) at
rest, on both the AI sub-nav and the classic left nav.

* Revert the Ontology Studio icon changes — they belong in Collate

The sub-nav where the icon looked wrong (Audit Hub, Automations, AI Assets →
Frameworks) is defined in Collate's governance module, not here. OSS's own
Ontology Studio entry already renders correctly: verified against the running
app, it draws LayersThree01 at stroke 1.3, rgb(113, 118, 128) at rest and
rgb(24, 73, 169) when selected — the same glyph and tint Frameworks gets.

So this repo needed nothing, and three of the edits were speculative:

- ontology-active.svg / ontology-default.svg were redrawn as the layers glyph
  on the theory that Collate wired those assets. Nothing in this repo
  references either file, so the rewrite had no verified consumer.
- Dropping the OntologyStudioIcon alias would have broken Collate's build if
  its governance module imports the symbol.

Restored to origin/main. What remains is the icon-colour work, which is
AI-mode-only and was confirmed in the browser.

The dead restroke stands as a separate finding: #32324 added
createIconWithStroke(LayersThree01, 1.2), and #34141's move to core-ui — whose
LayersThree01 sets strokeWidth={1.3} on its own path — made it inert. Worth a
follow-up, but not on the critical path for this fix.

---------

Co-authored-by: Shrabanti Paul <shrabantipaul@Shrabantis-MacBook-Pro.local>

* fix(ui): close an open FilterSelect when its trigger is pressed again (#34667)

React Aria's MenuTrigger only opens on a mouse press start; closing relies
on a modal overlay. FilterSelect is non-modal and owns dismissal, but its
outside-pointerdown listener skipped the trigger, so pressing the trigger
of an open filter left it open. Close on a trigger-button press and stop
the event so React Aria does not reopen it in the same gesture. Chip
remove buttons in the chips field still keep the popover open.

* feat(ui): show human-readable version and release date in What's New alert and help menu (#34654)

* feat(ui): show human-readable version and release date in What's New alert and help dropdown

Replaces the raw build-stamp version string (e.g. 1.13.202609250000) with a
simplified major.minor version and a derived release date parsed from the 12-digit
build timestamp. Both the What's New alert left panel and the NavBar help-menu
version item are updated; shared parsing helpers are added to Version.ts with unit
tests, and the `label.released` i18n key is added and translated across all 20 locales.

* fix(ui): restore WhatsNew alert visibility guard and remove temp debug override

* lint fix

* fix(ui): simplify version by dropping build stamp only, keep patch segments

* chore(ui): fail lint on unused eslint-disable directives (#34665)

Remove the blanket /* eslint-disable */ from reactColumnResize.mock.js.
It suppresses nothing since the config turned off no-require-imports for
src/test/unit/mocks/**, and a blanket directive would silently hide any
problem added to the file later.

Set linterOptions.reportUnusedDisableDirectives to 'error' so a directive
left stale by a fix fails lint instead of warning.

* Add local impact-mapped Playwright runner with PR results block (#34544)

* Add local impact-mapped Playwright runner with PR results block

PR checks no longer run Playwright; the merge queue runs the full suite.
plan_local_playwright.py feeds the branch diff to select_playwright_tests.py
so developers get the same impact-mapped spec list CI computes, a command to
run it, and a results block they can upsert into the PR description.

* Run local Playwright planner through Make targets

Match how the root Makefile runs repo Python scripts (python3 <path>, flags via
ARGS) instead of yarn scripts reaching up five directories.

* Default PLAYWRIGHT_IS_OSS for local runs and explain a missing base ref

Local validation against a real stack showed auth.setup.ts failing on the
Collate-only ingestionRunners API because every CI lane sets
PLAYWRIGHT_IS_OSS=true and the local runner did not. An unknown --base ref
now exits with a fetch hint instead of a traceback.

* Fixes #34557: Add a Search Settings toggle to turn column indexing off (#34571)

* Fixes #34557: Add a Search Settings toggle to turn column indexing off

Adds globalSettings.enableColumnIndexing (default true) and a toggle in
Settings > Preferences > Search Settings. Turning it off stops writing
column docs, both live and during reindex, and deletes
column_search_index. Turning it on creates the index if it is missing.

While it is off, the missing index cannot fail other work:
- Startup, CLI and reindex skip it.
- Table child fan-out and the Explore entity-type counts leave it out.
- Column-only searches return an empty result.

Also fixes SearchRepository.deleteIndex for a canonical name that is an
alias over a rebuilt index. Elasticsearch reports the alias as existing
but rejects a delete through it, so the alias targets are resolved first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Branch the column indexing toggle on its current state

SonarCloud flagged the handler on two counts: it used its boolean
parameter to choose between two actions (S2301), and it left the
enable-path save promise floating (S9383). The toggle is controlled, so
the current setting already says which way a click goes. The handler
now branches on that, and marks the fire-and-forget save with void.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Don't report a turned-off column index as missing

With column indexing off, the system status "Search Reindex Status" step
listed tableColumn as a missing index and asked for a reindex that skips
it. Skipping it only there would let the mapping-drift check mark it
stale after a release that changes the column mapping.

SearchRepository.isIndexDisabled now holds the rule. It is applied next
to the vector-index skip in findMissingIndexes and
existingTrackedIndexes, and to the /v1/search/stats and search-index
metric counts, which walked every mapping the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Fixes #34662: stop bot bulk PUTs blanking fields the source doesn't send (#34663)

* Fixes #34662: never let a bot bulk PUT blank fields the source doesn't send

With overrideMetadata=true, an empty description or displayName and an
omitted certification overwrote stored values. tableConstraints had no
bot guard at all, so any bot PUT without constraints removed them,
override or not. Override now replaces a stored value only when the
source supplies one; constraints on dropped columns are still cleaned up.

* Move table-constraint ITs above the helpers section

* Fixes #34668: Run the app-run recovery ITs one test at a time (#34669)

* Fixes #34668: Run the app-run recovery ITs one test at a time

On MySQL the interrupt UPDATE scans apps_extension_time_series by timestamp,
so concurrent tests sharing the same small timestamps deadlocked against a
sibling test's cleanup DELETE. RdfIndexRunRecovery retries on the deadlock,
but the test asserted before the retry and saw the run still running.

* Keep the two app-run recovery ITs from running at the same time

RdfIndexRunRecoveryIT also runs in the parallel lane, next to
AppRunInterruptionIT. Both use the same small run timestamps, so the same
deadlock could happen between the two classes. Share a resource lock.

* Fixes #34636: Inbox on the standard page shell, plus Inbox and My Data dark mode (#34637)

* fix(ui): dark mode for the Inbox and My Data pages

- Activity feed message card hovered to `bg-white`, so in dark the hovered
  row turned into a white box with unreadable light text. Hover to
  `bg-surface` (white in light, raised in dark).
- My Data stat cards sat on `bg-primary`, darker than the page in dark;
  use `bg-surface` like Explore's panels. FeaturedIcon's gray/light theme
  switches to a solid gray block in dark, so keep the gray-blue tint with
  dark variants (the utility scale flips per theme).
- My Data asset list container is raised (`bg-surface`) with its divider
  on `border-secondary` in dark, matching Explore's results column.
- User avatars (ProfilePicture, core OwnerChip) were painted with inline
  light HSL that cannot follow the theme, leaving pale 92%-light bubbles on
  dark surfaces. The hue now travels as a CSS variable and classes choose
  the lightness per theme; light reproduces the original HSL exactly and
  dark draws a deep tint, light glyph and a ring in the same hue.

Light mode is pixel-identical on /inbox/activity, /inbox/tasks and
/my-data.

* fix(ui): put the Inbox on the standard PageLayout shell

The Inbox built its own shell: a PageHeader stripped of its card (no
radius, no border, a bottom rule instead) over a bg-primary Box, edge to
edge. Every other app page (Data Quality, Alerts, Connections) uses
PageLayout > PageLayout.PageHeader > PageLayout.Content, so the Inbox's
header and content backgrounds differed from them - most visibly in dark,
where bg-primary is darker than the page surface.

Use the same core PageLayout composition with an unmodified header card,
content on the page surface, and the same insets as Data Quality (8px
inside the header edge, 16px below it).

* fix(ui): keep the Inbox activity timeline line visible in dark

The rail was utility-gray-blue-100, which flips to gray-blue-900 in dark
and disappears against the page surface. Use border-primary in dark only;
light keeps its gray-blue line.

* fix(ui): Triage comment composer in dark mode

- The composer footer was bg-primary, darker than the detail panel in dark;
  it now matches the panel (bg-secondary in dark).
- Quill's placeholder is rgba(0, 0, 0, 0.6), invisible on dark; use the
  placeholder token in dark.
- Quill draws toolbar icons with a fixed #444 stroke (near-invisible on
  dark) while the @ / # text buttons took near-white text; give every
  toolbar icon one muted tone in dark.

Light mode is unchanged.

* fix(ui): keep Quill hover/active toolbar states in the dark composer

The dark muted-icon override outranked Quill's button:hover / .ql-active
rules, so toggled formats looked idle. Scope it to idle buttons only;
hovered and active buttons keep the brand highlight.

* refactor(ui): move feed Reactions to core and drop their LESS

Reactions, Emoji and Reaction were antd Button/Popover with
reactions.less, and the Inbox carried activity-feed-item.less only to
re-size those antd buttons into one row.

- Add-reaction trigger: core Button + PopoverTrigger/Popover.
- Reacted-emoji pills: core Button (22px, brand outline when the current
  user reacted) with the reactor list in a core HoverCard.
- Picker emoji: core Button with a brand tint when already reacted.

data-testids are unchanged (feed-reaction-container, add-reactions,
reaction-button, emoji-button, emoji-count, popover-content).
reactions.less and activity-feed-item.less are deleted; nothing else
used their classes.

* test(ui): target the core reactions popover in the feed helpers

The reactions picker moved from antd Popover to the core Popover, so the
helpers' .ant-popover-feed-reactions locator and rc-motion class check no
longer match. Locate it by test id and wait for react-aria's data-entering
to clear instead.

* test(ui): find reaction buttons by aria-label, not title

The core Button (react-aria) does not forward `title` to the DOM, so the
[title="<reaction>"] locators stopped matching after the Reactions moved
to core.

* Fixes #34394: Add memory lifecycle and status filtering (#34647)

* feat(memory): enforce lifecycle and disputes

* feat(memory): inherit anchor domain on create

* fix(memory): gate anchored REST reads

Entity memories about restricted assets were visible through direct REST
reads. Check ViewBasic on the anchor for non-owners.

Search still relies on domain inheritance and search RBAC; asset policies
are not evaluated per result.

* fix(memory): gate MCP pill reads by anchor

The by-name Company Context lookup omitted primaryEntity, so an anchored
memory appeared unanchored to the visibility check. Fetch the decision
fields before projecting the pill.

Query search remains governed by search RBAC and inherited domains.

* fix(memory): guard history and retain list cursors

History endpoints exposed earlier versions without checking the current
memory's visibility. Check the current memory before serving either
history endpoint.

Keep paging cursors when hidden memories are filtered from a list page
so callers can reach later visible rows.

* feat(memory): index lifecycle and retain anchors

Map supersession and dispute fields in every search locale and request
the relationship fields needed by memory docs during reindex.

Default an omitted status to Active on create. The generated model leaves
the schema default null, which broke lifecycle reads after regeneration.

* feat(vector): filter memory chunks by status

Stamp lifecycle status on chunk docs and accept it in both vector query
builders. Non-Active transitions change the fingerprint to refresh the
filter fields; existing Active memories keep their fingerprint.

* fix(memory): protect lifecycle updates

Preserve server-managed lifecycle fields on PUT so re-extraction cannot
reactivate a superseded memory or erase disputes.

Reject newly referenced memories the editor cannot read, and cache
anchor access decisions within each list page.

* style(memory): format lifecycle integration test

* fix(memory): hide anchored search hits

Search cannot evaluate an anchor's asset policy for each indexed hit.
Limit anchored Entity memories to owners and admins in lexical and vector
search; direct reads still allow asset readers.

Require an explicit unanchored marker so older documents fail closed
until reindexed. Stamp the marker on entity and chunk documents.

* fix(memory): search only active memories

Keep retired memories available through direct lifecycle and version reads while excluding them from lexical, vector, and Company Context retrieval.

* feat(memory): show lifecycle in Context Center

* fix(ontology): reject retired memory proposals

* feat(memory): filter lifecycle states in Context Center

Allow status selection alongside search, asset, author, and sort filters while keeping ordinary search Active-only.

Preserve lifecycle fields on omitted-status PUT and prevent non-Active memories from proposing glossary terms. Extend API and UI coverage for these behaviors.

* test(memory): validate lifecycle on main

Reconcile Public memory visibility and index fields after the parent PR landed. Cover retired memory behavior in Playwright and align the deleted-source glossary expectation.

Refs #34394

* fix(context-center): protect file-anchored memories

* fix(ci): align memory contracts and MF4 deps

* revert: keep ingestion dependencies unchanged

* fix(context-center): address lifecycle review

* fix(context-center): handle legacy memory status

* Fixes #34540: Support a shared lifecycle stage on entities and let active workflows own it

Every entity type whose schema declares entityStatus now gets its lifecycle
stage rules from EntityRepository instead of a schema default, so they live in
one place:

- A new entity starts in its type's stage: Draft for domains, data products,
  glossaries, articles, ontology axioms, data contracts and AI assets;
  Approved for assets that come from the data infrastructure. Metrics and
  glossary terms start Draft only when they have reviewers.
- A PUT, bulk upsert or CSV import whose request carries no stage keeps the
  stage the entity is in instead of resetting it.
- While a deployed, unsuspended governance workflow sets an entity type's
  stage, only that workflow (acting as the governance bot) may change it.
  A direct change is rejected with 403, and a create that asks for a stage the
  workflow owns starts in the type's own stage. The workflow's trigger filter
  decides which entities it owns; suspending it releases them.
- GET /v1/metadata/types/lifecycleStages lists the stages and, per entity
  type, the workflows that own its stage.
- Context memories move from their own Draft/Active/Archived status onto
  entityStatus. The 2.1.0 migration converts stored memories and their
  version history (Active becomes Approved).
- The approval-task closing, in-review delete and reviewer rules that seven
  repositories each duplicated are shared now, with per-type flags keeping
  each rule on the entity types that had it.
- A consolidated update no longer re-validates a stage change that an earlier
  version made, such as a workflow approving on the user's behalf.
- createOntologyAxiom no longer requires entityStatus, and DataProduct
  lifecycleStage is deprecated in favor of entityStatus.

BaseEntityIT checks the stage rules for every entity type; types without a
lifecycle (users, teams, test suites, ...) opt out.

* Update generated TypeScript types and dereferenced schemas

* fix(context-center): show legacy active memories

* Cover the repository lifecycle-stage rules with unit tests

The repositories' stage rules reached the active workflows through a static
EntityStatusWorkflows lookup, so no unit test could put an entity under an
owning workflow. EntityRepository now takes a StageOwnership, with the active
workflows as its default, and the create-time stage assignment and the
updater's stage check are package-private instead of being reached through
reflection.

New tests cover a create that asks for a workflow-owned stage, the workflow
creating and moving an entity in that stage, types whose stage no workflow
owns, approval and rejection by reviewers and reviewing teams, sending an
entity in review back to Draft, session consolidation, memory transitions
through the updater, and glossary terms inheriting reviewers. Line and branch
coverage of the repositories' stage code goes from 66% and 58% to 91% each.

* Let an entity type declare its own lifecycle stages

Every type with entityStatus draws its stages from one vocabulary, but a type
can now declare its own lifecycle in its repository: the stages it uses,
including stages only it has, and the moves between them. Types that declare
none keep the general lifecycle, any move between today's seven stages, so
nothing changes for them, Metric included. A stage added to the vocabulary
later is outside the general lifecycle, so only the types that declare it can
use it.

EntityRepository rejects with 400 a create in a stage outside the type's
lifecycle and a stage change the lifecycle has no move for, for direct edits,
imports and workflows alike. Context memories are the first type to declare
one (Draft, Approved, Archived), replacing their own transition table and
validators. GET /v1/metadata/types/lifecycleStages now reports each type's
stages and transitions, and BaseEntityIT checks that every type rejects a move
outside its lifecycle.

* Fix memory chunk header status projection

* Upgrade memory chunk mapping for entityStatus

* fix(ui): sync generated glossary status schema

* refactor(memory): reuse shared lifecycle statuses

* fix(memory): normalize legacy lifecycle states

Map legacy migration values directly to shared statuses while retaining the 2.1.1 conversion for databases that stored preview values. Treat statusless memories as Approved in reconciliation, ontology derivation, and duplicate m…

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants