Skip to content

usage history: two clock-deletion guards have no test #38

Closed

Description

@scuttletoby

apps/server/src/usage/UsageReadingsHistory.ts:381 and :427: removing either guard against clock-driven deletion still passes all 32 tests; in the reviewer's own tests it then lost almost all history (11 lines to 1, 243 to 1). Fix: add the two tests (each must fail without its guard).

From the round-4 check of #24 (#24 (comment)). Left as a minor at merge.

🤖 Generated with Claude Code

Activity

  1. added 3 commits that reference this issue on Nov 18, 2026
    a0bdba9
    e2941a3
    ac0473e
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions