-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Inconsistency records fetched in calendar layout #21539
Inconsistency records fetched in calendar layout #21539
Comments
I can confirm this is a bug. |
Same here and same version |
Can confirm here too. It's quite anoying. Apparently only the first month content loads |
I believe the bug was introduced in v10.8.3 with this fix #20578 |
Can confirm this issue is present on 10.10.4 on Directus cloud |
Seems like the solution would be to re-fetch the list of displayed records whenever navigating the calendar. |
I can confirm this bug still exists in Directus version 10.11.0. The calendar view is more or less unusable with this bug, as it never re-fetches items from the API when new dates are navigated. |
Thanks for reporting it – I was experiencing this as well. |
Works here too! Awesome job 🙌🏼 |
Describe the Bug
Hi everyone,
I'm using the latest version of Directus
I've completed all Troubleshooting Steps.
There's no other issue that already describes the problem.
Current Behavior:
When viewing a collection using the calendar layout in Directus, the number of records fetched differs from the number of records fetched when using the default table layout.
In the default table layout, Directus fetches all the records from the collection without applying any additional filters.
However, when switching to the calendar layout, Directus fetches only some of the records. This discrepancy occurs because the calendar layout applies a default filter based on the startDateStr from the layout_query of the collection preset. This filter restricts the records to those within a few days before and after that month:
Additionally, If I add filters to the collection calendar preset, to extend or override that, Directus makes this request:
Of course, this doesn't work.
In this case, the request that counts the items works fine:
Expected Behavior:
I believe the calendar layout should fetch the same number of records as the default table layout, without applying any additional filters by default.
Or, if filters are added to the collection calendar preset, they should be properly applied in conjunction with the default filter based on startDateStr.
To Reproduce
Directus Version
v10.9.3
Hosting Strategy
Self-Hosted (Custom)
The text was updated successfully, but these errors were encountered: