I noticed that a teacher will only see group events of groups he doesn't participate in if he views a certain course in the calendar. If he views all courses in his calendar, he only sees group events of groups he is in.
Does anyone know why this difference in visibility exists? It seems arbitrary.
This is the code that shows all group events to teachers if they are viewing only one course: https://github.com/moodle/moodle/blob/4bd4b46070b3906e5b1fd3126b524b9fc2ba2271/calendar/lib.php#L2084-L2090
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
To a teacher this can be very confusing. If he has events for all courses displayed and creates a new group event (and isn't himself in that group) the new event won't show up for him. He needs to know that he first has to select the course that that group belongs to in order to see the event he just created.
Do you agree that this is not very intuitive?
Would it be better to just show all group events for each course to teachers when they view all courses? What would speak against this?