-
Notifications
You must be signed in to change notification settings - Fork 0
Return one notification per user, giving priority based on notification types #348
Copy link
Copy link
Open
Labels
pipelineRelated to the offline pipelinesRelated to the offline pipelinesutilitySmall functions that can help solve bigger problemsSmall functions that can help solve bigger problems
Description
Given a list of notification data, return a new list of notification data that has only one notification per user.
If you encounter multiple notifications for the same user, keep the notification that has the higher priority in this list of notification types.
- Check Message
- Rate Match
- Edit Profile
- Check Match
If two notifications for the same user have the same type, keep the one that came first in the list order.
Input: List of NotificationInfo
Output: List of NotificationInfo
Create a new function in the existing file pipeline/utils/notifications.py for your implementation and add tests for it in the corresponding test file.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
pipelineRelated to the offline pipelinesRelated to the offline pipelinesutilitySmall functions that can help solve bigger problemsSmall functions that can help solve bigger problems