[wp-trac] [WordPress Trac] #50244: Add bulk operation support to the Rest API

WordPress Trac noreply at wordpress.org
Tue Jul 7 08:21:19 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 joehoyle):

 > I think it should be opt-in - as we discussed earlier, there are
 important routes that do not support pre-validation at the moment and
 sending batch requests with validation=pre will not work as expected. With
 opt-in approach, the batch processing endpoint could be merged first and
 then more and more routes would opt-in to batch processing as time passes.

 I'm not sure I agree with this rationale. Making this opt-in will make
 this feature be of quite limited value. I think in many cases people won't
 use Batch, so won't ever even add it to their route registration.

 If a route doesn't support pre-validation (which I think is to say that
 validation is done directly in the `get_items` (etc) handler, why would it
 matter? Route callbacks can always create errors, so avoiding that I'm
 assuming is not the issue.

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


More information about the wp-trac mailing list