Skip to content
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

fixed regrade all bug if autograde job fails #70

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Searay-330
Copy link
Collaborator

No description provided.

@Searay-330 Searay-330 requested a review from daviddob May 23, 2020 18:13
@Searay-330 Searay-330 self-assigned this May 23, 2020
@@ -119,15 +120,16 @@ def regradeAll
redirect_to([@course, @assessment, :submissions]) && return
elsif job < 0 # autograding failed
failed_jobs += 1
failed_list += "#{@submission.filename}: autograding error.<br>"
failed_list += "#{submission.filename}: #{flash[:error]}.<br>"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this behavior look like? Is it necessary to have a flash inside of a message that will be itself flashed on line 132?

end
end

flash[:error] = "Warning: Could not regrade #{failed_jobs} submission(s):<br>" + failed_list if failed_jobs > 0
flash[:error] = "Error: Could not regrade #{failed_jobs} submission(s):<br>" + failed_list if failed_jobs > 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should likely still be a warning as it has regraded all other jobs successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants