Skip to content
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

Illogical behvior when using event_listing on a collection with events. #405

Open
ThibautBorn opened this issue Aug 22, 2024 · 1 comment

Comments

@ThibautBorn
Copy link

ThibautBorn commented Aug 22, 2024

description

While working on Issue about the date formatting (plone/Products.CMFPlone#3959), I encountered another issue when using event_listing on collections.

When setting the criteria of a collection, the shown output in the event_listing display often doesn't match the criteria.

Eg. When querying events with end_date before today, I still get only events that will end in the future.
or
When I select ''before today' start_date, the view will only show events that started in the past, but that will end in the future.

The preview, and other views still show the events set by the parameter however.
This is even more confusting, as when selecting the start/end date criteria, the 'toggle' to show past or current events is no longer displayed.

problem: How do we want to implement this behavior?

I made a draft where I was working on this (bcb489b).

  • Here I force the listing_view to use the collection's start and end_date criteria when querying the events, the there are start/end criteria specified on the collection.
  • I also set the mode to all_events, seen as these are all_events for the parameter.

Is this an better implementation? What does the community think is a sane default? Are there usecases i'm missing that could cause issues?

@ThibautBorn
Copy link
Author

ThibautBorn commented Aug 22, 2024

additional problem: when viewing a specific event with event_listing, and the event has recurrences both in past and future, we don't see the past events when choosing the past mode. (the future events are shown as expected)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant