Skip to content

Conversation

ekraffmiller
Copy link
Contributor

@ekraffmiller ekraffmiller commented Oct 6, 2025

What this PR does / why we need it:

Updates the GetAllNotificationsByUser use case to allow results to return only unread messages. Also adds parameters for pagination (limit and offset).

Which issue(s) this PR closes:

Related Dataverse PRs:

Special notes for your reviewer:

Suggestions on how to test this:

review code and tests. Note that this has a waiting tag. Should not be merged until the related Dataverse PR is merged.

Is there a release notes or changelog update needed for this change?:

Yes, changelog updated.

Additional documentation:

@ekraffmiller ekraffmiller changed the title 386 update notifications use case Update GetAllNotificationsByUser use case Oct 8, 2025
@ekraffmiller ekraffmiller moved this to Ready for Review ⏩ in IQSS Dataverse Project Oct 8, 2025
@ekraffmiller ekraffmiller added GREI Re-arch GREI re-architecture-related SPA.Q3.2025.6 Account Page: Notifications labels Oct 8, 2025
@ekraffmiller ekraffmiller marked this pull request as ready for review October 8, 2025 18:44
@ekraffmiller ekraffmiller added Size: 3 A percentage of a sprint. 2.1 hours. Original size: 3 labels Oct 8, 2025
@cmbz cmbz added the FY26 Sprint 8 FY26 Sprint 8 (2025-10-08 - 2025-10-22) label Oct 8, 2025
@g-saracca g-saracca self-assigned this Oct 9, 2025
@g-saracca g-saracca moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Oct 9, 2025
Copy link
Contributor

@g-saracca g-saracca left a comment

Choose a reason for hiding this comment

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

I'm leaving a comment about how to handle the query params but approving 👍🏼

offset?: number
): Promise<Notification[]> {
const queryParams = inAppNotificationFormat ? { inAppNotificationFormat: 'true' } : undefined
const queryParams: Record<string, string | number> = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think here using new URLSearchParams is more robust. As we did in getCollectionItems and getMyDataCollectionItems

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Oct 9, 2025
@g-saracca g-saracca removed their assignment Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 8 FY26 Sprint 8 (2025-10-08 - 2025-10-22) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA.Q3.2025.6 Account Page: Notifications Waiting

Projects

Status: Ready for QA ⏩

Development

Successfully merging this pull request may close these issues.

Update use case for Notifications: additionalInfo in response, paging, and filtering

3 participants