When loading speedgrader in a class with a lot of students, the VeriCite API is called per student. This patch gets all student scores in one call for the assignment and stores them in the cache for quick retrieval
Test Plan:
1) Setup an instance with VeriCite's native integration (plugins)
2) Setup a course with hundreds of students
3) Create an assignment with VeriCite enabled
4) Submit to this assignment for each student
5) wait for reports to be ready
6) load speedgrader as instructor. This page load time shouldn't be any (much) slower than if the assignment didn't have VeriCIte enabled.
Change-Id: Iede9f79e94972e260ba2aaf8ca20062770e80c64
Reviewed-on: https://gerrit.instructure.com/112406
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
QA-Review: Keith T. Garner <kgarner@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
Test Plan:
1) Enable VeriCite in plugins. Use a real key and secret.
2) Create an assignment with VeriCite enabled
3) Submit to this assignment
4) Make sure report is generated (~10-15 mins)
In the calls to sendRequest in vericite.rb, the :ptype key was specified
twice. This fix removes the extra key and maintains the one
supported/defined by the code.
test plan:
- Confirm that both text entry and document submissions can be sent to
vericite
Change-Id: I88b387016224251f7925f2abc2b2fb6d31803688
Reviewed-on: https://gerrit.instructure.com/93748
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>