Skip to content

Conversation

@geetxnshgoyal
Copy link

What

  • The /my/notifications API now uses the show_maximum query parameter to limit the number of notifications returned (capped at max_per_page).
  • This fixes the mismatch between docs and code—before, it always used total.
  • Also checked that state and kind filters work as expected.
  • No more notifications_type in docs.

Why

How to verify

  • Call /my/notifications with and without show_maximum, and check the count in the response.
  • Try filtering by state and kind, confirm results are correct.
  • No breaking changes: old clients still get paginated results.

@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Nov 28, 2025
@geetxnshgoyal geetxnshgoyal marked this pull request as draft November 28, 2025 09:03
eduardoj and others added 7 commits November 28, 2025 14:36
... instead of using direct calls to `Backend::Connection`
Do not include detailed parser messages when the raised error is an
`ArgumentError`. Keep showing detailed error information for all other
previously handled exceptions.
... of a package instead of using direct calls to `Backend::Connection`
... instead of using direct calls to `Backend::Connection`

Don't pass the `user` parameter to the backend. This backend endpoint
has never accepted the `user` parameter.

Adapt the specs to mock `Backend::Api::BuildResults::Binaries` instead
of `Backend::Connection`.
... instead of using direct calls to `Backend::Connection`
If you pass show_maximum in the query, the API now returns up to that many notifications (capped at max_per_page). This fixes the mismatch between docs and code—before, it always used total. Also checked that state and kind filters work as expected. No more notifications_type in docs. See openSUSE#18910.
- Implement  for /my/notifications.
- Add specs for default behavior, limited results and capping at Notification.max_per_page.
- Defensive filter handling and improved comments.

Fixes openSUSE#18910.
@geetxnshgoyal geetxnshgoyal force-pushed the fix-notifications-api-parameter-mismatch branch from 40c2af6 to 9df55f2 Compare November 28, 2025 09:10
@github-actions github-actions bot added the Test Suite / CI 💉 Things related to our tests/CI label Nov 28, 2025
@geetxnshgoyal geetxnshgoyal marked this pull request as ready for review November 28, 2025 09:17
@geetxnshgoyal geetxnshgoyal marked this pull request as draft November 28, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend Things related to the OBS RoR app Test Suite / CI 💉 Things related to our tests/CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notifications API parameter mismatch

2 participants