PAIR-code / PAIR-code/deliberate-lab
bug: Experiment name slashes preserved in zip construction
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 96
- Forks
- 40
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 20
Description
The "private experiment name" field for an experiment is used as a prefix to name files when constructing the zip that's downloaded from the "Download experiment data" button. If the private experiment name contains slashes, these are preserved in the zip creation, meaning the zip will have nested subdirectories.
For example, if you name your experiment FOO/BAR, then the zip file will be named FOO_BAR_data.zip, but the files inside will be FOO/BAR.json, FOO/BAR_Alerts.csv and so on.
Recommend applying the same slash replacement treatment to the files within the zip as to the zip itself.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the zip-construction entry point used by the “Download experiment data” button and trace how the private experiment name becomes internal file names. Verify the archive with a name such as FOO/BAR; done means its files use the same slash-replaced prefix as the downloaded zip name, without creating nested directories.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100