-
Notifications
You must be signed in to change notification settings - Fork 258
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
download file when submission is single source #2714
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: webapp/src/Controller/Team/SubmissionController.php
📄 File: webapp/src/Service/SubmissionService.php (Click to Expand)
Did you find this useful? React with a 👍 or 👎 |
} | ||
|
||
|
||
public function getSubmissionFileNums(Submission $submission): int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I would prefer the name getSubmissionFileCount
(and I assume we can mark it as private)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, Should I modify it once more, or will you handle the changes when merging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will remove the x
bit from such files, whether that is fine I leave up to the rest.
05e85a5
to
7e61cba
Compare
add spaces before/after, change method name, change download content type Update webapp/src/Service/SubmissionService.php Co-authored-by: MCJ Vasseur <[email protected]> Update webapp/src/Controller/Team/SubmissionController.php Co-authored-by: MCJ Vasseur <[email protected]> Update webapp/src/Service/SubmissionService.php Co-authored-by: MCJ Vasseur <[email protected]>
7e61cba
to
28df311
Compare
When there is only one uploaded file, download the file directly instead of downloading a compressed file.