Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41725

move question statistics code and db tables into the question bank so that they can be used by other modules that use questions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Questions, Quiz
    • Labels:
    • Testing Instructions:
      Hide

      Run the quiz, question and quiz report unit tests. Or have the integration server do that for you.

      The statistics calculations themselves are checked by unit tests you can find in quiz/report/statistics/tests/.

      If you want to check the actual display of the reports then you could try the tool I created : https://github.com/jamiepratt/moodle-quiz_simulate

      See the README for installation instructions. And there is a example quiz back-up and stepdata.csv file in the mod/quiz/report/simulate/example/ directory to get you started.

      You could restore the backup and then upload the stepdata.csv to simulate attempts by students.

      Then check that the statistics report works. And that the graph displays correctly. And that when you click on the question names which are all hyperlinked you get taken to the response analysis.

      Show
      Run the quiz, question and quiz report unit tests. Or have the integration server do that for you. The statistics calculations themselves are checked by unit tests you can find in quiz/report/statistics/tests/. If you want to check the actual display of the reports then you could try the tool I created : https://github.com/jamiepratt/moodle-quiz_simulate See the README for installation instructions. And there is a example quiz back-up and stepdata.csv file in the mod/quiz/report/simulate/example/ directory to get you started. You could restore the backup and then upload the stepdata.csv to simulate attempts by students. Then check that the statistics report works. And that the graph displays correctly. And that when you click on the question names which are all hyperlinked you get taken to the response analysis.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-41725-master-onecommit

      Description

      We will move both the code and db tables for calculating and caching question statistics into the question/engine/ directory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jamiesensei Jamie Pratt
                Reporter:
                jamiesensei Jamie Pratt
                Peer reviewer:
                Tim Hunt
                Integrator:
                Marina Glancy
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13