Calendar Page sorting of Single Calendar Events that span multiple days


(Nic Hubbard) #1

On our calendar we have are listing a Single Calendar event that spans multiple days. The strange thing is that this event gets put first for that day and it is an 8pm event. It gets put before other events even if they are earlier, such as 10am.

 

See October 12 and 13: https://www.puc.edu/calendar?state=month&date=2016-10-12

 

Is there a reason that Single Calendar Events that span multiple days would be put first in the sort order? I would think that it would sort by the instance start time.

 

Help?


(Bart Banda) #2

I guess it depends on what listing asset you are using, asset listing, calendar listing, calendar search page, search page, upcoming events? 

 

It also depends on the grouping method used to, and what version of matrix? There have been a few bugs fixed with calendar and events in the last year: https://squizmap.squiz.net/matrix/_reports?statuses=241&tagsAND=Bug&tagsOR=Events,Calendar%20Event%20Asset,Calendar%20Page&sortOrder=created_date&sortDirection=desc

 

It might be that it simply calculates that the true start date of the event, which is not an instance as it's not a recurring calendar event, to be earlier than any other dates on future days that don't start on the same date as this one.  


(Nic Hubbard) #3

Sorry, I wrote Calendar Page in the title but didn't see if that was seen. It is a Calendar Page asset and using 5.2.3.0.


(Nic Hubbard) #4

Bart, and more word on this? I feel that it is a bug and our campus is having some confusion because of it. Can you check into it?


(Anthony Ponomarenko) #5

Hey Nic.

Ive tried to replicate this in our latest 5.2.11.2 build with no luck. The events show on the month view as expected.

Could you export your assets as xml (or perhaps a cut down replication) and post them in a reply so i can use your exact assets to try and replicate the issue.


(Nic Hubbard) #6

Can you show me a screenshot? And you ARE seeing Single Calendar Events that span multiple days being sorted correctly?


(Anthony Ponomarenko) #7

Here you go, SC1 starts at 8am, SC2 starts at 8pm runs for 3 days, SC3 starts at 9am.


(Nic Hubbard) #8

We are having issues with list view (not sure if I included that in my orig. post), could you test it in that view?


(Anthony Ponomarenko) #9

So same results with list view, all looks good


(Peter McLeod) #10

Hi

What happens if you test by starting SC2 (which starts at 8pm) a day before the rest (eg on the 6th of Sept)?

I think in the test example above, it works because they all start on the same day, they are using the actual times to sort by. I think in Nic’s example the 8pm event started on a day earlier then others which it was being sorted with on a individual day.

But in some cases, also changing the name of the event seems to affect its sort position in the list view.

Not sure how its implemented behind the scenes but if for days that are after the true start date, it uses 12.00am as the time rather than the time set for the true start date, then it would make sense. Then in cases where events in the group have the same start time, then a secondary sort is done on the asset name. See the example in the image.

If you then change the name of A to Z it gets moved in cases where the name is affecting the sort.

Thanks
Peter


(Nic Hubbard) #11

Looks like the exact issue that I am having. Seems like a bug.


(Anthony Ponomarenko) #12

Yup thats it, could replicate this in all builds

However I’m not sure if this is really a bug, I believe in this case you should be using a recurring event.
If its a single event that spans multiple days, it should be starting at 12.


(Nic Hubbard) #13

I don’t think you can say if it spans multiple days it should be starting at 12, because the interface allows something different than that. If this IS the case, it should have been enforced.

We have used Single Calendar events in this way for 10 years. So I really hope that this can get fixed.


(Bart Banda) #14

I don’t think it’s a bug, more that it’s functionality that’s not supported. It’s sorting each day by the event’s start date. So if you have something like this:

  • Monday
  • Event 1 - 8pm (lets say it ends on Wednesday 10pm)
  • Tuesday
  • Event 1 - 8pm (Still started on Monday at 8pm, has continued throught the night)
  • Event 2 - 9am

Event 1 still starts before Event 2 on Tuesday, because Event 1 started on Monday, so each day is sorted by the Single Calendar Event’s Start Date and Time, not just Time for that day. The calendar asset doesn’t have any other date attribute to sort on.

As Pono said, this is something where you would probably use a recurring event instead or multi single events, because saying that Event 1 starts at 8pm on Tuesday is incorrect because it started the night before and continued over night because it’s end date is much later. It doesn’t have multiple start and end dates.

We could however look into adding support for individual day sorting if the list view is grouped by day. We actually would need ability to sort on each week, month and year as well because the same can happen when grouping them by that.

I’ve started a roadmap item for it here: https://squizmap.squiz.net/matrix/9919