Skip to content

Conversation

malwilley
Copy link
Member

This is an expected state, so IMO it should be a successful response with an empty list instead of a 404. This makes things simpler on the UI side.

@malwilley malwilley requested a review from a team as a code owner October 6, 2025 22:54
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 6, 2025
{"detail": "Group not found. Could not query open periods."},
status=status.HTTP_404_NOT_FOUND,
)
return self.paginate(request=request, queryset=[])
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Missing Parameters in Paginate Call

The paginate call when target_group is not found (line 130) is missing paginator_cls, on_results, and count_hits. This results in inconsistent pagination and serialization behavior compared to the successful path.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant