question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

higher maxDaysToShow results in events beeing lost

See original GitHub issue

Hi, I want my dashboard in Home Assistant to show the next 3 events. So I limit the count maxEventCount: 3. If I set maxDaysToShow: 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 limit maxDaysToShow: 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

image

image

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

  - type: custom:atomic-calendar-revive
    entities:
      - entity: calendar.default_calendar
    firstDayOfWeek: 1
    maxDaysToShow: 7
    name: Events
    showDate: true
    sortByStartTime: false
    showLocation: false
    showDeclined: false
    showLoader: false
    hideFinishedEvents: false
    showRelativeTime: false
    dateFormat: LL
    showCurrentEventLine: false
    showProgressBar: false
    showWeekDay: true
    showMonth: false
    showDescription: false
    disableEventLink: false
    showNoEventsForToday: false
    showEventIcon: false
    disableLocationLink: false
    showFullDayProgress: false
    showHiddenText: false
    calShowDescription: false
    showLastCalendarWeek: false
    disableCalEventLink: false
    disableCalLocationLink: false
    disableCalLink: true
    dimFinishedEvents: true
    cardHeight: 100%
    maxEventCount: 3

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

  • I searched the current issues and the issue is not known.
  • I searched the troubleshooting and there’s no fix available for this bug.
  • I searched on Google, YouTube, Reddit and there’s no fix.
  • I am mostly sure that the problem is related to the code and isn’t my fault.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
marksie1988commented, Jul 21, 2021

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.

0reactions
marksie1988commented, Oct 19, 2021

as there has been no update im closing this one out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

higher maxDaysToShow results in events beeing lost #458
I'm losing data which is annoying. Custom values. - type: custom:atomic-calendar-revive entities: - entity: calendar.default_calendar ...
Read more >
Google Search Console to show event rich results errors for ...
Google Search Console's rich results report may now show you more warnings for event structured data markup if the event is missing a...
Read more >
Click events being lost? - javascript - Stack Overflow
Synchronous calls block the I/O, so the alerts would not be fired. Since you are waiting for a return for your call, any...
Read more >
A New Raid Event, Advent of the Origin, Is Now Live!
This event's theme song is "Destiny" by Hitomi Miyahara and Honoka Watanabe. ... the quest will continue until the results have been determined....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found