Repository navigation
Fixes #39149: Keep MS Teams failed-rows table by bumping Adaptive Card to 1.5 - #39184
Merged
harshach merged 1 commit intoNov 28, 2026
Conversation
harshach
deleted the
detail/bug-fix/fixes-39149-keep-ms-teams-failed-rows-table-by-bum-b0f93b
branch
November 28, 2026 05:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detail bug report: View on Detail
Describe your changes:
Fixes #39149
I bumped the Adaptive Card schema version declared by
TeamsAdaptiveCardRendererfrom"1.4"to"1.5"because data-quality alert cards now emitTable/TableRow/TableCellelements for failed rows, and those elements were introduced in Adaptive Cards schema 1.5. With the card still declaring 1.4, the Teams renderer treats the 1.5-only elements as unknown types and silently drops them, so MS Teams users receive alert cards missing the failed-rows table (thesampleDatacode block is unaffected — it takes a separate<pre><code>→ monospaceTextBlockpath).Type of change:
High-level design:
N/A — small change. One-line version bump in
TeamsAdaptiveCardRenderer.java(the card builder), plus a regression test that locks the version invariant.TeamsCardAssembleralready builds theTablefamily correctly; the only issue was the target schema version the card advertised. Teams supports Adaptive Cards 1.6 and earlier, so 1.5 is safe and the minimum required.Tests:
Use cases covered
Tablein the card (previously silently dropped).TeamsTestMessage, separate code path, version 1.0) is unchanged.Unit tests
openmetadata-service/src/test/java/org/openmetadata/service/alerting/channel/teams/TeamsAdaptiveCardRendererTest.javaadaptiveCardDeclaresVersionThatSupportsTableElementsasserts the renderedAdaptiveCardContentversion is>= "1.5", so any future change that emitsTableelements cannot regress the version.TeamsCardAssemblerTest,TeamsMarkdownFormatterTest,TeamsTestMessageTest) pass unchanged — 15/15 green.mvn spotless:checkandmvn compile -pl openmetadata-servicepass.Backend integration tests
DispatchScenariosITindirectly; no integration test references the Teams renderer classes directly. Per the impact map, the only impacted unit test isTeamsAdaptiveCardRendererTest(PR CI runs unit tests; integration tests run in the merge queue).Ingestion integration tests
Playwright (UI) tests
Manual testing performed
openmetadata-serviceserver built from this branch (the patchedTeamsAdaptiveCardRenderer).http://localhost:9999/teams). Worked around the outbound SSRF policy, which rejects loopback address literals but allows thelocalhosthostname, by usinglocalhost.tableRowCountToEqual), posted a failedTestCaseResultwithsampleData, storedfailedRowsSample(PUT /testCases/{id}/failedRowsSample), and posted a second failed result to emit a change event after the sample was stored."type":"AdaptiveCard","version":"1.5"with aTablebody item (nested in aContainer) containing 3TableRows (header "Record 1" + the two failed rows) withTableCellchildren andhorizontalCellContentAlignment:"Left"— the content that was silently dropped before the fix. Earlier captured cards for non-table events also carriedversion:"1.5"with noTable, confirming no regression for other content.JsonUtils.pojoToJsonto confirm the wire format contains"version":"1.5"(not"1.4") and"type":"Table".UI screen recording:
Not applicable — backend-only renderer change, no UI impact.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.docs/decisions/(see itsREADME.md). (N/A — no durable decision beyond the one-line version bump that the regression test already enforces.)Bug fix
Automatic Fixes PRs can be configured here.