Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Assignment Marks Not Updating Consistently #851
Logged in as administrator, navigated to assignments, submissions, then clicked on a group's name to open their assignment. The marking rubric on the right is not working consistently.
Generally when you click on a mark the criteria will collapse and after a few seconds the mark you gave it appears underneath the title. Sometimes the mark does not update, and a 404 message appears in the console.
Started POST "/en/assignments/1/submissions/1/results/update_mark?mark=2&mark_id=2" for 127.0.0.1 at Sat Sep 29 11:15:04 -0400 2012
I did some investigation on this issue. The issue is when you click on the a mark criteria there are 2 ways for the marks to get updated.
However, the issue at hand is that they both called update_mark_assignment_submission_results_path(). This should have been fine but the Ajax Request was expecting a POST while link_to was expecting a GET. In routes.rb there was only a GET defined. Thus causing it to work only some time.
What needs to be done is remove one of the calls (the link_to one) as i really don't see the point of having both and update the AJAX call to be a GET request and it should solve it.
The file that you should be looking at is _marker_rubric_criterion_li.html.erb in \app\views\results\marker