From 4bffa64e14dbc532eee50beff7aab43db6da0e87 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 18 Mar 2026 10:21:21 -0500 Subject: [PATCH] Website: Update gitops-workshop view action (#41950) Changes: - Updated the GitOps workshop page's view action to omit events without a venue set. (Note: this is a quick fix to resolve 500 errors on that page, and I will create a follow up PR to display events without a venue set) --- .../controllers/landing-pages/view-gitops-workshop.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/website/api/controllers/landing-pages/view-gitops-workshop.js b/website/api/controllers/landing-pages/view-gitops-workshop.js index 33b604aedf..bf07a12edd 100644 --- a/website/api/controllers/landing-pages/view-gitops-workshop.js +++ b/website/api/controllers/landing-pages/view-gitops-workshop.js @@ -36,6 +36,11 @@ module.exports = { let eventsToGetDetailsFor = futureGitopsEvents.events; await sails.helpers.flow.simultaneouslyForEach(eventsToGetDetailsFor, async (event)=>{ + if(!event.venue_id){ + // Note: We're excluding events that do not have a venue set. + // FUTURE: show these events with a TBA location. + return; + } let eventVenueResponse = await sails.helpers.http.get.with({ url: `https://www.eventbriteapi.com/v3/venues/${event.venue_id}/`, headers: { @@ -43,9 +48,7 @@ module.exports = { }, }).tolerate((err)=>{ sails.log.warn(`When a user visited the gitops workshop page, details about a venue for an event (${event.name.text}) could not be obtained from the Eventbrite API. Full error: ${require('util').inspect(err)}`); - return { - events: [], - }; + return {}; }); // Convert the ISO timestamps that represent the start and end time of the event into a formatted string.