Skip to content
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

1741 group multiple delete create notification requests into a single request #1744

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

Bdegraaf1234
Copy link
Member

As discussed RADAR-base/RADAR-Appserver#438 we reduce the number of requests by the aRMT application by multiple grouping create and delete notifications in one request.

fixes #1741

@Bdegraaf1234 Bdegraaf1234 self-assigned this Oct 3, 2023
@Bdegraaf1234 Bdegraaf1234 marked this pull request as ready for review October 9, 2023 10:46
return this.appServerService.addNotificationsBundle(notifications, subjectId, projectId)
.then((resultNotification: FcmNotificationDto) => {
this.setLastNotificationUpdate(Date.now())
// notification.notification.id = resultNotification.id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to still store back the notification id? We would still need it when we want to cancel reminders/future notifications for a task once it has been completed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be done bij uncommenting the lines below right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No cause I think the request would return multiple notifications and each would be needed to get stored back to the task object.

@Bdegraaf1234 Bdegraaf1234 assigned mpgxvii and unassigned Bdegraaf1234 Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants