Skip to content

Make entries.json saves atomic and tighten validation #50

Closed

Description

@jamesconwaydev

save() writes entries.json in place, so a crash halfway through leaves a broken file. Validation also lets "version": true through because True == 1 in Python, and the list of statuses is written out twice.

Done when saves go through a temp file and a rename, the version check rejects booleans, statuses come from one place, and the validator's tests check the messages and the CLI's exit code.

Activity

  1. added this to the v0.3 Polish milestone on Nov 6, 2026
  2. added
    priority: lowWorth doing on a quiet afternoon
    area: dataentries.json and the files on the stats branch
    on Nov 6, 2026
  3. updated Priority Low, Effort S and Area Data on Nov 6, 2026
  4. moved this from Todo to In Progress in DevStream Roadmapon Nov 6, 2026
  5. moved this from In Progress to Done in DevStream Roadmapon Nov 6, 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

    area: dataentries.json and the files on the stats branchpriority: lowWorth doing on a quiet afternoon

    Type

    Fields

    Priority

    Low

    Effort

    S

    Area

    Data

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions