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

Group selector tied into User selector

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 4.1
    • Gradebook
    • MOODLE_401_STABLE
    • Hide

      Prerequisites

      1. Login as admin
      2. Create a course.
      3. Add several activities.
      4. Enrol a teacher and 3 students (student1, student2 and student3) in the course.
      5. Create groups in the course (group1, group2)
      6. Add student1 to group1 and group2
      7. Add student2 to group2
      8. Add teacher to group1

      Test 1 (Group mode disabled)

      1. Login as a teacher.
      2. Go to the course.
      3. Navigate to course gradebook (Grades).
      4. Go to the User report in gradebook.
        • confirm that there ISN'T an option to select a group ('Click to select group' button) on the zero state page.
      5. Go to the Single view report in gradebook.
      6. In the initial zero state click on 'Users' in the 'view' toggle element.
      7. In the 'select user' zero state page
        • confirm that there ISN'T an option to select a group ('Click to select group' button) on the zero state page.
      8. Now click on 'Grade items' in the 'view' toggle element.
        • confirm that there ISN'T an option to select a group ('Click to select group' button) on the zero state page.

      Test 2 (Group mode enabled)

      1. Login as teacher.
      2. Go to the course.
      3. In the course settings page set 'Group mode' to 'Separate groups' and save changes.
      4. Navigate to course gradebook (Grades).
      5. Go to the User report in gradebook.
        1. confirm that there IS an option to select a group ('Click to select group' button) on the zero state page.
      6. Click on the 'Click to select group' button
        • confirm that you can see a 'Select a group' modal
        • confirm that the following options are present in the modal:
          • All participants
          • group1
          • group2
      7. Click on the group1 option
      8. Once the page reloads click on the 'Click to select' user button
        • confirm that the following options are present in the 'Select a user' modal
          • student1
          • All users (1)
      9. Repeat steps 6-8 with the other available group options and each time:
        • confirm that the correct group members (students) are displayed in the 'Select a user' modal
      10. Go to the Single view report in gradebook.
      11. In the initial zero state click on 'Users' in the 'view' toggle element.
      12. In the 'select user' zero state page
        • confirm that there IS an option to select a group ('Click to select group' button) on the zero state page.
      13. Repeat steps 6-8 with the all available group options and each time:
        • confirm that the correct group members (students) are displayed in the 'Select a user' modal
      14. Now click on 'Grade items' in the 'view' toggle element.
        • confirm that there IS an option to select a group ('Click to select group' button) on the zero state page.
      15. Click on the 'Click to select group' button
        • confirm that you can see a 'Select a group' modal
        • confirm that the following options are present in the modal:
          • All participants
          • group1
          • group2
      16. Click on the group1 option
      17. Click on the 'Select grade item' button
      18. Click on one of the grade items from the 'Select a grade item' modal
      19. In the Single view report page
        • confirm that you can only see student1 in the report table
      Show
      Prerequisites Login as admin Create a course. Add several activities. Enrol a teacher and 3 students (student1, student2 and student3) in the course. Create groups in the course (group1, group2) Add student1 to group1 and group2 Add student2 to group2 Add teacher to group1 Test 1 (Group mode disabled) Login as a teacher. Go to the course. Navigate to course gradebook (Grades). Go to the User report in gradebook. confirm that there ISN'T an option to select a group ('Click to select group' button) on the zero state page. Go to the Single view report in gradebook. In the initial zero state click on 'Users' in the 'view' toggle element. In the 'select user' zero state page confirm that there ISN'T an option to select a group ('Click to select group' button) on the zero state page. Now click on 'Grade items' in the 'view' toggle element. confirm that there ISN'T an option to select a group ('Click to select group' button) on the zero state page. Test 2 (Group mode enabled) Login as teacher. Go to the course. In the course settings page set 'Group mode' to 'Separate groups' and save changes. Navigate to course gradebook (Grades). Go to the User report in gradebook. confirm that there IS an option to select a group ('Click to select group' button) on the zero state page. Click on the 'Click to select group' button confirm that you can see a 'Select a group' modal confirm that the following options are present in the modal: All participants group1 group2 Click on the group1 option Once the page reloads click on the 'Click to select' user button confirm that the following options are present in the 'Select a user' modal student1 All users (1) Repeat steps 6-8 with the other available group options and each time: confirm that the correct group members (students) are displayed in the 'Select a user' modal Go to the Single view report in gradebook. In the initial zero state click on 'Users' in the 'view' toggle element. In the 'select user' zero state page confirm that there IS an option to select a group ('Click to select group' button) on the zero state page. Repeat steps 6-8 with the all available group options and each time: confirm that the correct group members (students) are displayed in the 'Select a user' modal Now click on 'Grade items' in the 'view' toggle element. confirm that there IS an option to select a group ('Click to select group' button) on the zero state page. Click on the 'Click to select group' button confirm that you can see a 'Select a group' modal confirm that the following options are present in the modal: All participants group1 group2 Click on the group1 option Click on the 'Select grade item' button Click on one of the grade items from the 'Select a grade item' modal In the Single view report page confirm that you can only see student1 in the report table
    • 2
    • HQ Team Alpha - Sprint 0.3, HQ Team Alpha - Sprint 0.4, Team Alpha - Review Sprint 0

      Summary:

      Given the base implementation created within the Single view report zero state issue (MDL-75267) we will need to implement similar functionality for grouping. It is likely changes will be required in the base implementation of the user widget to optionally take in a group ID to filter down enrolled users.

      Scope:

      1. Migrate the user widget into a generic component
      2. Implement group functionality
        1. Fetch groups within the course
        2. Filter groups based on name
        3. Pass a default group ID if no group is selected
        4. If a group is selected, Pass that to the user selector
      3. Automated testing
      4. Document the user & group widget

            mathewmay Mathew May
            mathewmay Mathew May
            Mihail Geshoski Mihail Geshoski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 6 hours, 16 minutes Time Not Required
                1d 6h 16m

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