TUM-Dev / gocast

TUMs lecture streaming service.
https://live.rbg.tum.de/
MIT License
183 stars 42 forks source link

Fix group order #1150

Closed MatthiasReumann closed 1 year ago

MatthiasReumann commented 1 year ago

Motivation and Context

Description

Dictionaries are not really great for ordering (i.e. they don't have a order). Rewrite the group function to return a 2-dimensional array (a array of stream groups starting in the same month and year).

Steps for Testing

  1. Log in
  2. Navigate to the course page
  3. Streams should now also be grouped correctly if multiple years occur. (e.g. 2022 December, 2023 January)
github-actions[bot] commented 1 year ago

Your Testserver will be ready at https://1150.test.live.mm.rbg.tum.de in a few minutes.

Logins | Kurs1 | Kurs2 | Kurs3 | Kurs4 | | ---------------------------------------- | ------------------------- | ------------------------- | ------------------------- | | public | public | loggedin | enrolled | | prof1 | prof1 | prof2 | prof1
prof2 | | student1
student2
student3 | student1
student2 | student2
student3 | student1
student2 |