Skip to content

用例的 updated_at 在调整顺序和移动时也会改变 #55

Open

Description

@jacksonw111

This was generated by AI during triage.

问题

test_cases.updated_at 定义了 $onUpdate(() => new Date())。Drizzle 在每个 update 语句中写入这个值。

openCaseSlot、closeCaseSlot、reorderTestCasesInTx 和 moveTestCaseInTx 只修改 sort_order 或 module_id,但也改变 updated_at。在模块中插入一条用例时,它后面的所有用例的 updated_at 都会改变。

结果:updated_at 不表示内容的修改时间。依据这个字段的统计(例如 #26 的「高优先级陈旧用例」)不可靠。

发现位置

#52 的调研报告第 7 节:docs/project-overview-metrics-research-2026-10.md。

说明

#53 不使用 updated_at,内容修改时间改用 case_versions.created_at。这个工单不阻塞 #53。

Activity

  1. added
    bug
    needs-triage
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions