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

Add question bank filter - Modifier and Owner

XMLWordPrintable

    • MOODLE_500_STABLE
    • MOODLE_500_STABLE
    • MDL-83881_main
    • Hide

      These filters are covered by behat tests in question/bank/viewcreator/tests/behat/filter_condition_modifier_name.feature and question/bank/viewcreator/tests/behat/filter_condition_creator_name.feature

      To test manually:

      1. As admin, Create a course, and enrol several different users on the course as Teachers.
      2. Create a question bank instance, and create a couple of questions.
      3. Log in as each Teacher, create a few questions, and edit a few questions.
      4. As any user, go to the question bank page and add a "Creator name" filter.
      5. Add a keyword matching all or part of a Teacher's name and click "Apply filters"
        • Confirm that questions created by that teacher are displayed.
      6. Add a another keyword matching part of another Teacher's name, and click "Apply filters".
        • Confirm that questions created by each teacher are displayed.
      7. Change the match type to "All" and click "Apply filters".
        • Confirm that the questions are not displayed (unless a teacher happens to have both words in their name)
      8. Change the match type to "None" and click "Apply filters"
        • Confirm that only questions created by other teachers are displayed.
      9. Remove the "Creator name" filter.
      10. Repeat steps 4-8 with the "Modifier name" filter, looking for questions modified by each user instead.
      Show
      These filters are covered by behat tests in question/bank/viewcreator/tests/behat/filter_condition_modifier_name.feature and question/bank/viewcreator/tests/behat/filter_condition_creator_name.feature To test manually: As admin, Create a course, and enrol several different users on the course as Teachers. Create a question bank instance, and create a couple of questions. Log in as each Teacher, create a few questions, and edit a few questions. As any user, go to the question bank page and add a "Creator name" filter. Add a keyword matching all or part of a Teacher's name and click "Apply filters" Confirm that questions created by that teacher are displayed. Add a another keyword matching part of another Teacher's name, and click "Apply filters". Confirm that questions created by each teacher are displayed. Change the match type to "All" and click "Apply filters". Confirm that the questions are not displayed (unless a teacher happens to have both words in their name) Change the match type to "None" and click "Apply filters" Confirm that only questions created by other teachers are displayed. Remove the "Creator name" filter. Repeat steps 4-8 with the "Modifier name" filter, looking for questions modified by each user instead.
    • Hide

      Code verified against automated checks.

      Checked MDL-83881 using repository: https://github.com/marxjohnson/moodle.git

      More information about this report

      Built on: Thu Mar 6 11:56:33 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-83881 using repository: https://github.com/marxjohnson/moodle.git main (0 errors / 0 warnings) [branch: MDL-83881_main | CI Job ] More information about this report Built on: Thu Mar 6 11:56:33 UTC 2025
    • Hide

      Launching automatic jobs for branch MDL-83881_main

      Built on: Thu Mar 6 14:39:43 UTC 2025

      Show
      Launching automatic jobs for branch MDL-83881 _main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/18443/ PHPUnit (sqlsrv / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/63181/ Behat (NonJS - boost and classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/63182/ Behat (Firefox - boost / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/63183/ Behat (Firefox - classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/63184/ App tests (stable app version) / complete) --> unrelated failure, please ignore. Built on: Thu Mar 6 14:39:43 UTC 2025

      Add an additional filter for the Modified by and Created by columns, to allow us to filter by the user who created and who last modified the questions.

      These should be text search fields. Initially let's base this on the users' displayed name, since that's what we can see in the table.

            marxjohnson Mark Johnson
            marxjohnson Mark Johnson
            CMR CMR
            Tim Hunt Tim Hunt
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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