Skip to content
Snippets Groups Projects
Unverified Commit 6b241f52 authored by Daniel Sonck's avatar Daniel Sonck Committed by GitHub
Browse files

Make pagination of rooms in admin api stable (#11737)


Always add state.room_id after the configurable ORDER BY. Otherwise,
for any sort, certain pages can contain results from
other pages. (Especially when sorting by creator, since there may
be many rooms by the same creator)

* Document different order direction of numerical fields

"joined_members", "joined_local_members", "version" and "state_events"
are ordered in descending direction by default (dir=f). Added a note
in tests to explain the differences in ordering.

Signed-off-by: default avatarDaniël Sonck <daniel@sonck.nl>
parent e7da1ced
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment