]> source.dussan.org Git - gitea.git/commit
Fix: unstable sort skips/duplicates issues across pages (#18095)
authorDuckDuckWhale <28813824+DuckDuckWhale@users.noreply.github.com>
Wed, 29 Dec 2021 11:44:34 +0000 (03:44 -0800)
committerGitHub <noreply@github.com>
Wed, 29 Dec 2021 11:44:34 +0000 (19:44 +0800)
commit484fe075f4c3b569c8db2455e01e540cd261dedd
tree8a3125716cc3a1caa1687f7c8e9b6d06516058e2
parentde3216ee5590636747ad3a7cd8b4c1a8837b5b40
Fix: unstable sort skips/duplicates issues across pages (#18095)

When viewing issues in sorted order, some issues are duplicated across
pages and some are missing.  This is caused by the lack of tie-breakers
in database queries, making pagination inconsistent.

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
models/issue.go