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

Add default options for ddimageortext, ddmarker and match question types

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.11
    • Fix Version/s: 3.11
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      Testing needs to be done for the following question types:

      • Drag and drop onto image (qtype_ddimageortext)
      • Drag and drop markers (qtype_ddmarker)
      • Matching (qtype_match)

      For testing you need a Moodle course and at least two users who can create questions.

      1. Create a Moodle course
      2. Create two user (eg. editingteacher), teacher 1 and teacher2.
      3. Enrol teacher1 and teacher2 in the your course
      4. Login as teacher1 into this course
      5. Go to the question bank
      6. Press "Create a new question ..." button
      7. Choose a 'Drag and drop onto image' and press the "Add" button
      8. While filling the question fields, make a note of the original default value of ‘Default mark’, ‘Shuffle drag items each time question is attempted’ fields, then change the values of these fields and remember them
      9. Press "Save changes" button
      10. Press "Create a new question ..." button again
      11. Choose a 'Drag and drop onto image' the press "Add" button
      12. Verify" that the values of the fields you have changed in previous 'Drag and drop onto image' question appear on the form as defaults.
      13. Logout
      14. Login as teacher 2 into this course
      15. Go to the question bank
      16. Press "Create a new question ..." button
      17. Choose a 'Drag and drop onto image' and press the "Add" button
      18. Verify that default values are displayed again (so values changed for teacher1 previously doesn't appear).
        • In other words, when user create a new question and modify some default setting, they are saved as user preference, so that the next time when a new question of the same type is created by the same user, the default values are taken from the user_preferences table for this user. I.e, teacher1 gets their preference as defaults for a new 'Drag and drop onto image', whereas teacher2 will get original default values.

       

      The testing has to be done in the same way for:

      • "Drag and drop markers" (qtype_ddmarker) with fields:
        • 'Default mark'
        • 'Highlight drop zones which have not had the correct marker dropped on them'
        • 'Shuffle drag items each time question is attempted'
      • "Matching" (qtype_match) with fields:
        • 'Default mark'
        • 'Shuffle'

       

      Show
      Testing needs to be done for the following question types: Drag and drop onto image (qtype_ddimageortext) Drag and drop markers (qtype_ddmarker) Matching (qtype_match) For testing you need a Moodle course and at least two users who can create questions. Create a Moodle course Create two user (eg. editingteacher), teacher 1 and teacher2. Enrol teacher1 and teacher2 in the your course Login as teacher1 into this course Go to the question bank Press "Create a new question ..." button Choose a 'Drag and drop onto image' and press the "Add" button While filling the question fields, make a note of the original default value of ‘Default mark’, ‘Shuffle drag items each time question is attempted’ fields, then change the values of these fields and remember them Press "Save changes" button Press "Create a new question ..." button again Choose a 'Drag and drop onto image' the press "Add" button Verify " that the values of the fields you have changed in previous 'Drag and drop onto image' question appear on the form as defaults. Logout Login as teacher 2 into this course Go to the question bank Press "Create a new question ..." button Choose a 'Drag and drop onto image' and press the "Add" button Verify  that default values are displayed again (so values changed for teacher1 previously doesn't appear). In other words, when user create a new question and modify some default setting, they are saved as user preference, so that the next time when a new question of the same type is created by the same user, the default values are taken from the user_preferences table for this user. I.e, teacher1 gets their preference as defaults for a new 'Drag and drop onto image', whereas teacher2 will get original default values .   The testing has to be done in the same way for: "Drag and drop markers" (qtype_ddmarker) with fields: 'Default mark' 'Highlight drop zones which have not had the correct marker dropped on them' 'Shuffle drag items each time question is attempted' "Matching" (qtype_match) with fields: 'Default mark' 'Shuffle'  
    • Affected Branches:
      MOODLE_311_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull 3.11 Branch:
      MDL-71225_311
    • Pull Master Branch:

      Description

      Adding the functionality to use user-preferences for setting and getting default value of relevant form elements for the following qtypes:
      ddimageortext
      ddmarker
      match

      Based on the functionality introduced in https://tracker.moodle.org/browse/MDL-70895

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mkassaei Mahmoud Kassaei
              Reporter:
              mkassaei Mahmoud Kassaei
              Peer reviewer:
              Tim Hunt Tim Hunt
              Integrator:
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 35 minutes
                  1h 35m