Repository navigation
Allow Alerts to notify Lineage downstream entities stakeholders - #23218
Merged
Merged
Conversation
manerow
force-pushed
the
feature/alert-downstream-entities
branch
from
September 3, 2025 15:15
fbb9d62 to
4649427
Compare
Contributor
|
TypeScript types have been updated based on the JSON schema changes in the PR |
TeddyCr
reviewed
Sep 4, 2025
| } | ||
|
|
||
| public Set<EntityReference> findUniqueEntitiesDownstream(UUID id, String type, Integer maxDepth) { | ||
| if (maxDepth != null && maxDepth == 0) { |
Collaborator
There was a problem hiding this comment.
should this be (maxDepth != null || maxDepth == 0)
Collaborator
There was a problem hiding this comment.
Should we also do maxDepth <= 0
Contributor
Author
There was a problem hiding this comment.
Thanks!
(maxDepth != null || maxDepth == 0)could cause an NPE.- Agreed on
<= 0. For non-null values we should stop whenmaxDepth <= 0.
Since null means unlimited traversal and 0 (or negative) means no traversal, I’ll keep it as:
if (maxDepth != null && maxDepth <= 0) {
return Set.of();
}
manerow
force-pushed
the
feature/alert-downstream-entities
branch
from
September 5, 2025 07:05
55b6ac5 to
ef67a99
Compare
Contributor
|
TypeScript types have been updated based on the JSON schema changes in the PR |
|
TeddyCr
approved these changes
Sep 5, 2025
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.



I worked on extending OpenMetadata's alert notification system to include downstream stakeholders because currently, when an alert is triggered on a data asset, only the direct stakeholders of that asset are notified.
This misses critical downstream consumers who depend on the affected data.
Key changes:
notifyDownstreamanddownstreamDepthfields toSubscriptionDestinationschema to enable opt-in downstream notificationsLineageGraphExplorerutility class for cycle-safe lineage graph traversal using DFS with configurable depth limitsSubscriptionUtil.getTargetsForAlert()to expand notifications to downstream entity stakeholders when enabledSubscriptionDestinationobjectTesting approach:
LineageGraphExplorerwith real database and lineage dataAdditional Notes:
event_subscription_entitytable stores EventSubscription objects as JSON, automatically accommodating new schema fieldsnotifyDownstream: falseby default, ensuring zero impact on existing subscriptionsType of change:
Checklist:
Fixes <issue-number>: <short explanation>or decision-making process is reflected in the issue.