New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
higher maxDaysToShow results in events beeing lost #458
Comments
Thanks for all the information, I will need to test and see what is happening here. The calendar will now sort all events in date order and then do any filtering so it is interesting that this is happening. |
Then it is indeed a strange behavior for me. I'll be glad to help, if I can do anything or verify further investigations, just give me a message. |
Hi there, I have just taken a look and was unable to reproduce this issue. I have setup test events the same as the examples you sent here, then set the max days and max events, every time it shows 3 events in the correct order. |
I have the same issue. Events are lost when filter is applied. Also yesterdays whole days events sometimes shows up day after but greyed out. |
@goldbowler please could you provide an example of the events and what is not being shown correctly? I was unable to reproduce the scenario based on the above information. Could you also supply your config I will then recreate the events in my calendar along with your config to see if I can reproduce the issue. |
as there has been no update im closing this one out. |
Hi, I want my dashboard in Home Assistant to show the next 3 events. So I limit the count
maxEventCount: 3
. If I setmaxDaysToShow: 7
and there are only 2 events in that range - but I want to always display 3 - the logical thing is to just increase it to:maxDaysToShow: 30
. If I do that, then events that are already in the next days get lost and some other events are shown. It seems to be not chronological.Another example:
Today (14.7.) I have the following events:
15.7.: 2 events
16.7.: 1 event
19.7.: 1 event
When using
maxDaysToShow: 7
with 3 events only one of the events on 15.7. is shown (and the next 2). But when I limitmaxDaysToShow: 5
it shows the 2 events of 15.7. and the one on 16.7. So I'm very positive that this is a sorting issue.See screenshots for the visuals.
Expected behaviour
The events should always be retrieved and shown in chronological order.
Current behaviour
Some events get lost when increasing the amount of days to look ahead.
Screenshot
Possible reasons and solutions
I guess it's a chronological issue.
Steps to reproduce
Have some events, display only 3 events and increase the amount of days.
Context
I'm losing data which is annoying.
Custom values
Your environment
Home Assistant Docker Image: homeassistant/home-assistant:2021.6.6
HACS: 1.13.2
Atomic Calender Revive: v4.5.0
The Calendar I'm using is a CalDAV selfhosted: Baikal
Stack trace / logging
Checklist
The text was updated successfully, but these errors were encountered: