Skip to content

Add zip-contents hint to the Add Dataset/Program upload form - #2603

Merged
Didayolo merged 3 commits into
developfrom
zip-content-hint-dataset-upload
Oct 2, 2026
Merged

Didayolo merged 3 commits into
developfrom
zip-content-hint-dataset-upload

Conversation

@Didayolo

@Didayolo Didayolo commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Original PR: #2566

Description

A common organizer mistake is zipping a scoring program, ingestion program or dataset with the files nested inside a subfolder rather than at the zip root. Codabench does not accept that layout, and the upload gives no indication of why. Organizers usually only find out after the submission fails.

This adds an inline hint to the Add Dataset/Program modal stating the root-level requirement, naming the files a program bundle needs, and linking to the docs that explain what each data type is for.

What changed

One file, nine lines, static markup only:

  • src/static/riot/datasets/management.tag — a <p class="form-note"> between the Type dropdown and the file input in the dataset_creation_modal form.

The modal is shared by every entry in the Type dropdown (public data, input data, reference data, scoring program, ingestion program, …), so the hint is shown for all of them rather than only for programs.

Notes for review

  • .form-note is not a new class. It is already used twice in src/static/riot/datasets/create.tag and its style block is compiled into the same riot.js bundle, which Riot 3 injects globally — so the hint picks up the existing muted-italic treatment with no new CSS.
  • No JavaScript, no tag options, no API or model changes. Nothing in the upload path is touched.
  • The added markup contains no {}, so there are no accidental Riot expressions.
  • The docs link points at the #data-types-and-their-role anchor of the Competition Bundle Structure page, which is where the meaning of each type is described.

Happy to reword the copy if you would prefer it shorter or placed elsewhere in the form.

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

pyxelr and others added 3 commits September 24, 2026 16:03
Explains that the zip file must contain files directly at its root
(not nested in a subfolder), and links to the Competition Bundle
Structure docs for what each dataset/program type means. This helps
organizers avoid a common mistake when uploading scoring programs,
ingestion programs, and datasets.
…-upload

Add zip-contents hint to the Add Dataset/Program upload form
@Didayolo
Didayolo merged commit e04d0d8 into develop Oct 2, 2026
1 check was pending
@Didayolo
Didayolo deleted the zip-content-hint-dataset-upload branch October 2, 2026 10:59
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.

2 participants