Skip to content

fix(status): reset roster progress when a time record is removed - #442

Open
cartpauj wants to merge 1 commit into
developfrom
fix/432-reset-progress-on-delete
Open

cartpauj wants to merge 1 commit into
developfrom
fix/432-reset-progress-on-delete

Conversation

@cartpauj

Copy link
Copy Markdown
Contributor

Closes #432

What

Logging a time recomputes the athlete's Status.progress (the In / Out chip on the roster), but removing a time never did. A bib entered by mistake kept its Out ➠ chip after the record was deleted.

The same thing happened when a wrong bib was fixed by editing the row's bib number: the new bib was recomputed, the old one was not.

Changes

  • deleteTimeRecord calls SetProgress for the deleted record's bib
  • updateTimeRecord also calls SetProgress for the previous bib when the bib changed

Tests

Two new timingRecords-db tests, written first and confirmed failing on develop:

  • deleting an athlete's only record resets progress to Incoming
  • moving a record to a corrected bib resets the old bib and sets the new one

The full src/main/database suite passes. The delete case was checked manually in the app.

🤖 Generated with Claude Code

Deleting a timing record left the athlete's Status.progress as it was,
so a wrong bib kept its "Out" chip on the roster. Recompute progress
after a delete, and for the old bib when an edit moves a record to a
different bib.

Closes #432

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cartpauj cartpauj self-assigned this Sep 28, 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.

Logging an out time for an incorrect bib then deleting it still shows "out>" chip in roster view

1 participant