gitea/models
confusedsushi dca375aad2
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
when sorting issues by nearest due date, issues without due date should be sorted ascending (#35267)
When sorting issues and pull requests by the nearest due date, the
issues and PRs without a due date are currently sorted _descending_ by
their creation date. This seems counter intuitive to me. When sorting by
nearest due date I want to see the issues/PRs in the order they should
be worked on. For issues/PRs without a due date that order should be
first come first served rather than last come first served.

This PR now changes the ordering of issues/PRs which don't have a due
date to _ascending_ by their creation date. So that the oldest is shown
first and the newest last.

This now also makes the sort order nearest due date a true opposite to
farthest due date. At farthest due date the newest is shown first and
the oldest last.

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-08-29 19:05:18 -07:00
..
actions Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
activities Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
admin Fix omitempty bug (#33663) 2025-02-20 12:39:21 -08:00
asymkey Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
auth Refactor db package (#35380) 2025-08-30 01:04:06 +08:00
avatars Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
db Refactor db package (#35380) 2025-08-30 01:04:06 +08:00
dbfs Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
fixtures Fix user's sign email check (#35045) 2025-07-12 15:13:01 +08:00
git Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
issues when sorting issues by nearest due date, issues without due date should be sorted ascending (#35267) 2025-08-29 19:05:18 -07:00
migrations Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
organization Refactor db package (#35380) 2025-08-30 01:04:06 +08:00
packages Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
perm Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
project Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
pull Start automerge check again after the conflict check and the schedule (#34989) 2025-07-08 14:51:16 +00:00
renderhelper Fix commit message rendering and some UI problems (#34680) 2025-06-10 23:20:32 +08:00
repo Remove the duplicated function GetTags (#35375) 2025-08-29 01:11:42 +00:00
secret Added Description Field for Secrets and Variables (#33526) 2025-03-17 19:24:54 +00:00
shared/types Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
system Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
unit Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
unittest Refactor db package (#35380) 2025-08-30 01:04:06 +08:00
user Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
webhook Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
repo_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
repo.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00