Repository navigation
Refactor: Consolidate recipient resolution into extensible RecipientResolutionStrategy framework - #24626
Merged
Conversation
manerow
force-pushed
the
refactor/notification-recipient-resolution
branch
from
December 1, 2025 16:15
335e24e to
5c9c85e
Compare
Contributor
|
The Java checkstyle failed. Please run You can install the pre-commit hooks with |
manerow
force-pushed
the
refactor/notification-recipient-resolution
branch
from
December 9, 2025 08:14
757d208 to
25c8bd1
Compare
|
TeddyCr
approved these changes
Dec 9, 2025
Contributor
|
Changes have been cherry-picked to the 1.11.1 branch. |
This branch was previously deployed
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.



Describe your changes:
Fixes #24515, #17215, #24389
I worked on a full refactor of the OpenMetadata notification recipient-resolution system by introducing a new extensible
RecipientResolutionStrategyframework to replace theSubscriptionUtilmonolithic logic.This change improves maintainability, correctness, and extensibility while preserving all existing notification behavior.
What changes did you make?
Implemented the RecipientResolutionStrategy framework, including 8 concrete strategies:
OwnerRecipientResolver(owner resolution with inherited ownership + thread-specific owner logic)FollowerRecipientResolver(resolves followers; supports Announcement thread parent-entity fallback)AssigneeRecipientResolver(task assignees and mentioned users)MentionRecipientResolver(resolves mentions from thread posts)AdminRecipientResolver(system administrators)UserRecipientResolver,TeamRecipientResolver,ExternalRecipientResolverAdded enhanced thread-aware resolution:
Implemented full downstream recursive lineage resolution:
Removed duplicated logic from SubscriptionUtil and replaced it with clean strategy-based components.
Improved error handling, logging, and separation of concerns.
Why did you make them?
The
SubscriptionUtil.getTargetsForAlert()design was not scaling well, was hard to modify and was error-prone:The new strategy-based design is modular, testable, and extensible, enabling new recipient types or lineage-driven rules without modifying core logic.
How did you test your changes?
Type of change:
Checklist:
Refactor: Consolidate recipient resolution into extensible RecipientResolutionStrategy framework