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

Ordering question type core integration

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • Integrate the Ordering question type (qtype_ordering) into the Moodle core
    • MDL-79863-ordering
    • Hide

      Setup

      • Course with at least one teacher and one student.
      • Quiz activity in the course with unlimited attempts allowed.

      General test

      1. As a teacher, go to the quiz activity in the course.
      2. Try adding a new question to the quiz.
        • confirm you see the 'Ordering' question type in the list of available question types.
      3. Select to add a 'Ordering' question, configure it as follows and later save the changes:
        Setting Value
        Question name Number sorting
        Question text Sort the numbers in ascending order
        Draggable item 1 1
        Draggable item 2 3
        Draggable item 3 5
        Draggable item 4 7
        Draggable item 5 9
      4. As a student, go to the course and start a new quiz attempt.
        • confirm the ordering question has the items presented in a vertical layout and each item is draggable.
      5. Sort the items in the following order: 5, 9, 7, 1, 3. Finish the attempt, then Submit the attempt.
        • confirm you see a preview of your answers (items are not draggable) while all items are marked red, indicating incorrect answers.
        • confirm you see a feedback area where it's stated that the answer is incorrect, including additional information such as the grading type used, scores for each item and a preview of the correct answer.
      6. Re-attempt the quiz, but now sort the items in the following order: 5, 3, 9, 7, 1. Finish the attempt, then Submit the attempt.
        • confirm you see a preview of your answer (items are not draggable) where items 5, 9 and 1 are marked red, indicating an incorrect answer and items 3 and 7 are marked green, indicating a correct answer (order).
        • confirm you see a feedback area where it's stated that the answer is partially correct, including additional information such as the grading type used, scores for each item and a preview of the correct answer (order).
      7. Re-attempt the quiz once again, and now, drag the items in the following order: 1, 3, 5, 7, 9. Finish the attempt, then Submit the attempt
        • confirm you see a preview of your answer (items are not draggable) where all items are marked green, indicating a correct answer.
        • confirm you see a feedback area where it's stated that the answer is correct without any additional information.
      • As a teacher, modify the settings of the ordering question and set different options such as:
        • Different items layout.
        • Showing only a subset of items.
        • Set different grading types.
        • Set to hide the grading details.
        • Set different numbering styles.
        • Different draggable items (e.g. use HTML format and add images & multimedia)
        • etc.
      • Repeat the testing steps 4-7 and confirm each time the draggable options, preview of the answer and feedback are correctly displayed based on the configured options.

      Backup & restore test

      1. As a teacher go to the quiz and create a backup of the activity using the default backup configuration settings.
        • confirm a backup of the activity was successfully created.
      2. Restore the activity backup into the same course using the default restore configuration settings.
        • confirm the activity was successfully restored.
      3. Go to the question area of the restored quiz activity.
        • confirm the ordering question exists.
        • confirm the settings from the ordering question from the original quiz are also applied to the ordering question of the restored quiz activity. 

      Upgrade test

      1. On a 4.3 Moodle instance, install the ordering question type plugin (https://moodle.org/plugins/qtype_ordering)
      2. Create a course with a quiz activity.
      3. In the quiz activity, create a few ordering questions with the following settings:
        Setting Question 1 Question 2 Question 3
        Question name Objects Words Numbers
        Question text Sort the objects from smallest to largest Sort the words in alphabetical order Sort the numbers in ascending order
        Layout of items Vertical Horizontal Vertical
        Item selection type Select a continuous subset of items Select a random subset of items Select all items
        Size of subset 3 All  
        Grading type Absolute position Relative to correct position Relative to both the previous and next items
        Grading details Show Hide Show
        Number the choices a., b., c., ... 1., 2., 3, ... No numbering
        Draggable item 1 pen apple 1
        Draggable item 2 chair boat 3
        Draggable item 3 car cat 5
        Draggable item 4 plane dog 7
        Draggable item 5     9
      4. Switch to integration main branch and run the upgrade process.
      5. Go to the Questions area of the quiz activity in the course.
        • confirm the questions are still present.
      6. Go to the settings page of the "Objects" question.
        • confirm the question's configuration remained the same after the upgrade.
        • confirm the setting 'Size of subset' is represented by a numerical input field.
      7. Go back to the Questions area and now go to the settings page of the "Words" question.
        • confirm the setting 'Size of subset' is represented by a numerical input field and is set to 4.
        • confirm the rest of the question's configuration remained the same after the upgrade.
      8. Go back to the Questions area and now go to the settings page of the "Numbers" question.
        • confirm the question's configuration remained the same after the upgrade.
      9. Attempt the quiz and answer the questions.
        • confirm the questions and feedback are still correctly displayed based on their configuration.
      Show
      Setup Course with at least one teacher and one student. Quiz activity in the course with unlimited attempts allowed. General test As a teacher, go to the quiz activity in the course. Try adding a new question to the quiz. confirm you see the 'Ordering' question type in the list of available question types. Select to add a 'Ordering' question, configure it as follows and later save the changes: Setting Value Question name Number sorting Question text Sort the numbers in ascending order Draggable item 1 1 Draggable item 2 3 Draggable item 3 5 Draggable item 4 7 Draggable item 5 9 As a student, go to the course and start a new quiz attempt. confirm the ordering question has the items presented in a vertical layout and each item is draggable. Sort the items in the following order: 5, 9, 7, 1, 3. Finish the attempt, then Submit the attempt. confirm you see a preview of your answers (items are not draggable) while all items are marked red, indicating incorrect answers. confirm you see a feedback area where it's stated that the answer is incorrect, including additional information such as the grading type used, scores for each item and a preview of the correct answer. Re-attempt the quiz, but now sort the items in the following order: 5, 3, 9, 7, 1. Finish the attempt, then Submit the attempt. confirm you see a preview of your answer (items are not draggable) where items 5, 9 and 1 are marked red, indicating an incorrect answer and items 3 and 7 are marked green, indicating a correct answer (order). confirm you see a feedback area where it's stated that the answer is partially correct, including additional information such as the grading type used, scores for each item and a preview of the correct answer (order). Re-attempt the quiz once again, and now, drag the items in the following order: 1, 3, 5, 7, 9. Finish the attempt, then Submit the attempt confirm you see a preview of your answer (items are not draggable) where all items are marked green, indicating a correct answer. confirm you see a feedback area where it's stated that the answer is correct without any additional information. As a teacher, modify the settings of the ordering question and set different options such as: Different items layout. Showing only a subset of items. Set different grading types. Set to hide the grading details. Set different numbering styles. Different draggable items (e.g. use HTML format and add images & multimedia) etc. Repeat the testing steps 4-7 and confirm each time the draggable options, preview of the answer and feedback are correctly displayed based on the configured options. Backup & restore test As a teacher go to the quiz and create a backup of the activity using the default backup configuration settings. confirm a backup of the activity was successfully created. Restore the activity backup into the same course using the default restore configuration settings. confirm the activity was successfully restored. Go to the question area of the restored quiz activity. confirm the ordering question exists. confirm the settings from the ordering question from the original quiz are also applied to the ordering question of the restored quiz activity.  Upgrade test On a 4.3 Moodle instance, install the ordering question type plugin ( https://moodle.org/plugins/qtype_ordering) Create a course with a quiz activity. In the quiz activity, create a few ordering questions with the following settings: Setting Question 1 Question 2 Question 3 Question name Objects Words Numbers Question text Sort the objects from smallest to largest Sort the words in alphabetical order Sort the numbers in ascending order Layout of items Vertical Horizontal Vertical Item selection type Select a continuous subset of items Select a random subset of items Select all items Size of subset 3 All   Grading type Absolute position Relative to correct position Relative to both the previous and next items Grading details Show Hide Show Number the choices a., b., c., ... 1., 2., 3, ... No numbering Draggable item 1 pen apple 1 Draggable item 2 chair boat 3 Draggable item 3 car cat 5 Draggable item 4 plane dog 7 Draggable item 5     9 Switch to integration main branch and run the upgrade process. Go to the Questions area of the quiz activity in the course. confirm the questions are still present. Go to the settings page of the "Objects" question. confirm the question's configuration remained the same after the upgrade. confirm the setting 'Size of subset' is represented by a numerical input field. Go back to the Questions area and now go to the settings page of the "Words" question. confirm the setting 'Size of subset' is represented by a numerical input field and is set to 4 . confirm the rest of the question's configuration remained the same after the upgrade. Go back to the Questions area and now go to the settings page of the "Numbers" question. confirm the question's configuration remained the same after the upgrade. Attempt the quiz and answer the questions. confirm the questions and feedback are still correctly displayed based on their configuration.

      The Moodle Users Association (MUA) has voted on integrating the Moodle ordering question type into Moodle core.

      The ordering question type displays several items in a random order which the user then drags into the correct sequential order. An ordering question can display all items or a subset of items.

      • items can be plain text or formatted HTML, including text, images, audio and video.
      • items can be listed vertically or horizontally
      • several grading methods are available, ranging from a simple all-or-nothing grade, to more complex partial grades that consider the placement of each item relative to other items

      The integration will be primarily focused on updating the JavaScript AMD modules to use native ES6 and migrating the rest of the existing plugin into Moodle. Some minimal work will be required to the plugin to meet Moodle coding requirements. This work should also convert the display logic into templates so that we may easily update layouts and allow community developers to modify the display without having to affect the underlying logic. The gift formatting functions should be moved out of the ordering question type and integrated into the gift question format, along with associated tests in question/format/gift/tests/giftformat_test.php, to ensure it remains compatible with the ordering question type.

      New features and drastic changes will not be a part of the project scope for bringing the ordering question type into Moodle and any changes for the user experience should be minimal.

            mathewmay Mathew May
            Geshoski Mihail Geshoski
            Mihail Geshoski Mihail Geshoski
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 4 hours, 2 minutes
                3d 4h 2m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.