Opened 5 years ago
Closed 5 years ago
#4637 closed enhancement (fixed)
WP Events Dashboard widget could be improved for multi-days events
Reported by: | imath | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Events API | Keywords: | has-patch |
Cc: |
Description
Hi!
Following up with this conversation on Slack #meta-wordcamp about the Events Dashboard Widget. So far it only displayed the starting date of an event. It's great for meetups, it's a bit annoying for some WordCamps.
When a WordCamp is a multi-days event, only using a starting date is problematic :
- It doesn't inform about the WordCamp's length
- The first day of a WordCamp might be a Contributor Day (It's actually the case that generated this ticket)
- There is some inconsistency with the schedule on central.wordcamp.org (which displays a range of days).
I've dived a bit into the Meta Repository and it looks like the end_date
is an existing field into the wporg_events
table, so I guess a first step would be to include this fiels into the JSON response. That's what I've tried to do in the first attached patch.
Then, the second step could be to update the WP_Community_Events from WordPress Core repository so that if the event is not a meetup and contains this end_date
property, then display a range of day instead of the first day.
here's a screenshot of a test I've made with the wp-community-events.patch attached to this ticket:
Thanks in advance for your help.
Attachments (3)
Change History (14)
#3
@
5 years ago
Just to confirm, we do store a end_date
field for the wporg_events
table and fill it correctly according to the WordCamp data-source, for example for WordCamp Brisbane (A 2 day event) the Database table looks like this: {... "date_utc": "2019-08-24 00:00:00", "date_utc_offset": null, "end_date": "2019-08-25 00:00:00", ...}
Adding the end_date
field to the response (as done in 4637.patch), ~or perhaps a ~ is possible, but you'll then need to raise a core ticket to actually use that data and work out a UI.dates
field instead
(edit: Removed second suggestion, end_date
works best IMHO, plus it's set for Meetup events as it provides and endtime, ie. 2019-07-30 9:00:00 -> 2019-07-30 12:00:00
)
For others, the API responsible is here:
https://meta.trac.wordpress.org/browser/sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
#5
@
5 years ago
FYI here is the link to the WordPress Core ticket (47798).
Some comments/ideas: