-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Recurring events don't show up w/ the default Calendar #2050
Comments
yes, the calendar entry fetcher reduces the count to the first maximumEntries, but the |
I'm getting an error while pushing the fix for this issue:
Do I need any special permission to be able to submit a change? I couldn't find anything specific in the instructions. |
Did you fork the repo? You can only push to your repository and then submit a PullRequest to the original repository here. |
Thanks, @rejas! I've submitted the fix now. |
Bug fix to correctly handle the logic for 'maxEntries' Issue #2050
I found a bug in MagicMirror
Platform: Chrome on Windows
Node Version: 14.4
MagicMirror Version: v2.11.0
Description: Recurring Calendar events don't show up on MagicMirror. I suspect this is because the logic to handle
maximumEntries
is incorrectly handling events in the past. In the example below, there are six recurring events scheduled for the day. AsmaximumEntries
is set to 2, 'Test 5' and 'Test 6' should show up on the Calendar as 'Test [1 - 4]' have already occurred in the day. But MagicMirror does not show any future events in this case as it probably considers all six events as eligible candidates, but after applying themaximumEntries
condition, it probably picks 'Test 1' and 'Test 2' as the two entities. But it doesn't show them as they are in the past.Please note that this issue doesn't happen if the events are not recurring.
Steps to Reproduce:
maximumEntries
to a number that's smaller than the events on a given daymaximumEntries
events have already happenedExpected Results:
The remaining events for the day should show up.
Actual Results:
MM does not show any events.
Configuration:
{ module: "calendar", header: "US Holidays", position: "top_left", config: { calendars: [ { symbol: "calendar-check", url: "***", }, ], fade: false, maximumNumberOfDays: 1, timeFormat: "absolute", dateFormat: "LT", getRelative: 0, maximumEntries: 2, excludedEvents: ['Set Status'], } }
Additional Notes:
I was able to get it to work correctly by commenting out this line. I can submit this as a fix if it looks ok.
The text was updated successfully, but these errors were encountered: