canvas-lms/app
Ahmad Amireh 82b1e74f16 Quiz Stats - Maintain ERB compatibility
This patch makes it so that if you want to get the new stats from the
back-end, you'll have to explicitly pass a "legacy=false" parameter to
the report generator routine. Old code will use the old output, new code
will use the CanvasQuizStatistics gem for stats.

Closes CNVS-13198

TEST PLAN
---- ----

  - create a quiz with a bunch of questions and take it by multiple
    students
  - visit the ERB stats page at
    /courses/:course_id/quizzes/:quiz_id/statistics
    - verify that the page renders and looks just like how it was before
      the work on its ember counterpart
  - visit the ember stats page at
    /courses/:course_id/quizzes/fabulous_quizzes#:quiz_id/statistics
    - verify the ember page is still functional

Change-Id: I0a9e8d69eacc64a8727f238fc0c2e2acd44c0451
Reviewed-on: https://gerrit.instructure.com/35167
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Product-Review: Ahmad Amireh <ahmad@instructure.com>
2014-05-21 16:36:30 +00:00
..
coffeescripts add missing I18n to permissions page 2014-05-21 14:25:30 +00:00
controllers ember quizzes: take quiz button 2014-05-20 23:56:09 +00:00
helpers update student grade listing icons for submissions 2014-05-20 21:26:02 +00:00
messages extract lib/text_helper to gems/canvas_text_helper 2014-04-30 15:18:40 +00:00
middleware extract canvas statsd gem 2014-03-14 15:03:23 +00:00
models Quiz Stats - Maintain ERB compatibility 2014-05-21 16:36:30 +00:00
observers don't include submissions in recent_stream_items 2013-01-03 15:42:39 -07:00
presenters update student grade listing icons for submissions 2014-05-20 21:26:02 +00:00
serializers Quiz Stats - Maintain ERB compatibility 2014-05-21 16:36:30 +00:00
stylesheets speedgrader icons 2014-05-21 15:39:01 +00:00
views add missing I18n to permissions page 2014-05-21 14:25:30 +00:00