elan-ev / studip-opencast-plugin

This is an Stud.IP plugin for Opencast
https://elan-ev.github.io/studip-opencast-plugin/
GNU General Public License v2.0
9 stars 22 forks source link

"Videos/Wiedergabelisten übertragen" random playlist sorting #939

Open dennis531 opened 5 months ago

dennis531 commented 5 months ago

The playlists are displayed in a different order than in the source course when transferring all contents of a cours to another course.

Originally posted by @kai-wng-uos in #879

dennis531 commented 5 months ago

Playlists in the course are currently sorted in ascending order by their creation date. The problem occurs because the copied playlists do not copy the creation date, but set the copy date as creation date instead. I tried to copy the playlists sorted by creation date. This approach does not work, as all copied playlists ended with the same creation dates, at least in my test system. So this problem is not trivial to solve as long as we do not offer a sorting option for the playlists in the course. It would be possible to offset the creation dates, e.g. by one second. But that would lead to messy hacks in the code.

In conclusion, it would be best to solve this problem with the planned sorting function of playlists in courses to avoid ugly code. Related #888