fix(system): sort recent tasks by started_at desc (backend only) #5

Merged
kairee merged 1 commits from auto/tasks-sort-by-finished-2437 into main 2026-11-02 19:56:16 +08:00

现状

系统页「最近任务」来自 kv 的 task:last:*,原先按键名排序。排序只应由后端负责。

改动

  • 后端 _task_records:按 started_at 倒序插入 dict;缺开始时间排末尾(含进行中)
  • 测试:test_system_tasks_sorted_by_started_at_desc
  • 前端 system.js:无变更(不在前端排序)

不合入,等确认。

## 现状 系统页「最近任务」来自 `kv` 的 `task:last:*`,原先按键名排序。排序只应由后端负责。 ## 改动 - 后端 `_task_records`:按 `started_at` 倒序插入 dict;缺开始时间排末尾(含进行中) - 测试:`test_system_tasks_sorted_by_started_at_desc` - 前端 `system.js`:**无变更**(不在前端排序) 不合入,等确认。
bot-ci Bot changed title from fix(system): sort recent tasks by finished_at desc to fix(system): sort recent tasks by started_at desc 2026-11-02 19:38:41 +08:00
bot-ci Bot changed title from fix(system): sort recent tasks by started_at desc to fix(system): sort recent tasks by started_at desc (backend only) 2026-11-02 19:45:42 +08:00
bot-ci Bot added 1 commit 2026-11-02 19:53:37 +08:00
「最近任务」原先按 kv 键名排序。改为后端 `_task_records` 按
started_at 倒序写入 dict(缺开始时间排末尾,含进行中);
前端不再参与排序。配套 test_system_tasks_sorted_by_started_at_desc。
bot-ci Bot force-pushed auto/tasks-sort-by-finished-2437 from d0bc724eee to 3254648849 2026-11-02 19:53:37 +08:00 Compare
kairee merged commit 3254648849 into main 2026-11-02 19:56:16 +08:00
kairee deleted branch auto/tasks-sort-by-finished-2437 2026-11-02 19:56:16 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kcloud/re-xxm#5