Skip to content

Save runs under designs, compare current results, and release 2.1.0 - #19

Merged
ptgrogan merged 4 commits into
mainfrom
runs-under-designs
Nov 26, 2026
Merged

ptgrogan merged 4 commits into
mainfrom
runs-under-designs

Conversation

@ptgrogan

@ptgrogan ptgrogan commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Runs saved under designs: saving a run puts it under the saved design last opened or saved; the Analysis tab names that design. The Compare dialog groups runs under their designs (open design first, then other designs, then "No design"), and a run can be moved to another design.
  • Compare the current results: "Saved runs" is now Compare runs. The current results are listed and checked from the start, so they compare with saved runs without being saved first. Once saved, they compare as their saved run. The Results dialog also has a Compare with saved runs button.
  • Designs: Saved Designs shows how many runs each design has. Deleting a design deletes its runs, and the confirmation says how many.
  • API: GET /runs?design=<id> lists a design's runs. PATCH /runs/{id} accepts designId (or null) as well as name. POST /runs accepts designId. Designs now return a runs count.
  • Database: schema version 2 adds runs.design_id. Version 1 databases migrate the first time they're opened, with existing runs under no design.

Changelog and version 2.1.0

  • Adds CHANGELOG.md in the Keep a Changelog format, with versions 1.0, 1.1.0 and 2.0.0 reconstructed from the git history. The README's new "Changelog" section explains how to add entries and cut a release.
  • Bumps __version__ to 2.1.0. That release covers the changes since 2.0.0: PRs Prompt users to sign in when they arrive #10–Update to TAT-C 3.8.0 #18 plus this PR.
  • After merging: tag the merge commit so the changelog's version links work:
    git tag v2.1.0 <merge commit> && git push origin v2.1.0

Testing

  • New tests in tests/test_library.py: runs under designs, moving runs, the cascading delete, designs of other users and unknown designs, invalid updates, and the version 1 migration. Full suite: 207 passed.
  • Ran the full flow in a browser: compared current results, saved a run from the dialog, saved one under a design, opened the comparison from the Results dialog, moved a run, and deleted a design along with its runs. No page errors.
  • black --check . and isort --check-only . pass.

Saved runs may belong to a saved design: runs save under the saved design
last opened or saved (the Analysis tab names it), list grouped under their
designs, and move between designs. Designs count their runs, and deleting
a design deletes its runs. GET /runs filters by design, and PATCH /runs
changes a run's design (or none) as well as its name.

The database schema (version 2) adds the design of runs; databases of
version 1 migrate on first use, with their runs under no design.

The runs dialog (now Compare runs) compares the current results, checked
from the start, with saved runs, without saving them first; once saved,
they compare as their saved run. The results dialog opens the comparison.
CHANGELOG.md follows Keep a Changelog, with past versions reconstructed from the history and the changes since 2.0.0 under Unreleased. The README describes how to add entries and release a version.
@ptgrogan
ptgrogan merged commit 282d1e3 into main Nov 26, 2026
2 checks passed
@ptgrogan
ptgrogan deleted the runs-under-designs branch November 26, 2026 06:27
@ptgrogan ptgrogan changed the title Save runs under designs and compare them with the current results Save runs under designs, compare current results, and release 2.1.0 Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant