-
Notifications
You must be signed in to change notification settings - Fork 452
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
Allow bulk deletion of Incomplete Submissions #10258
Conversation
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.
@taslangraham I just saw it's a work in progress, but sharing some nitpicks.
I've used the GitHub suggestions, so it's easier to pick the changes and do a single commit 😁
@jonasraoni Thanks for the early feedback! |
daf8647
to
0211993
Compare
classes/submission/Collector.php
Outdated
* @param int[] $submissionIds Submission IDs | ||
*/ | ||
public function filterBySubmissionIds(array $submissionIds): static |
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.
I think null
should be allowed to disable the filter.
* @param int[] $submissionIds Submission IDs | |
*/ | |
public function filterBySubmissionIds(array $submissionIds): static | |
* @param ?int[] $submissionIds Submission IDs | |
*/ | |
public function filterBySubmissionIds(?array $submissionIds): static |
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.
updated
@@ -34,7 +34,7 @@ class SubmissionAccessPolicy extends ContextPolicy | |||
* @param array $roleAssignments | |||
* @param string $submissionParameterName the request parameter we | |||
* expect the submission id in. | |||
* @param bool $permitDeclined True iff declined reviews are permitted for viewing by reviewers | |||
* @param bool $permitDeclined True if declined reviews are permitted for viewing by reviewers |
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.
I thought it was a typo as well, but it means "if and only if" 😁
0211993
to
04b0410
Compare
thanks for the review @jonasraoni |
Repo::submission()->delete($submission); | ||
} | ||
|
||
return response()->json([], Response::HTTP_OK); |
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.
Perhaps the frontend won't be very friendly with that, but the response()->noContent()
would fit better :)
Please, this feature would be great!! |
04b0410
to
7016b30
Compare
locale/en/common.po
Outdated
msgid "common.deselectAll" | ||
msgstr "Deselect All" |
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.
@jardakotesovec I'm not sure if your UI implementation uses this and the entry below. If not I'll remove them
c0730eb
to
d4858dc
Compare
1b60ce4
to
80dee35
Compare
80dee35
to
6fe672b
Compare
For #6528