Teknologforeningen / teknologr.io

Membership management system tailored for TF use
MIT License
3 stars 3 forks source link

Members username query is broken #210

Open filiptypjeu opened 2 weeks ago

filiptypjeu commented 2 weeks ago

Something funky is going on with either the pagination or the Members "username=*" query.

Cumulating Members using /api/members?username=* gives 2741 results. In those 2094 unique usernames are found, and at least some usernames that should exist are not found.

Cumulating Members using /api/members gives 5671 results. In those 2132 unique usernames are found, but even then some existing usernames are not found.

I have not been able to reproduce the issue in a unittest...

filiptypjeu commented 2 weeks ago

It seems like there is no problem using /api/members?ordering=id, which would indicate that the order between different limit/offset queries are not deterministic.