Skip to content

Fixes #37288: Notify Downstream reaches downstream owners on alerts for data assets (backport 2.0 #37289) - #37290

Merged
manerow merged 1 commit into
2.0from
fix/37288-notify-downstream-data-assets-2.0
Nov 10, 2026
Merged

manerow merged 1 commit into
2.0from
fix/37288-notify-downstream-data-assets-2.0

Conversation

@manerow

@manerow manerow commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Issue

Fixes #37288

Port of PR #37289 to the 2.0 release branch. 2.0 has the older recipient code under notifications/recipients, so the commit cannot be cherry-picked; this applies the same rule there. PR #37289 explains the problem.

What changes

  • When the resolver answers with no parents, the handler now resolves the recipients downstream of the event's own entity. Today it stops there, so alerts on data assets never reach downstream owners.
  • The changed entity is not read again: its own recipients already come from the event, and a deleted entity can no longer be read.
  • If the lineage read fails, it is logged and the changed entity's own recipients still get the message.
  • The part that walks lineage moved into its own method, so parents and the event's entity share it. Test cases, test suites, threads and data contracts behave as before.
  • No migration: saved alerts already store the option.

Alerts that already have Notify Downstream on will send more messages after upgrading. With no Downstream Depth set, the walk has no limit.

How it was tested on 2.0

  • LineageBasedDownstreamHandlerTest (new): a table walks downstream from itself using the real default resolver, and a failed lineage read keeps the table's own recipients. The first case fails on 2.0 without this change; the second passes either way. Both pass with it, together with OwnerRecipientResolverTest and RecipientResolutionTest (19 tests).
  • 2.0 PRs have no integration test lane and NotifyDownstreamIT relies on helpers only main has, so it is not ported. Instead I checked by hand on a real 2.0.7 server carrying this handler, with real webhooks and team owners:
Change on table A, with lineage to a table owned by team 2 Stock 2.0.7 With this change
Schema change, Notification alert Owner only Owner and team 2
Schema change, Observability alert Owner only Owner and team 2
Test case change, Observability alert Owner and team 2 Owner and team 2
Soft delete Owner only Owner and team 2, 0 failed events
Hard delete Owner only Owner only, 0 failed events

@manerow
manerow requested a review from a team as a code owner November 6, 2026 18:20
@manerow manerow added safe to test Add this label to run secure Github workflows on PRs backend skip-pr-checks Bypass PR metadata validation check labels Nov 6, 2026
@manerow
manerow requested review from sonika-shah and removed request for a team November 6, 2026 18:20
@gitar-bot

gitar-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Walking downstream from parentless changed assets may send alerts to additional owners beyond the recipients users previously expected.

Extends Notify Downstream alert handling on the 2.0 branch so that when the resolver finds no parents, recipients downstream of the changed data asset are notified, with lineage read failures logged and the entity's own recipients still notified. 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

@manerow
manerow merged commit 879d6b1 into 2.0 Nov 10, 2026
80 of 97 checks passed
@manerow
manerow deleted the fix/37288-notify-downstream-data-assets-2.0 branch November 10, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants