forked from christianwach/bp-event-organiser
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the filtering of group events when viewing calendars.
The previous implementation queried for all events, and then filtered out individual events not belonging to the group using the `intercept_calendar()` filter on 'eventorganiser_fullcalendar_event'. This technique is inefficent, especially as the number of group events increases. The new technique is to detect the 'bp_group_id' param sent with the AJAX request, and then add a corresponding 'bp_group' param to the event query, using the new 'eventorganiser_fullcalendar_query' filter in EO. This mirrors the way user-specific calendar requests are filtered. See #2, #5, #8.
- Loading branch information
1 parent
342dd2d
commit 4511c52
Showing
2 changed files
with
20 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters