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

Group override does not appear on user calendar

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MDL-68867-master
    • Hide

      Setup

      You'll need:

      • A course (can be existing) with a user enrolled as student.
      • Create an assignment with a due date enabled, please take note of this date.

      Testing

      1. As admin go the Course home page > Participants.
      2. Select Groups in the select box.
      3. Create a new group called Group 1, but do not add the student to the group yet.
      4. Go to the assignment activity, click More menu and select Overrides
      5. On the Overrides page, select Group overrides and then click Add group override button.
      6. Create a group override for Group 1 setting the due date for a day in the future.
      7. Back to the group page, add the user to Group 1.
      8. In another tab (incognito) log in as the student.
      9. Confirm that calendar shows a due event on the exact date of the group override.
      10. In the admin window, create another another group Group 2, but do not add the student to the group yet.
      11. Back to the Overrides page, add a group override for the Group 2 and set due date for extra few days in the future.
      12. In the Groups page, add the user to Group 2 and remove Group 1.
      13. In the student window, refresh you calendar page.
      14. Make sure you are able to see the due date event in the date of the second group override
      Show
      Setup You'll need: A course (can be existing) with a user enrolled as student. Create an assignment with a due date enabled, please take note of this date. Testing As admin go the Course home page > Participants. Select Groups in the select box. Create a new group called Group 1 , but do not add the student to the group yet. Go to the assignment activity, click More menu and select Overrides On the Overrides page, select Group overrides and then click Add group override button. Create a group override for Group 1 setting the due date for a day in the future. Back to the group page, add the user to Group 1 . In another tab (incognito) log in as the student . Confirm that calendar shows a due event on the exact date of the group override. In the admin window, create another another group Group 2 , but do not add the student to the group yet. Back to the Overrides page, add a group override for the Group 2 and set due date for extra few days in the future. In the Groups page, add the user to Group 2 and remove Group 1 . In the student window, refresh you calendar page. Make sure you are able to see the due date event in the date of the second group override
    • 1
    • HQ Team International CIH2-225, HQ Team International CIH2-226

      Looks like I could find a way that will help to replicate MDL-67225.

      A very minor bug. Also it affects assignments.

      Here are steps to replicate the issue:

      1. Create a new Moodle instance.
      2. Create a user.
      3. Create a course.
      4. Create an assignment with due date enabled (eg on 5 June).
      5. Add calendar block to the course.
      6. Enroll the user to the course with student role.
      7. Create group1.
      8. Add group override for the group1 and set due date on 10 June.
      9. Set the group1 for the user.
      10. Open a new tab in incognito mode and login as the user.
      11. Confirm that calendar shows an event on 10 June.
      12. As an admin create group2.
      13. Add group override for the group2 and set due date on 15 June.
      14. Set the group2 for the user and remove group1.
      15. In the user tab refresh the page and confirm, that the calendar doesn't show any of these events.
      16. Re-login OR purging caches fixes the issue.

      This happens because `$USER->groupmember` is cached during the session, so new groupis is not being picked up here:

      https://github.com/moodle/moodle/blob/68fd8d8bdfffc23b252c17f017e7cb573fdb3019/calendar/lib.php#L2129-L2131

        1. MDL-68867_master_1.png
          MDL-68867_master_1.png
          81 kB
        2. MDL-68867_master_2.png
          MDL-68867_master_2.png
          72 kB
        3. MDL-68867_v311_1.png
          MDL-68867_v311_1.png
          91 kB
        4. MDL-68867_v311_2.png
          MDL-68867_v311_2.png
          91 kB
        5. MDL-68867_v400_1.png
          MDL-68867_v400_1.png
          72 kB
        6. MDL-68867_v400_2.png
          MDL-68867_v400_2.png
          72 kB

            lameze Simey Lameze
            mikhailgolenkov Misha Golenkov
            Shamim Rezaie Shamim Rezaie
            Jun Pataleta Jun Pataleta
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            19 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 5 hours, 14 minutes
                1d 5h 14m

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