Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing/Duplicate issue when sorting by nearest due date #13395

Closed
2 of 7 tasks
DuckDuckWhale opened this issue Nov 2, 2020 · 4 comments · Fixed by #18094
Closed
2 of 7 tasks

Missing/Duplicate issue when sorting by nearest due date #13395

DuckDuckWhale opened this issue Nov 2, 2020 · 4 comments · Fixed by #18094
Labels

Comments

@DuckDuckWhale
Copy link
Contributor

DuckDuckWhale commented Nov 2, 2020

  • Gitea version (or commit ref): 1.12.5
  • Git version: 2.25.1
  • Operating system: Ubuntu Server 20.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Haven't tried
  • Log gist: N/A

Description

When sorting by nearest due date, some issues are duplicated and some cannot be found when going through pages. In my case the first page contains issue 108 and 118, and the second page still contains them but in a different order mixed with other issues. The overall issue count remains the same, but since some are duplicated some can't be found. This can be reproduced both at the per user issues page and the repository issues page.

One thing to note is that they all have the same due date and are all past due by less than a day.

Screenshots

Page 1:
image
Page 2:
image

@DuckDuckWhale
Copy link
Contributor Author

DuckDuckWhale commented Dec 11, 2020

Reproduced after upgrading to 1.13.0. Random guess: unstable sort.

@DuckDuckWhale
Copy link
Contributor Author

Reproduced after upgrading to 1.14.3, seems that it doesn't matter to be past due by a day. This sample is past due by a long while but still on the same day.
page 6
page 7

@lafriks
Copy link
Member

lafriks commented Jul 9, 2021

Probably need to add ID as second sort parameter

@DuckDuckWhale
Copy link
Contributor Author

Just encountered a duplicate issue that is not past due. So it seems that the only requirement is that they must be due on the same day, so my best guess is temporally inconsistent sorting across pages.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants