-
Notifications
You must be signed in to change notification settings - Fork 45
Submission soft-delete functionality added #1738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I think normal users only submit their submissions to a competition and it makes sense to allow them to delete submissions from the competition interface. We do show submissions in the resource interface but we should redesign the resource interface (I will present a plan soon). You can only delete submissions that are not on the leaderboard. In your last screenshot, the last submission is on the leaderboard that is why you don't see a delete button |
|
OK, works for me. I think the deletion from resources interface is not working then, only from the competition page. |
|
|
Hello @ihsaan-ullah, I tested the deletion features on a big file (2 GB) Here are the pictures of the resource tab I took before uploading it, after uploading it (and waiting for it to finish running. The space used goes during the run, not just once) and then a picture after I deleted the submissions from the competition submission page as a user. |
|
@ObadaS this is interesting. I will check on my side with a big file to see why full space is not freed. |
|
@ObadaS I checked on my side and I think when a submission is processed, some additional files are stored somewhere that takes additional space. Below are the details of my test
Edit:
|
|
@ihsaan-ullah I think you can get more information about the files that are stored and created by looking at the logs of the compute_worker. It seems like, after downloading the file and doing the work needed, it generates a new file that gets uploaded to the storage. If I remember well, I read something about predictions files, since the ingestion and scoring program can be different, the generated files needs to be uploaded to the storage ? I agree about changing the size unit to GB to be less confusing since people are more used to this. If not too complicated, it would also be nice if the size change dynamically (shows in MB or KB if needed, instead of showing 0GB or 0.1GB) |
Sounds good. I will check this |
…ven after deleting everything, changed default quota size from 15 GiB to 15 GB, updated soft-deletion
I made the following updates:
Some problems/thoughts
|
|
@ihsaan-ullah I confirm that now deleting submission does decrease the quota accordingly. I've just seen something a bit shady. I uploaded a submission with a size of 442 MB:
When the submission was being processed, I could see a consistent quota:
But at the end of the computation, the quota used by the submission doubled:
Is that normal? |
This needs a bit investigation but I think this comes from the prediction files stored after the submission is processed. If you remember, the prediction zip also includes the submission itself. BUT we should look into it together with my other points in my last comment |
|
@ihsaan-ullah OK, for this PR it's fine, let's open a new one (or an issue) for the points you mentionned. Deployed on production, it looks like the quota is not well computed:$
The bundles have NaN value for size, and my total storage used is 1.9 MB (on my main account on production server, which does not make sense). |













@ mention of reviewers
@Didayolo
A brief description of the purpose of the changes contained in this PR.
A new feature to soft-delete submissions has been added. Now participants can delete their submissions from their submissions panel without requesting organizers or platform admins. This will allow users to freeup some space to submit more submissions BUT this will not affect the submissions daily or overall limit.
The following is the summary of what is done in this PR:
-- prediction_result
-- scoring_result
-- detailed_result
-- data
Issues this PR resolves
Checklist