one-zero-eight / website

InNoHassle website for accessing ecosystem services at Innopolis University. Student dashboard, personal schedule, room booking, interactive maps, and more.
https://innohassle.ru
MIT License
10 stars 4 forks source link

Duplication of core courses events in the calendar view #33

Closed danmaninc closed 1 year ago

danmaninc commented 1 year ago

If you add to the favorites several groups of the same year, you will get duplicating events in the calendar view.

Image Image

danmaninc commented 1 year ago

This StackOverflow thread may be somehow useful although it is mostly about nearby events.

I'm trying to find out is there any way to customize rendering of the calendar. I suppose that it is pretty small bug and easy-to-fix, however, only if it is possible to modify the way of displaying.

However, this issue may be closed as not planned. If you import such calendars, events of core courses will overlap the same way and will not merge. Therefore, fixing the calendar view issue will be useless, since it will occur in calendar app. So such «bug» may be fixed by creating custom EventGroup and adding events manually.

If I am correct about the possible solution (just allow users to create EventGroups), then this issue may be closed as not planned.

What do you think about this issue? @ArtemSBulgakov

ArtemSBulgakov commented 1 year ago

That SO thread is about creating events, it's not our case.

In our repository we include a modified version of iCalendarPlugin that adds events from .ics file. I think we can make the plugin take multiple files as input (currently plugin just runs several times for multiple urls) and adds only unique events (comparing them by UID).