What version are you running?
What's the URL of the page containing the problem?
What steps will reproduce the problem?
I'm trying to remove users from review groups using the Python API. The docs indicate that the review group user resource has a delete method, but I can't figure out how to get it to work. I can add a user to a group easily this way:
Unfortunately, this doesn't work:
Nor does this:
What is the expected output? What do you see instead?
What operating system are you using? What browser?
Please provide any additional information below.
Any update on this ticket ?
Can you provide any pointer on this. I will fix it.
Thanks for reporting this. As it turns out, this is a bug in RB's group resource. It does not provide the correct information for removing users from the groups. Instead, it provides the DELETE links for the actual users, which will only be available to superusers and will not have the result you intend. I'm going to take a stab at this. The fix will end up in the next version of 2.0.x.
- New + Confirmed
A fix for this has been posted for review at https://reviews.reviewboard.org/r/8449/.
- Confirmed + PendingReview
Thanks for the help, but I am getting the below exception:
MultipleObjectsReturned at /api/groups/xyz/users/
get() returned more than one Group -- it returned 2!
Thanks for reporting that. The first patch has landed and a second patch is up for review at https://reviews.reviewboard.org/r/8458/
working now. Thanks a lot.
This has been fixed in 2.0.x, 2.5.x, and 3.0.x branches of Review Board. It will be released in the next minor release of each.
- PendingReview + Fixed