Bedework / bedework

An Enterprise Calendar and Scheduling System
Apache License 2.0
40 stars 9 forks source link

Data Feed / Widget results reflect canceled events as if they were still confirmed #163

Open kyletcook opened 1 year ago

kyletcook commented 1 year ago

Background

RSS/Widget creates a set of events to be displayed on other web pages. This display does not have the status field of the event considered in the logic. Result being that events marked 'canceled' or 'tentative' in Bedework, do not display any different from confirmed events. The cancelation is not reflected in the set of results. Nor, are they excluded from the count number defined by the subscription. Without the Bedework 'canceled' prepending the event title, user is led to think event is confirmed, in error.

Steps to Reproduce

  1. Create a widget using the exportSubscribePopup.
  2. Place widget on a separate html webpage.
  3. Mark one or more of the events as canceled.

Expected Behavior

Set of events should only include confirmed events. Events should not include tentative or canceled events.

Actual Results

Set of events display all events that fit the criteria from the exportSubscribePopup, including events as canceled. User does not see any visual indicator that the canceled event has been canceled; they must click through to the calendar proper where Bedework theme supplies a 'canceled' designation prepending the title. Also, because of canceled events are not excluded from the count, any widget displaying a list of 3 'upcoming events' will only show 2 events, due to the Bedework CSS workaround being used.

Environment

https://library.nashville.org/locations/bellevue-branch (when there is a canceled event. There is a canceled even on Jun 23, 2023)

Goal

If we have a event widget, I want canceled events to NOT show in the feed and to NOT count as one of the items for the number of events we specified when setting up the feed.

Example: We made an event feed for all [topical area] and said we wanted to display 5 items. Of the next 5 events, three are happening and two are canceled. I want to still see a feed with 5 items (active events) and exclude the two canceled events.