Add TestCase.create_many_review_requests().

Review Request #12326 — Created June 2, 2022 and submitted

Information

Review Board
release-5.0.x

Reviewers

This is a unit test helper method that can batch-create many review
requests at the same time. This is much faster than calling
create_review_request() in a loop, and performs as many operations in
batches as possible.

Not all state or operations can be set in this mode. For example, review
requests can't be published, though they can be set to be public. If
specific review requests need to have operations performed, they can be
called separately once created.

When marking review requests public, this will also take care to set the
counters on any review groups, reviewers, or the owner, as appropriate.

Made use of this in some upcoming unit tests that need lots of review
requests, and are sensitive to the counter fields.

Summary ID
Add TestCase.create_many_review_requests().
This is a unit test helper method that can batch-create many review requests at the same time. This is much faster than calling `create_review_request()` in a loop, and performs as many operations in batches as possible. Not all state or operations can be set in this mode. For example, review requests can't be published, though they can be set to be public. If specific review requests need to have operations performed, they can be called separately once created. When marking review requests public, this will also take care to set the counters on any review groups, reviewers, or the owner, as appropriate.
3df837a1d9305b2db9481ce0864fb4f326cca154
Description From Last Updated

F841 local variable 'local_id' is assigned to but never used

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.0.x (ef126e5)