[wp-trac] [WordPress Trac] #50244: Add bulk operation support to the Rest API
WordPress Trac
noreply at wordpress.org
Sat Sep 5 21:50:46 UTC 2020
#50244: Add bulk operation support to the Rest API
--------------------------------------------+------------------------------
Reporter: andraganescu | Owner:
| TimothyBlynJacobs
Type: feature request | Status: assigned
Priority: high | Milestone: 5.6
Component: REST API | Version: 4.4
Severity: normal | Resolution:
Keywords: early has-patch has-unit-tests | Focuses: performance
--------------------------------------------+------------------------------
Comment (by TimothyBlynJacobs):
In [changeset:"48947" 48947]:
{{{
#!CommitTicketReference repository="" revision="48947"
REST API: Refactor `WP_REST_Server::dispatch()` to make internal logic
reusable.
#50244 aims to introduce batch processing in the REST API. An important
feature is the ability to enforce that all requests have valid data before
executing the route callbacks in "pre-validate" mode.
This necessitates splitting `WP_REST_Server::dispatch()` into two methods
so the batch controller can determine the request handler to perform pre-
validation and then respond to the requests.
The two new methods, `match_request_to_handler` and `respond_to_request`,
have a public visibility, but are marked as `@access private`. This is to
allow for iteration on the batch controller to happen in the Gutenberg
repository. Developers should not rely upon these methods, their
visibility may change in the future.
See #50244.
Props andraganescu, zieladam, TimothyBlynJacobs.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50244#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list