[wp-trac] [WordPress Trac] #50244: Add bulk operation support to the Rest API
WordPress Trac
noreply at wordpress.org
Tue Jul 7 15:10:26 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: has-patch has-unit-tests | Focuses: performance
--------------------------------------+--------------------------------
Comment (by TimothyBlynJacobs):
> I'm not sure I agree with this rationale. Making this opt-in will make
this feature be of quite limited value.
My rationale for the opt-in flag is more along these lines:
> While theoretically any properly coded route wouldn't have an issue
being used in this manner, not every route is properly coded
The REST API is of course designed to be reentrant, but I've seen a
surprising number of instances where due to how people have implemented
controllers it wouldn't be. In particular for non-get requests and things
with permission callbacks.
If one of those routes are included in the batch, the results could be
bizarre or completely broken. If we're fine with that, then I think we
could switch it to an opt-out mechanism.
> I think in many cases people won't use Batch, so won't ever even add it
to their route registration.
So this would be for when a developer wants to make batch requests for
another plugin's routes?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50244#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list