Create CommentManager to query for comments that are accessible by a given user

Review Request #12309 — Created May 30, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

Currently there is no efficient way to query for comments that are
accessible by a given user when using <AnyCommentClass>.objects. This change
creates a CommentManager and adds a method such that
<AnyCommentClass>.objects.accessible(user) returns a queryset of comments that
are accessible by the given user.

  • Wrote unit tests for CommentManager and they pass.

Changes between revision 10 and 11

orig
1
2
3
4
5
6
7
8
9
10
11
12

Commits

Summary ID Author
Create CommentManager to query for comments that are accessible
by a given user
f78e10ab6311b3c0afc4800efbc091a0f8c3866f Michelle
Create CommentManager to query for comments that are accessible
by a given user
137ae4c93fcd5372e55536c3be04b8fa00b01fc2 Michelle
reviewboard/reviews/managers.py
reviewboard/reviews/tests/test_comment_manager.py
Loading...