1. 31 May, 2022 1 commit
    • Tim Hunt's avatar
      MDL-74752 question regrading: implement the required hooks · 39abc011
      Tim Hunt authored
      This commit implements the necessary core hooks to ensure we only
      allow a regrade of a quetion attempt to take place if the new and old
      versions of the question are sufficiently similar.
      
      It will be followed by commits to each question type where the
      new method needs to be implemented.
      
      Automated tests will be included in the first of those (mulitple choice)
      becuse we need a question type that implements the hooks to test
      the core changes.
      39abc011
  2. 08 Apr, 2022 1 commit
    • Tim Hunt's avatar
      MDL-74255 quiz: handle draft question status correctly · 839cccea
      Tim Hunt authored
      The main issue to fix is that questions vesions which should not have
      been used (that is, hidden or draft versions) were getting offered
      as an option and acutally being used.
      
      As part of this I was able to substantially un-tangle
      mod_quiz\question\bank\qbank_helper, which previously was
      a mass of functions calling other functions in a complicated way.
      Hopefully, it is now a bit easer to understand, and perhaps
      less buggy.
      839cccea
  3. 25 Mar, 2022 1 commit
  4. 22 Mar, 2022 1 commit
  5. 24 Feb, 2022 1 commit
    • Sujith Haridasan's avatar
      MDL-73335 mod_quiz: Add tertiary nav for the quiz module · 3458d159
      Sujith Haridasan authored and ilya's avatar ilya committed
      The tertiary navigation added for quiz module.
      
      - Added tertiary nav buttons for the edit, attempt and view page
      - urlselector is added to the overrides page to access user/groups
      - The secondary tabs are highlighted when user navigates to
        each page in quiz.
      - Updated the behat tests for the changes made.
      
      This commit is mostly Sujith's work, with further changes by
      Tim Hunt <T.J.Hunt@open.ac.uk> so we share the blame/credit.
      3458d159
  6. 15 Feb, 2022 1 commit
  7. 03 Feb, 2022 1 commit
    • Safat Shahin's avatar
      MDL-71696 mod_quiz: quiz updates and behat coverage · 111951d8
      Safat Shahin authored
      The versioning changes will require some major changes
      in the backup and restore of question bank and its
      elements. This change introduces those changes to make
      it compatible with the new world of versioning in question
      bank. This commit also removes quiz_slots fields and
      quiz_slot_tags table.
      This commit will also introduce the versioning db
      structure and some major changes to the quiz
      and quiz attempts for the question, random
      question and the view.
      This commit implements the behat changes for versioning
      in core question and associated locations.
      111951d8
  8. 06 Dec, 2021 1 commit
  9. 04 Oct, 2021 1 commit
    • Peter Dias's avatar
      MDL-52206 quiz: Remove completionpass completion from quiz · cd52b46e
      Peter Dias authored
      AMOS BEGIN
       MOV [completionpass,mod_quiz],[completionpassgrade,core_completion]
       MOV [completionpassdesc,mod_quiz],[completionpassgrade_desc,core_completion]
       MOV [completionpass_help,mod_quiz],[completionpassgrade_help,core_completion]
      AMOS END
      cd52b46e
  10. 05 May, 2021 1 commit
  11. 11 Nov, 2020 1 commit
  12. 23 Sep, 2020 1 commit
  13. 23 Feb, 2019 1 commit
  14. 02 Aug, 2018 1 commit
  15. 01 Mar, 2018 1 commit
  16. 08 Feb, 2018 1 commit
  17. 11 Jul, 2017 1 commit
  18. 10 Jul, 2017 1 commit
  19. 27 Jul, 2016 1 commit
  20. 19 Feb, 2016 1 commit
  21. 10 Feb, 2016 1 commit
  22. 20 Jan, 2016 1 commit
  23. 19 Jan, 2016 1 commit
    • Tim Hunt's avatar
      MDL-46091 quiz start attempt: rationalise confirmations. · 1f0f4131
      Tim Hunt authored
      1. Don't show a warning if there are a limited number of attempts, only
         if there is a time limit.
      2. Merge that time-limit warning into the same form that is used for
         entering a password, etc.
      3. Make that form an JavaScript dialogue when you click the start attempt
         button.
      
      AMOS BEGIN
        MOV ['confirmstarttimelimit', 'mod_quiz'], ['confirmstart', 'quizaccess_timelimit']
      AMOS END
      1f0f4131
  24. 10 Dec, 2015 1 commit
  25. 05 Apr, 2015 1 commit
    • M Kassaei's avatar
      MDL-40988 quiz: ability to break quizzes into sections · 5d949702
      M Kassaei authored
      The sections are created on the edit quiz page, and then appear in the
      navigation panel when the quiz is being attempted to help students find
      their way around.
      
      The 'Shuffle questions' setting has been moved from being per-quiz
      to being a per-section.
      
      This commit is actually the joint work of Mahmoud Kassaei and Tim Hunt
      from The Open University. We could only use one persons name for the
      commit and this time Mahmoud gets the credit/blame.
      5d949702
  26. 31 Mar, 2015 1 commit
    • Tim Hunt's avatar
      MDL-40992 quiz: option to let students redo questions within an attempt · 5e63b335
      Tim Hunt authored
      This feature is designed for use on pracice or formative quizzes.
      It is available for quizzes that use Interactive or Immediate feedback
      behaviour.
      
      If the teacher turns this on in the quiz settings, then once a student
      has finished a question, they get a 'Redo question' button beside the
      question. If they click it, then the question they finished is replaced
      by a new one so they can try again to practise that particul skill or
      bit of knowledge a bit more.
      
      When randomisation is involved, the studnets will be given a question or
      variant that they have not seen before if possible.
      5e63b335
  27. 18 Mar, 2015 1 commit
    • Tim Hunt's avatar
      MDL-40990 quiz: option to require prev Q finished before next shown · 441d284a
      Tim Hunt authored
      Further improvements to this code, including resolving edge cases:
      
      * The new feature can only be used when it is possible for the
      previous question in the quiz to be complete.
      
      * Also, this new feature cannot be used in combination with shuffle
      questions, because that make no sense; nor in combination with
      sequential navigation, because to make that work properly would be a lot
      of effort. If someone needs that to work later, it should be possible
      for them to implement it.
      
      * There were changes in the edit renderer API, to try to make things
      more  consistent, and to make it less likely we will need to change
      things again in the future. See mod/quiz/upgrade.txt.
      
      * As part of this change, the styling of the Edit quiz page was tweaked
      to make slighly more efficient use of the horizontal space, and to be
      more symmetrical.
      441d284a
  28. 20 Oct, 2014 1 commit
  29. 03 Oct, 2014 3 commits
    • Tim Hunt's avatar
    • Tim Hunt's avatar
      MDL-47132 quiz: move question bank extensions to classes/question/bank · 8aa5e0cf
      Tim Hunt authored
      While doing this code clean-up, I noticed that the question bank pop-up was
      only showing the question name, whereas it should have been showing the
      question name and the start of the question text, so I fixed that.
      8aa5e0cf
    • Colin Chambers's avatar
      MDL-43089 quiz: improved interface for building quizzes · e1a2d0d9
      Colin Chambers authored
      This commit is actually the joint work of Mahmoud Kassaei, Colin
      Chambers and Tim Hunt from The Open University. We could only use one
      persons name for the commit, and this time Colin gets the credit/blame.
      
      The goal of this work was to increase usability, and also clean up
      the page enough that it will be possible to add new features in future.
      
      Display of mod/quiz/edit.php is now entirely generated by
      mod_quiz\output\edit_renderer. This uses a helper class
      mod_quiz\structure to provide details of the structure of the quiz, and
      mod_quiz\repaginate to alter that structure. (Acutally, there are still
      some modification methods on mod_quiz\structure. Expect that to be
      cleaned up in future.)
      
      The new code uses much more ajax, and there are new scripts
      mod/quiz/edit_rest.php and mod/quiz/repaginate.php to handle this.
      (Again, don't be surprised if those two scripts get merged in future.)
      Also questionbank.ajax.php (which may, in future, be made more generic,
      and moved into the core question bank code.)
      
      Most of the new JavaScript code has intentionally copied the way things
      are done when editing activities on the course page.
      
      As a result of this, mod/quiz/editlib.php is now much shorter than it
      was. (In future, expect the remaining code in here to move into
      mod/quiz/classes.)
      e1a2d0d9
  30. 12 Jun, 2014 1 commit
  31. 02 Mar, 2014 1 commit
    • Tim Hunt's avatar
      MDL-43749 normalise quiz database structure. · ccba5b88
      Tim Hunt authored
      The sequence of questions that made up a quiz used to be stored as a
      comma-separated list in quiz.questions. Now the same information is
      stored in the rows in the quiz_slots table. This is not just 'better' in
      a database design sense, but it allows for the future changes we will
      need as we enhance the quiz in the MDL-40987 epic.
      
      Having changed the database structure, all the rest of the code needs to
      be changed to account for it, and that is done here.
      
      Note that there are not many unit tests for the changed bit. That is
      because as part of MDL-40987 we will be changing the code further, and
      we will add unit tests then.
      ccba5b88
  32. 17 Jan, 2014 1 commit
  33. 07 Nov, 2013 1 commit
  34. 21 Aug, 2013 1 commit
    • Tim Hunt's avatar
      MDL-38765 quiz view: fix duplicate message. · ad8f0117
      Tim Hunt authored
      The "No more attempts are allowed" message was being shown twice. I
      checked back, and it has been like that since before the quiz was
      converted to use a renderer. Still, it looks horrible, so changing it.
      ad8f0117
  35. 21 Aug, 2012 1 commit