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

Order API results by election group #2038

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Order API results by election group #2038

merged 1 commit into from
Dec 19, 2023

Conversation

symroe
Copy link
Member

@symroe symroe commented Dec 18, 2023

There was a bug when paging through a lot of election results where the order of the pages changed between requets. This meant that we coulnd't build a full election tree when consuming results (e.g some pages ended up duplicated, some ended up missing).

This change means that pages should be ordered in the same way when paging.

Fixes https://democracy-club-gp.sentry.io/issues/4654723460/?project=162062&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=14d&stream_index=0

PR Checklist

There was a bug when paging through a lot of election results where the
order of the pages changed between requets. This meant that we coulnd't
build a full election tree when consuming results (e.g some pages ended
up duplicated, some ended up missing).

This change means that pages should be ordered in the same way when
paging.
@symroe symroe merged commit 00e50d0 into master Dec 19, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant