[wp-meta] [Making WordPress.org] #4637: WP Events Dashboard widget could be improved for multi-days events
Making WordPress.org
noreply at wordpress.org
Mon Jul 29 16:41:16 UTC 2019
#4637: WP Events Dashboard widget could be improved for multi-days events
-------------------------+-----------------------
Reporter: imath | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: API | Keywords: has-patch
-------------------------+-----------------------
Hi!
Following up with this conversation on
[https://wordpress.slack.com/archives/C08M59V3P/p1564388510016800 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
[https://central.wordcamp.org/wordcamps/wordcamp-zurich/
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:
[[Image(https://cldup.com/H5h3x9a267.png)]]
Thanks in advance for your help.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4637>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list