Spaces:
Sleeping

Mushari440 Claude Opus 5 commited on
Commit
f79409d
·
1 Parent(s): 9dfe50b

Make the manage panel work across versions, and fix what it did wrong

Browse files

Three defects, all from the panel predating versioning.

Delete removed the queue entry as well as the score. The request is shared by every
version, so deleting a v8 score also destroyed the v7 row's metadata and left no way
to re-run without resubmitting. Delete is now two actions: 'Delete <version> score'
drops that version's file and keeps the queue entry, and 'Remove entirely' takes the
request plus every version's score. The old wording promised the second while the
button was reached from a single version.

Nothing showed which versions a model was actually on. The status badge is global --
one request serves all versions -- so a model reading FINISHED could have no score on
the board being viewed. Each row now carries a chip per version, and the panel header
counts how many are scored versus missing on the current one.

There was no way to start a version. The worker only claims PENDING / RUNNING / RERUN,
so after a sweep every model sits at FINISHED and a new version would evaluate nothing
at all. /api/requeue-all sets them back to RERUN, defaulting to only the models with no
score on the target version so a half-finished sweep resumes instead of restarting.

test_manage.py covers all of it against a stubbed Hub: per-version presence, that a
scoped delete leaves the other version and the request alone, that scope=all removes
both, and that requeue skips models already scored or already queued.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

3 files changed +266 -29
Files changed (3)
app.py+101-20
index.html+70-9
test_manage.pyAdded+95