Hi Kevin,

We don't have any mechanism for posting reviews on behalf of another user
in the API. You could do this with a custom extension providing a custom
API or something.

Can you go into the use case? There might be other options down the road
that might be interesting.

Christian


On Mon, May 8, 2017 at 18:48 Kevin Yu <[email protected]> wrote:

> Hi All,
>
> I'm using an admin user to create the RBClient and I'm trying to post a
> review with ship_it=True as user 'team_waive'. However, it's still posting
> as the admin user.
>
> Here's my code:
>     def create_review(self, request, comment='', ship_it=False, \
>                     public=True, hold_it=False, tl=None):
>         review = request.get_reviews().create()
>         review.update(body_top=comment, ship_it=ship_it, user='team_waive')
>         review.update(public=public)
>
> Is there anyway to do this?
>
> Thanks!
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-- 
Christian Hammond
President/CEO of Beanbag <https://www.beanbaginc.com/>
Makers of Review Board <https://www.reviewboard.org/>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to