Add primaryTenantDomain support to PushNotificationData#23
Merged
ZiyamSanthosh merged 2 commits intoApr 7, 2026
Merged
Conversation
ZiyamSanthosh
approved these changes
Apr 7, 2026
3 tasks
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.
Purpose
Add
primaryTenantDomainsupport toPushNotificationDatato enable proper tenant resolution for organization-level push notification routing. This is required to correctly differentiate organization tenants from root tenants and build the correct relative API path for push notification delivery.GitHub Issue
Related PRs
Goals
primaryTenantDomainfield inPushNotificationDataand its BuilderprimaryTenantDomainin the additional data map when present, overriding the regulartenantDomainrelativePathbased on organization and tenant contextApproach
primaryTenantDomainas a newfinalfield inPushNotificationDatawith corresponding Builder setter and getterbuildRelativePath()method that constructs the relative path based on the combination oforganizationId,primaryTenantDomain, andtenantDomaingetAdditionalData()now includes therelativePathentry and conditionally overridestenantDomainwithprimaryTenantDomainwhen setUser stories
As a system handling push notifications for organization users, I need the notification data to carry the primary tenant domain so that the push notification provider can route requests to the correct tenant API path.
Release note
Added
primaryTenantDomainsupport toPushNotificationDatafor correct tenant resolution in organization-level push notification delivery.Documentation
N/A - Internal model change with no direct user-facing documentation impact.
Training
N/A
Certification
N/A - Internal API change only.
Marketing
N/A
Automation tests
Security checks
Samples
N/A
Migrations (if applicable)
N/A
Learning
N/A