Skip to content

Add admin bulk submission delete endpoint#474

Merged
msaroufim merged 1 commit into
mainfrom
admin-bulk-delete-submissions
Apr 1, 2026
Merged

Add admin bulk submission delete endpoint#474
msaroufim merged 1 commit into
mainfrom
admin-bulk-delete-submissions

Conversation

@msaroufim

Copy link
Copy Markdown
Member

Summary

  • add an admin API to delete all submissions for a given leaderboard ID and username
  • delete dependent submission job status rows and runs before deleting submissions
  • add API and DB tests covering successful deletion and missing leaderboard handling

Validation

  • uv run --extra dev pytest tests/test_admin_api.py -q
  • uv run --extra dev pytest tests/test_leaderboard_db.py -q
  • exercised the endpoint locally against a temporary embedded Postgres instance with migrations applied; verified target submissions, runs, and submission_job_status rows were removed while another user's submission remained

@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/libkernelbot
  leaderboard_db.py
  utils.py
Project Total  

This report was generated by python-coverage-comment-action

@msaroufim msaroufim merged commit 2ed4719 into main Apr 1, 2026
4 checks passed
SinatrasC pushed a commit to SinatrasC/kernelbot that referenced this pull request Jun 17, 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