Widget not working when filtering events by 27 groups

We did a larger version upgrade recently and seems events are now can only be filtered by a maximum no. of groups for a widget embedded on one of our webpages. Is there documentation about this? Is there any workaround for this?

Thanks Gladys, and sorry to hear this is giving you trouble – it’s possible at a certain point the request that the widget makes to the calendar server might overspill some length limitations? We’ll stay tuned for an example we can check out, or you might try reproducing the extra-long case as a Saved Widget and seeing if that does the trick?

Hi Karl,

Thanks for looking into this. Here are some examples for the issue:

https://events.sfu.ca/live/widget/49/group/Office%20of%20Francophone%20and%20Francophile%20Affairs%20(OFFA)/group/French/category/SFU%20Vancouver%20Campus/category/SFU%20Surrey%20Campus/category/SFU%20Burnaby%20Campus/category/Online/category/Off%20Campus/category/Undergraduate%20Students/category/Staff/category/Public/category/Prospective%20Students/category/Graduate%20Students/category/All%20Students/category/Thesis%20Defences/category/Services%20for%20Students/category/Lectures/category/Info%20Sessions/category/Dates%20%26%20Deadlines/category/Conferences/category/Community%20Events/category/Campus%20Life/category/Arts%20%26%20Culture/category/Seminars%20%26%20Workshops/category/Faculty/category/Alumni/

https://events.sfu.ca/live/widget/58/group/World%20Languages%20and%20Literatures/group/Urban%20Studies/group/Sociology%20and%20Anthropology/group/Social%20Data%20Analytics/group/School%20of%20Public%20Policy/group/Psychology/group/Political%20Science/group/Philosophy/group/Office%20of%20Francophone%20and%20Francophile%20Affairs%20(OFFA)/group/Linguistics/group/Labour%20Studies/group/International%20Studies/group/Institute%20for%20the%20Humanities/group/Institute%20for%20Neuroscience%20and%20Neurotechnology/group/History/group/Hellenic%20Studies/group/Graduate%20Liberal%20Studies%20Program/group/Global%20Humanities/group/Global%20Asia%20Program/group/Gerontology/group/Gender%2C%20Sexuality%2C%20and%20Women’s%20Studies/group/French/group/First%20Nations%20Studies/group/Faculty%20of%20Arts%20and%20Social%20Sciences/group/English/group/Economics/group/Department%20of%20Indigenous%20Studies/group/David%20Lam%20Centre/group/Criminology/group/Centre%20for%20Comparative%20Muslim%20Studies

Hi Gladys,

Aha, yes, that would do it:

From the LiveWhale 2.20.0 release notes

Performance improvements: Blocked /live/ requests with a massive REST depth (more than fifty instances of /) which we’ve seen correspond to malicious and spam requests.

(As a note, we are adding more verbose error messages to blocked requests like this in our next release, so that would’ve helped illuminate this sooner.)

When we added the 50-slash limit to REST requests, we thought it was a good outer limit for day-to-day use (i.e., up to 25 REST search filters). But, the examples you shared go a bit beyond that, for example querying 1 widget id, 2 groups, 23 categories, and the 1 max= value. That’s where we start to overspill and trigger that REST blocker.

I’ll chat with the team to see if we can relax that restriction a bit – in the meantime, though, I wonder if some of these widgets could be optimized somehow?

For example, the request you sent that searches for all of these category/ values:

SFU Vancouver Campus
SFU Surrey Campus
SFU Burnaby Campus
Online
Off Campus
Undergraduate Students
Staff
Public
Prospective Students
Graduate Students
Faculty
Alumni
All Students
Thesis Defences
Services for Students
Seminars & Workshops
Lectures
Info Sessions
Dates & Deadlines
Conferences
Community Events
Campus Life
Arts & Culture

Am I wrong, or is that just all of your audience, campus, and event types?

I wonder if the UI where you’re having editors place widgets could be clarified to communicate that the default behavior is to Show All events (all categories, audiences, and campuses), and the filters are really only useful if you’re trying to show just select ones?

Alternately, if you don’t want a certain category, you can use &exclude_category= to remove a few, rather than including the whole list?

Hope this may help! Let me know if I can say more about this. A Saved Widget can have unlimited filters like I mentioned above, which would help work around this issue with the long query.

Karl

Ah, I see the 2nd case is just wanting to filter by 24 groups, so optimizing the Categories piece of the query won’t help. We’ll chat with the team about relaxing this bot-blocking behavior so it doesn’t accidentally capture this case. Using a Saved Widget would definitely work as a stop-gap until that fix is released; apologies for the inconvenience in the meantime!

Hi Karl,

Thanks for the suggestion. I have to discuss with our IT team if we can have some clarification on the default behavior on our UI.

In general, we let users to select their filters so they can display the events on their department’s website. At this point, we don’t know how many of this and what filters they are using. So saved widget may limit their flexibility to create the event list on their own and yet, we have to restrict them from messing around the style and html code we used in the widget.

Thanks Gladys – we’ll have an adjustment for this behavior in our next minor/patch release, and I believe Rachael mentioned in your conversation with email support that we have a workaround for your site in the short term. :+1: Glad we were able to get this resolved for you!