feat(benchmark): add disable/enable and rename to participant#627
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Co-Authored-By: lino <lino@rapidata.ai>
Code ReviewPR: feat(benchmark): add disable/enable and rename to participant OverviewAdds three lifecycle methods — IssuesBug —
|
What
Adds three lifecycle methods to
BenchmarkParticipantin the Python SDK:disable()— disables the participant, excluding it from evaluation and standings (sets status toDisabled).enable()— re-enables a previously disabled participant (sets status back toSubmitted). Added as the natural inverse sodisable()is reversible from the SDK.rename(name)— updates the participant's name and reflects it on the local object.All three wrap existing backend endpoints (
participant/{id}/disable,.../enable,.../name) via the generatedparticipant_api, and follow the existing tracing-span pattern used bydelete()/get_elo().Docs
Added "Renaming a Participant" and "Disabling Participants" sections to
docs/mri_advanced.md.Checks
uv run pyright src/rapidata/rapidata_client→ 0 errorsuv run black src/rapidata/rapidata_client→ cleanuv run --group docs mkdocs build→ builds (only pre-existing unrelated warnings)🔗 Session: ${POSEIDON_SESSION_URL:-$HOSTNAME}