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

Update tag modal to allow managing of question and course context level tag instances

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Set up

      1. Log in as admin
      2. Create 2 courses, c1 and c2
      3. Enrol a user, t1, as a teacher in both courses
      4. Enrol a user, t2, as a teacher only in c1
      5. Create the Question sharer role and assign it to t1 and t2 in the system context
        • Note: When defining the permissions for the Question sharer role set the moodle/question:tagall permission to "Allow"

      Course question

      1. Log in as t1
      2. Navigate to c1 and view the question bank questions
        • Edit cog > question bank > questions
      3. Create a new question (q1) in the “Default for c1” category (doesn’t matter what the question type is)
        • In the “Tags” section add the tag “c1 tag”
        • Save changes
      4. In the question bank questions view click the tags icon in line with question q1
      5. CONFIRM that a single "Tags" section with "c1 tag" in it appears
      6. CONFIRM that you do not see a "Course: <course name> tags" section
      7. CONFIRM that you can modify the tags by deleting the existing tags and adding new ones
      8. Save changes
      9. Click the tags icon again to open the modal again
      10. CONFIRM that the changes you made to the tags above are still there
      11. Log in as t2
      12. Navigate to c1 and view the question bank questions
      13. Click the tags icon in line with question q1
      14. CONFIRM that the tags in the "Tags" section are the same as above
      15. CONFIRM that you do not see a "Course: <course name> tags" section
      16. CONFIRM that you can edit the tags as described above

      Activity question

      1. Log in as t1
      2. Navigate to c1
      3. Create and view a quiz activity (quiz1)
      4. View the question bank questions from the quiz activity
        • edit cog > question bank > questions
      5. Set “Select a category” to “Default for quiz1”
      6. Create a new question (q2) (doesn’t matter what the question type is)
        • In the “Tags” section add the tag “a1 tag”
        • Save changes
      7. Set “Select a category” to “Default for quiz1”
      8. In the question bank questions view click the tags icon in line with question q2
      9. CONFIRM that a single "Tags" section with "a1 tag" in it appears
      10. CONFIRM that you do not see a "Course: <course name> tags" section
      11. CONFIRM that you can modify the tags by deleting the existing tags and adding new ones
      12. Save changes
      13. Click the tags icon again to open the modal again
      14. CONFIRM that the changes you made to the tags above are still there
      15. Log in as t2
      16. Navigate to quiz1 and view the question bank questions
      17. Set “Select a category” to “Default for quiz1”
      18. Click the tags icon in line with question q2
      19. CONFIRM that the tags in the "Tags" section are the same as above
      20. CONFIRM that you do not see a "Course: <course name> tags" section
      21. CONFIRM that you can edit the tags as described above

      Course category question

      1. Log in as t1
      2. Navigate to c1 and view the question bank questions
      3. Set “Select a category” to "Default for Miscellaneous"
      4. Create a new question (q3) (doesn't matter what the question type is)
        • Add a tag "cc1 tag" to the "Tags" section
        • Add a tag "c1 tag" to the course tags (something like “Course: Course 1 tags”) section
        • Save changes
      5. Set “Select a category” to “Default for Miscellaneous
      6. In the question bank questions view click the tags icon in line with question q3
      7. CONFIRM that a "Tags" section with "cc1 tag" in it appears
      8. CONFIRM that a "Course: <course name> tags" section appears with "c1 tag" in it
      9. CONFIRM that you can modify the tags in each of the 2 sections by deleting the existing tags and adding new ones
      10. Save changes
      11. Click the tags icon again to open the modal again
      12. CONFIRM that the changes you made to the tags above are still there
      13. Log in as t2
      14. Navigate to c1 and view the question bank questions
      15. Set “Select a category” to “Default for Miscellaneous”
      16. Click the tags icon in line with question q3
      17. CONFIRM that the tags in the "Tags" section are the same as above
      18. CONFIRM that the tags in the "Course: <course name> tags" section are the same as above
      19. CONFIRM that you can edit the tags as described above

      Course category shared question

      1. Log in as t1
      2. Navigate to c2 and view the question bank questions
      3. Set “Select a category” to the “Default for Miscellaneous"
      4. Click the tags icon in line with question q3
      5. CONFIRM that you see a section for "Tags". These tags should be shared by all courses in that category so you should see the tags that you added to this section in the previous test.
      6. CONFIRM that you see a section for course tags. This time it’s the tags for c2 so it should be empty. You should not see the c1 tags you added to the course tags section in the previous test.
      7. Add some tags to the c2 course tags section
      8. Modify (add and/or remove) tags from the "Tags" section
      9. Save changes
      10. Click the tags icon in line with question q3
      11. CONFIRM that the changes you made to the tags above were saved
      12. Navigate to c1 and view the question bank questions
      13. Set “Select a category” to the “Default for Miscellaneous"
      14. Click the tags icon in line with question q3
      15. CONFIRM that you see the same values in the "Tags" section as you did after modifying them a few steps ago
      16. CONFIRM that you do not see the c2 course tags that you set a few steps ago, instead you should see a course tags section for c1 and it should have the values that were last set on them in the previous "Course category question" test
      Show
      Set up Log in as admin Create 2 courses, c1 and c2 Enrol a user, t1, as a teacher in both courses Enrol a user, t2, as a teacher only in c1 Create the Question sharer role and assign it to t1 and t2 in the system context Note: When defining the permissions for the Question sharer role set the moodle/question:tagall permission to "Allow" Course question Log in as t1 Navigate to c1 and view the question bank questions Edit cog > question bank > questions Create a new question (q1) in the “Default for c1” category (doesn’t matter what the question type is) In the “Tags” section add the tag “c1 tag” Save changes In the question bank questions view click the tags icon in line with question q1 CONFIRM that a single "Tags" section with "c1 tag" in it appears CONFIRM that you do not see a "Course: <course name> tags" section CONFIRM that you can modify the tags by deleting the existing tags and adding new ones Save changes Click the tags icon again to open the modal again CONFIRM that the changes you made to the tags above are still there Log in as t2 Navigate to c1 and view the question bank questions Click the tags icon in line with question q1 CONFIRM that the tags in the "Tags" section are the same as above CONFIRM that you do not see a "Course: <course name> tags" section CONFIRM that you can edit the tags as described above Activity question Log in as t1 Navigate to c1 Create and view a quiz activity (quiz1) View the question bank questions from the quiz activity edit cog > question bank > questions Set “Select a category” to “Default for quiz1” Create a new question (q2) (doesn’t matter what the question type is) In the “Tags” section add the tag “a1 tag” Save changes Set “Select a category” to “Default for quiz1” In the question bank questions view click the tags icon in line with question q2 CONFIRM that a single "Tags" section with "a1 tag" in it appears CONFIRM that you do not see a "Course: <course name> tags" section CONFIRM that you can modify the tags by deleting the existing tags and adding new ones Save changes Click the tags icon again to open the modal again CONFIRM that the changes you made to the tags above are still there Log in as t2 Navigate to quiz1 and view the question bank questions Set “Select a category” to “Default for quiz1” Click the tags icon in line with question q2 CONFIRM that the tags in the "Tags" section are the same as above CONFIRM that you do not see a "Course: <course name> tags" section CONFIRM that you can edit the tags as described above Course category question Log in as t1 Navigate to c1 and view the question bank questions Set “Select a category” to "Default for Miscellaneous" Create a new question (q3) (doesn't matter what the question type is) Add a tag "cc1 tag" to the "Tags" section Add a tag "c1 tag" to the course tags (something like “Course: Course 1 tags”) section Save changes Set “Select a category” to “Default for Miscellaneous In the question bank questions view click the tags icon in line with question q3 CONFIRM that a "Tags" section with "cc1 tag" in it appears CONFIRM that a "Course: <course name> tags" section appears with "c1 tag" in it CONFIRM that you can modify the tags in each of the 2 sections by deleting the existing tags and adding new ones Save changes Click the tags icon again to open the modal again CONFIRM that the changes you made to the tags above are still there Log in as t2 Navigate to c1 and view the question bank questions Set “Select a category” to “Default for Miscellaneous” Click the tags icon in line with question q3 CONFIRM that the tags in the "Tags" section are the same as above CONFIRM that the tags in the "Course: <course name> tags" section are the same as above CONFIRM that you can edit the tags as described above Course category shared question Log in as t1 Navigate to c2 and view the question bank questions Set “Select a category” to the “Default for Miscellaneous" Click the tags icon in line with question q3 CONFIRM that you see a section for "Tags". These tags should be shared by all courses in that category so you should see the tags that you added to this section in the previous test. CONFIRM that you see a section for course tags. This time it’s the tags for c2 so it should be empty. You should not see the c1 tags you added to the course tags section in the previous test. Add some tags to the c2 course tags section Modify (add and/or remove) tags from the "Tags" section Save changes Click the tags icon in line with question q3 CONFIRM that the changes you made to the tags above were saved Navigate to c1 and view the question bank questions Set “Select a category” to the “Default for Miscellaneous" Click the tags icon in line with question q3 CONFIRM that you see the same values in the "Tags" section as you did after modifying them a few steps ago CONFIRM that you do not see the c2 course tags that you set a few steps ago, instead you should see a course tags section for c1 and it should have the values that were last set on them in the previous "Course category question" test
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-61364-master

      Description

      The same requirements as MDL-61363 but for the tag modal added in MDL-61133.

        Attachments

        1. Activity question_Test Passed.png
          207 kB
          Gladys Basiana
        2. Course category question.PNG
          208 kB
          Janelle Barcega
        3. Course category shared question.PNG
          137 kB
          Janelle Barcega
        4. Course Question_Test Passed.png
          177 kB
          Gladys Basiana

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 1 day, 6 hours, 45 minutes
                  1w 1d 6h 45m