[wp-trac] [WordPress Trac] #40748: Use REST API for Community Events

WordPress Trac noreply at wordpress.org
Wed May 17 19:40:02 UTC 2017


#40748: Use REST API for Community Events
-------------------------------------------------+-------------------------
 Reporter:  iandunn                              |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  REST API                             |  Release
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch dev-feedback needs-unit-   |  Resolution:
  tests                                          |     Focuses:  javascript
-------------------------------------------------+-------------------------

Comment (by flixos90):

 I agree with @jnylen0. I don't see any reason why this endpoint should
 only be considered "internal". Allowing other developers to use it (if
 they wanna do custom things with community events) should be a best
 practice for any endpoint in my opinion.

 Also, suddenly not following the concepts and structures for endpoints
 that were just introduced in 4.7, seems way too early to me to break a
 pattern. More code might possibly contain more bugs, but I hardly see this
 as an argument (we might as well just have used simply functions without
 schemas for the other endpoints then), especially as we're supposed to
 heavily test and write unit tests for everything to knock such things out
 in advance as best as possible. In the long run, following a proper
 structure and providing a schema defines clear boundaries for the data
 being returned and raises the quality and reusability of the code.

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


More information about the wp-trac mailing list