Skip to content

Backport 2.0: MCP and search fixes (#32226, #32552, #32460, #32553, #32342) - #32987

Merged
Vishnuujain merged 5 commits into
2.0from
backport/2.0-mcp-search-fixes
Sep 8, 2026
Merged

Vishnuujain merged 5 commits into
2.0from
backport/2.0-mcp-search-fixes

Conversation

@Vishnuujain

Copy link
Copy Markdown
Contributor

Describe your changes:

Backport of 5 already-merged main commits to 2.0. No new code.

Original PRs: #32226, #32552, #32460 (Fixes #30023), #32553, #32342

Commit Original What it does
e2f258207e #32226 Fix MCP entity patch lifecycle handling
c5b69338f8 #32552 Report embedding token usage instead of discarding it
756547db49 #32460 Apply the caller's policies to bot searches
7b79ff8f84 #32553 Embed ElasticSearch semantic search queries as queries, not documents
7f2b4b3863 #32342 Use HTTP transport for the MCP connector

Notes:

Type of change:

  • Bug fix

Tests:

Tests came with the backported commits. Run on this branch: 317 pass, 0 fail (52 in openmetadata-mcp, 265 in openmetadata-service). mvn spotless:check clean, ruff check and ruff format --check clean on the changed ingestion files. DomainIsolationIT compiles but was not executed locally. Python unit tests not run locally, CI is the gate.

No UI changes beyond generated TypeScript types, so no Playwright tests or screen recording.

Vishnuujain and others added 5 commits September 9, 2026 00:34
* fix(mcp): respect entity patch lifecycles

* fix(mcp): protect task patch lifecycle

* gitarbot feedback: block document, metric, metricGroup patch lifecycles too

* reflow lifecycle comment so no entry wraps at the 100-col limit

* drop metric and metricGroup entries, reverted upstream by #32333

(cherry picked from commit ac4a26b)
…32552)

* feat(search): report embedding token usage instead of discarding it

* fix(search): report the text the provider received, not the caller's input

(cherry picked from commit 2209bd7)
* fix(search): apply the caller's policies to bot searches (#30023)

* test: poll for the widened bot's own view in the allow-only role IT

* test: probe search RBAC on the asset index, not the domain index

* test: prove bot search scoping with a deny rule, not domains

* gitarbot feedback: include team ids in the RBAC query cache key

(cherry picked from commit dda6a92)
* fix(ingestion): use HTTP transport for MCP connector

* Update generated TypeScript types and dereferenced schemas

* chore: prune obsolete G004 baseline entries

* fix(ingestion): complete MCP HTTP transport support

* style(ingestion): format MCP transport client

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit c45f71a)
@Vishnuujain
Vishnuujain requested review from a team as code owners September 8, 2026 19:32
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the safe to test Add this label to run secure Github workflows on PRs label Sep 8, 2026
@Vishnuujain
Vishnuujain enabled auto-merge (squash) September 8, 2026 19:33
@gitar-bot

gitar-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Backport of 5 already-merged commits from main to 2.0, comprising MCP connector and search fixes: entity patch lifecycle handling, embedding token usage reporting, caller policy application to bot searches, ElasticSearch semantic search query embedding, and HTTP transport for MCP. All tests pass and no issues found.

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

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 67%
67.17% (80747/120206) 51.8% (49681/95903) 52.57% (14759/28072)

@sonarqubecloud

sonarqubecloud Bot commented Sep 8, 2026

Copy link
Copy Markdown

@Vishnuujain
Vishnuujain merged commit 374b3b5 into 2.0 Sep 8, 2026
137 of 138 checks passed
@Vishnuujain
Vishnuujain deleted the backport/2.0-mcp-search-fixes branch September 8, 2026 20:29
@sonarqubecloud

sonarqubecloud Bot commented Sep 8, 2026

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants