Support users in multiple review groups in API responses
Review Request #8458 — Created Oct. 12, 2016 and submitted — Latest diff uploaded
The patch that fixed the review group user resource links broke when a
user was a member of more than one group (which is a likely occurance).
This was because we were using amodel_parent_key
that was a many-to-
many field (and therefore the reverse relation was not unique),
resulting in aMultipleObjectsReturned
exception. This has been fixed
by customizing how we retrieve the parent object IDs.
Ran unit tests.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.
orig
1
2
3
4
reviewboard/webapi/resources/review_group_user.py |
---|
reviewboard/webapi/tests/test_review_group_user.py |
---|