-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(notifications): Refactor helpers for notification reads #56064
Conversation
Codecov Report
@@ Coverage Diff @@
## master #56064 +/- ##
==========================================
+ Coverage 79.95% 79.98% +0.03%
==========================================
Files 5060 5062 +2
Lines 217590 217752 +162
Branches 36838 36853 +15
==========================================
+ Hits 173976 174173 +197
+ Misses 38285 38235 -50
- Partials 5329 5344 +15
|
return notification_settings | ||
def get_recipient_from_team_or_user(user_id: int | None, team_id: int | None) -> RpcUser | Team: | ||
if user_id is not None: | ||
recipient = RpcUser(id=user_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this recipient get any of its other attributes used? You can use user_service.get_user()
to fetch the hydrated user record.
Also support querying multiple projects and use RpcUsers for silo code.
This takes changes from #55855 and #55898 which I'll close.