forked from gitea/gitea
1
0
Fork 0
gitea/routers/api/v1
Clark Boylan 7e401fb026
Fix repo API listing stability (#12057)
Repo listings are paginated in the API now. Unfortunately, they are
ORDER BY updated_unix which only has second resolution. This means that
if you do a listing when multiple projects were created at the same time
you can unstable ordering. If that unstable ordering happens at a page
boundary you may fail to get a complete repo listing.

To make things worse sorting by updated_unix means that we may never get
a complete listing because udpated_unix can change independent of our
API calls.

Fix this by making the API repo listing order by id instead.
2020-07-02 15:55:42 +01:00
..
admin Add pagination headers on endpoints that support total count from database (#11145) 2020-06-21 16:22:06 +08:00
misc API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 2020-06-22 14:21:31 -04:00
notify Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
org Add pagination headers on endpoints that support total count from database (#11145) 2020-06-21 16:22:06 +08:00
repo Do not override API issue pagination with UI settings (#12068) 2020-06-27 17:09:24 -04:00
settings API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 2020-06-22 14:21:31 -04:00
swagger API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 2020-06-22 14:21:31 -04:00
user Fix repo API listing stability (#12057) 2020-07-02 15:55:42 +01:00
utils Granular webhook events (#9626) 2020-03-06 07:10:48 +02:00
api.go API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 2020-06-22 14:21:31 -04:00