Add a method for returning reviews that are accessible by a given user to ReviewManager

Review Request #12302 — Created May 25, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

Currently there is no efficient way to query for reviews that are
accessible by a given user when using Reviews.objects. This change adds a
method to ReviewManager such that Reviews.objects.accessible(user) returns a
queryset of reviews that are accessible by the given user.

  • Created test_review_manager.py file and moved in the ReviewManager
    tests from test_review.py.
  • Created tests for Review.objects.accessible and ran all tests in
    test_review_manager.py with success.

Changes between revision 12 and 13

orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

Commits

Summary ID Author
Add a method for returning reviews that are accessible by a given user
to ReviewManager
ca4a01590d7e9b12dba20d832970517a9aecfd22 Michelle
Add a method for returning reviews that are accessible by a given user
to ReviewManager
4603b13bce0d0847ada8e344a2fb243a9bc9e356 Michelle
reviewboard/reviews/tests/test_review_manager.py
Loading...