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

Items and tabellen endpoints return unordered results #41

Open
stevenbal opened this issue Jan 14, 2025 · 0 comments
Open

Items and tabellen endpoints return unordered results #41

stevenbal opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working triage

Comments

@stevenbal
Copy link
Contributor

Product versie / Product version

latest / 0.2.0

Omschrijf het probleem / Describe the bug

From the logs it appears that the results from both the /items and /tabellen endpoints are unordered:

/rest_framework/pagination.py:207: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'referentielijsten.api.models.Item'> ItemQuerySet.

Stappen om te reproduceren / Steps to reproduce

  1. Perform a GET request on /items or /tabellen
  2. Look at the logs and observe the warning

Verwacht gedrag / Expected behavior

The items should be ordered in some way at least (pk could work, though maybe an OrderedModel could make sense for items as well)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
Status: Triage
Development

No branches or pull requests

1 participant