0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-26 21:55:43 +01:00
gitea/routers
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
api/v1 Fix repo API listing stability (#12057) 2020-07-02 15:55:42 +01:00
dev
events
org Fix visibility of forked public repos from private orgs (#11717) 2020-06-06 20:45:12 -04:00
private
repo Provide option to unlink a fork (#11858) 2020-07-02 15:09:09 +01:00
routes
user Add hide activity option (#11353) 2020-06-05 16:01:53 -04:00
utils
home.go
init.go
install.go
metrics.go
swagger_json.go