-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Combining maxDaysToShow, maxEventCount and showNoEventDays does not work as expected #1247
Comments
Hello @vandernorth, thank you for your interest in our work! |
I did. |
I have the same issue, when I say maxDaysToShow: 14 the list is quite long, when i combine it with maxEventCount: 8, it does not show the calendar items of tomorrow. |
Same issue on my side. I'm using it with 3 calendars (each has several events), and when using maxDaysToShow +maxEventCount it doesn't show right events. It shows the right number of event according the maxEventCount setting (eg: 10), but those 10 event are only considering "all day events" from 18 days ahead.. weird. Like a wrong sorting action is done prior to filter out events exceeding the maxEventCount. So for now. no choice to stop using maxEventCount because my dashboard skip a lot of events. |
Same issue for me. The more I increase maxDaysToShow, the more events are skipped, (although always considering the maxEventCount). The selection of what events are shown is not chronological, as expected, but seemingly random. |
Ok so the hidden event text not showing was due to it accidentally being removed at some point when code was re-structured. I have now added that back in so at least you know events are hidden. the issue with the way hidden events is calculated is that its not per day, it counts the total events that were removed from the list of events when limits are applied. This means that although it will tell you I could look at modifying the "No Events" so that it doesnt show when there are hidden events? |
I have released a new beta that fixes the hidden events text v9.2.1-beta.3 |
Hi! I have updated to beta.4 now and the issue still persists of seemingly random events being hidden. I'd be glad to assist in troubleshooting or answering questions if there are any! |
@johnekarlsson do you have a copy of your config so I can check if it's something specific with the way you have the config. I'm not sure why the events hidden would be random as it takes the current day + As it removes the events at the end it should always be consistent. The only thing that would amend this is if an event finished as then it would be moved to the end of the list which would mean it would be hidden and one of the events that hasn't finished would be shown. |
Ok thanks I'll do some testing tomorrow, How many events are on each of those days? And are there any full day events or are they all timed events? This will allow me to totally replicate your expected view Vs the incorrect view. |
## [9.3.0](v9.2.1...v9.3.0) (2024-01-13) ### Features * **lang:** add Czech ([47d284e](47d284e)), closes [#1363](#1363) ### Bug Fixes * bug introduced when fixing hidden event text ([ee8d280](ee8d280)) * entity.maxDaysToShow was not applying ([16b7fbb](16b7fbb)), closes [#1255](#1255) [#1247](#1247) * hidden events text was not showing up ([844f98b](844f98b)) * localized dates not showing as expected when using LL etc ([432f0f2](432f0f2)), closes [#1334](#1334) * **sortby:** hopefully actually resolves sortby this time! ([cdf06f3](cdf06f3)), closes [#1258](#1258) * **sortby:** resolves issue with sorting of events ([051d2ca](051d2ca)), closes [#1258](#1258)
Using v9.4.0 the issue seems to be resolved. at least for what is was trying to do. |
Hi, I still have a problem, but I suspect it's more related to #1378. In any case, it's a bit har for me to troubleshoot this when #1378 is still open. The following is tested using 9.4.0 Beta 2 This code:
...gives this result (works as expected): But if I add: |
I'm working on a fix after I realised what I was doing wrong... The all day events were being placed at the begining of the array, but the regular events on the same dates were being pushed down. I'm now reworking the logic so that each day is sorted individually and then all merged into one at the end which should solve this. |
🎉 This issue has been resolved in version 9.4.0-beta.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Hopefully this latest release resolves issues with sorting, there is still an issue with milestone sorting but that will be more complex to resolve |
It works! All issues resolved. Thanks' alot!
Den tis 23 jan. 2024 kl 10:36 skrev Steven Marks ***@***.***>:
… Hopefully this latest release resolves issues with sorting, there is still
an issue with milestone sorting but that will be more complex to resolve
—
Reply to this email directly, view it on GitHub
<#1247 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APD2WAGSQR4KIC65BEV5WRLYP6AADAVCNFSM6AAAAAA6LVLJL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVGY2TKNJUGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
## [9.5.0-beta.1](v9.4.0...v9.5.0-beta.1) (2024-01-27) ### Features * Add Catalan Language ([b0ba9ee](b0ba9ee)) * add Slovak language file ([7d4ff97](7d4ff97)) ### Bug Fixes * **sort:** events were not sorting correctly with allday and regular events ([cc9f23b](cc9f23b)), closes [#1378](#1378) [#1247](#1247) * **sorting:** events from multiple calendars were not sorted by date first ([1af1c2e](1af1c2e)), closes [#1378](#1378)
🎉 This issue has been resolved in version 9.5.0-beta.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
## [9.5.0](v9.4.0...v9.5.0) (2024-01-28) ### Features * add ... to title length when trimmed ([81bfd5b](81bfd5b)), closes [#1399](#1399) * Add Catalan Language ([b0ba9ee](b0ba9ee)) * add Slovak language file ([7d4ff97](7d4ff97)) ### Bug Fixes * **sort:** events were not sorting correctly with allday and regular events ([cc9f23b](cc9f23b)), closes [#1378](#1378) [#1247](#1247) * **sorting:** events from multiple calendars were not sorted by date first ([1af1c2e](1af1c2e)), closes [#1378](#1378)
🎉 This issue has been resolved in version 9.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Is there an existing issue for this?
Current Behavior
Relevant config:
When combining these settings: Days that have events filtered out because it goes over the
maxEventCount
will show as "No events".Expected behaviour
I would expect one of:
I would prefer option 1.
Steps To Reproduce
v9.1.0 on HASS 2023.10.0
Use the above config to reproduce, play with
maxEventCount
a bit.Mode
Event (default)
Card Version
9.1.0
Home Assistant Version
2023.10.0
Configuration
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: