[wp-trac] [WordPress Trac] #40702: Add WordCamps and meetup events to the News Dashboard widget

WordPress Trac noreply at wordpress.org
Fri May 12 13:51:35 UTC 2017


#40702: Add WordCamps and meetup events to the News Dashboard widget
-------------------------------------------------+-------------------------
 Reporter:  iandunn                              |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  4.8
Component:  Administration                       |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  needs-dev-note has-patch needs-      |     Focuses:
  unit-tests dev-feedback                        |  javascript, rest-api
-------------------------------------------------+-------------------------

Comment (by adamsilverstein):

 [attachment:40702.10.diff] Uses the wp.api JS client for the API
 connection handling.

 * main change is swapping out the ajax call for a
 wp.api.collections.CommunityEventsMine fetch call
 * built off [attachment:40702.8.diff] so doesn't include the latest
 changes (I can rebase)
 * switches the route `community-events/locations/me` to `/mine`. `/me` is
 currently a special route keyword for the wp-api client that returns a
 model instead of a collection. maybe the client should only do that for
 the default core routes?
 * includes some minor fixes in the wp-api client in part to accommodate
 the multi-part routes used here and also the lack of a matching model (the
 client assumes each collection will have a matching model endpoint)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40702#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list