Skip to content

Let competition admins see hidden leaderboard columns - #2709

Merged
Didayolo merged 2 commits into
codalab:admin-hidden-scoresfrom
tomMoral:admin-hidden-scores
Nov 17, 2026
Merged

Didayolo merged 2 commits into
codalab:admin-hidden-scoresfrom
tomMoral:admin-hidden-scores

Conversation

@tomMoral

@tomMoral tomMoral commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

@ mention of reviewers

@ihsaan-ullah @Didayolo

Description

Hidden leaderboard columns are private to the competition admins (creator,
collaborators, superusers): participants still never see them, and the
admins now do. The organizers can then monitor the private test set during
the challenge, without downloading the scoring output of every submission.

  • Submission API (/api/submissions/, list and detail): admins get the
    hidden scores. Each score now says whether its column is hidden. The
    permission check is cached per competition, so a list view adds a couple of queries
    per competition, not per submission.
  • Leaderboards (/api/phases/<id>/get_leaderboard/ and
    /api/leaderboards/<id>/): admins get the hidden columns and their scores.
    The ranking still uses the visible columns only, so it is the same for
    admins and participants.
  • Results export (/api/competitions/<id>/results.<json|csv|zip>):
    all_submissions=true exports every finished submission of the phase, on
    the leaderboard or not, with created_when and on_leaderboard. The
    export already included hidden columns. It now does so on purpose, and a
    test covers it.
  • Interface: the leaderboard marks hidden columns with an icon, and its
    download menu has an "All finished submissions (CSV)" entry. The
    submissions panel has a "Hidden scores" column, shown only when the API
    sent hidden scores, so only to admins.

This reverses part of #2526, which hid these scores from everyone "for
consistency with the columns metadata". Admins could already get them from
the results export and from the scoring output, so this change exposes
nothing new. It makes them usable.

/api/leaderboards/<id>/ orders its entries by every column, hidden ones
included, for everyone. This PR does not change it.

Issues this PR resolves

Closes #2708

A checklist for hand testing

  • As the competition creator, the Results tab shows the hidden columns with the eye-slash icon, and the row order is the same as for a participant.
  • As a participant, the Results tab shows no hidden column.
  • As the creator, the submissions panel shows the "Hidden scores" column. As a participant, it does not.
  • The download menu's "All finished submissions (CSV)" entry lists finished submissions that are not on the leaderboard, with their hidden scores.
  • As a participant, /api/submissions/?phase=<id> returns no hidden score.

Any relevant files for testing

Any competition with a hidden: true column in its leaderboard.

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Ready to merge

@tomMoral
tomMoral marked this pull request as ready for review November 6, 2026 08:38
@Didayolo
Didayolo changed the base branch from develop to admin-hidden-scores November 17, 2026 15:05
@Didayolo
Didayolo merged commit 83f5546 into codalab:admin-hidden-scores Nov 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.

Let competition admins monitor hidden leaderboard columns

2 participants