[Feature Request] Add checkbox to enable overwritting existing problems on upload

Open
#1,197 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
full-stack

Research direction

No files or tests are named. Start by tracing the upload interface and the PID-assignment path for an uploaded .zip, then determine how an existing problem is identified. Done means a user can opt into overwriting an existing PID while preserving historical submission records, with the default behavior unchanged.

Written by the indexing model from the issue text.

Description

When I edit a problem locally and upload the updated .zip to Hydro, the system assigns a new PID if that PID already exists. I can't delete the old problem to reuse the PID because it would result in the loss of historical submission records.

It would be highly appreciated if we could add a checkbox (e.g., "Overwrite when PID exists") to the upload interface. This would allow users to update existing problems without breaking the link to past submissions.

Dominant language
TypeScript
Stars
7.3k
Forks
504
Avg merge
11h 29m
Merged PRs (30d)
2

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hydro-dev/Hydro

All issues in hydro-dev/Hydro

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.