Skip to content

Backport #38489 to 2.0 - #38728

Merged
pmbrull merged 2 commits into
open-metadata:2.0from
iamkiayun:backport/38489-2.0
Nov 26, 2026
Merged

pmbrull merged 2 commits into
open-metadata:2.0from
iamkiayun:backport/38489-2.0

Conversation

@iamkiayun

@iamkiayun iamkiayun commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #38450

This adapts the merged article-read fix to the older search interface after the automatic backport failed. A search with zero hits keeps its existing empty result. If matching page passages contain only images, get_entity_details falls back to the cleaned article. Metric SQL stays intact.

All 127 focused unit tests and 7 distinct PostgreSQL/OpenSearch integration tests passed locally.


Summary by Gitar

  • Content reads:
    • Strips inline base64 images and presentational markup from knowledge content while keeping text as written
    • Image-only search passages fall back to the cleaned article body
  • Tool hints:
    • Points truncation hints to get_entity_details with include=["content"] in place of the removed get_knowledge_content

This will update automatically on new commits.

Backport of open-metadata#38489 (c6b5343). Adapt passage lookup to the vector service on this release.
@iamkiayun
iamkiayun requested review from a team as code owners November 25, 2026 17:00
@iamkiayun
iamkiayun requested review from Rohit0301 and TeddyCr and removed request for a team November 25, 2026 17:00
@github-actions

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.

@TeddyCr
TeddyCr requested review from Vishnuujain and removed request for Rohit0301 and TeddyCr November 25, 2026 19:08
@gitar-bot

gitar-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

The MCP article-read changes strip embedded images and fall back to cleaned page text, which could omit content from AI context responses.

Backports the article-read fix to 2.0 by stripping inline base64 images and presentational markup from knowledge content, with image-only search passages falling back to the cleaned article body. Truncation hints now point to get_entity_details with include=["content"]. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

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

@iamkiayun

Copy link
Copy Markdown
Contributor Author

I verified 136 local tests on the 2.0 backport (0cd3c55ff), including seven integration cases. The Collate check shows a failed Maven command but no underlying error. Several other 2.0 PRs show the same command failing, so I can’t tell from the public output whether this change contributed. Could someone with downstream access share the first build error or rerun the check?

The companion 2.1 backport’s Collate build and unit tests passed. Both backports reference #38450 in their descriptions, but metadata validation still reports no linked issue. Could a maintainer link #38450 to this PR and #38729?

@pmbrull pmbrull self-assigned this Nov 26, 2026
@pmbrull
pmbrull merged commit 6964443 into open-metadata:2.0 Nov 26, 2026
82 of 84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants