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

Calendar: Inconsistent visibility of group events

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.4.4, 3.5.1, 3.6
    • Calendar
    • MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • MDL-63291_master
    • Hide

      The workaround is viewing a single course in the calendar. Then you always see all group events of it given you have one of the necessary capabilities.

      Show
      The workaround is viewing a single course in the calendar. Then you always see all group events of it given you have one of the necessary capabilities.
    • Easy
    • Hide

      As admin:

      1. Create courses A and B.
      2. Enrol user T as teacher into courses A and B.
      3. In course A set group mode to "Separate groups".
      4. In course A create groups 1 and 2.
      5. Add user T to group 1.

      As user T:

      1. Go to the calendar.
      2. Select "All courses".
      3. Create a group event E for course A group 1.
        => You see event E.
      4. Create a group event F for course A group 2.
        => You don't see event F.
        => This is confusing.
      5. Select course A in the course dropdown.
        => You see both events E and F.
      Show
      As admin: Create courses A and B. Enrol user T as teacher into courses A and B. In course A set group mode to "Separate groups". In course A create groups 1 and 2. Add user T to group 1. As user T: Go to the calendar. Select "All courses". Create a group event E for course A group 1. => You see event E. Create a group event F for course A group 2. => You don't see event F. => This is confusing. Select course A in the course dropdown. => You see both events E and F.

      I've asked about this in the calendar forum, but haven't received any answer there for over three weeks. Therefore I created an issue for it hoping I can get some feedback this way.

      The problem is this: If you have permission to view all groups in a course you should see all group events for that course in your calendar. However, you only see all group events if displaying a single course in your calendar, i.e. you either select one of your courses from the dropdown menu or you're only enrolled in a single course. Otherwise if you're viewing your calendar with "All courses" selected in the course dropdown, you only see group events of groups that you're a member of.

      This can be really confusing if you're a teacher and want to create group events: If you have the calendar with "All courses" open and create a group event (without being in that group yourself) you don't see the newly created event. So you have to know that you have to select the respective course from the course dropdown to see the newly created group event.

      This is where the problem lies in the code: https://github.com/moodle/moodle/blob/175b3708c92f3f19529ccab62dcc196c46ba6423/calendar/lib.php#L2082

      This is the commit that introduced it: https://github.com/moodle/moodle/commit/7fd5786e6f24db2a6c702062705e33bef514bbac#diff-3762eee05a549dc356ad7f041fdf86f2

      And this is the Tracker Issue for it: https://tracker.moodle.org/browse/MDL-28557

      It's not clear to me why exactly it should work like this as it can be very confusing. My suggestion would be to show all group events for all of your courses if you are a teacher viewing your calendar and have "All courses" selected.

            tschroeder Tim Schroeder
            tschroeder Tim Schroeder
            Simey Lameze Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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