Skip to content

Sorting by "Nearest Due Date" puts all issues without a due date first. #8383

Closed
@bobemoe

Description

@bobemoe
  • Gitea version (or commit ref): 1.10.0+dev-369-g1a2d7207e
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When sorting by nearest due date you'd expect the overdue/imminent issues to be first in the list. If on a repo with lots of issues you can find that the issues you are looking for are actually on the last page.

https://try.gitea.io/bobemoe/test/issues?q=&type=all&sort=nearduedate&state=open&labels=0&milestone=0&assignee=0

This leaves no way to actually sort them to the top of the list.

When sorting like this, should we:

  • filter out any issues without a due date
  • or ensure they are always at the bottom of the list

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions