This is due to a bug in older versions of Review Board, and was recently
fixed. The 'next' link provided in the API was leaving out the query
details. If you can upgrade Review Board, this should work correctly.

Christian


On Monday, May 5, 2014, Steve <seide.al...@gmail.com> wrote:

> The get_review_requests() function appears to be working correctly to me
> when I use the counts_only option, but not when I leave that out.  Below, I
> make calls to find out how many reviews are on my test server, and how many
> reviews are assigned directly to me:
>
> >>>> rr = client.get_review_requests(counts_only=True,
> to_users_directly="sallan")
> (snip agent='RBTools/0.5.2')>, payload={u'count': 26, u'stat': u'ok',
> 'links': {}}, snip)
>
> >>>> rr = client.get_review_requests(counts_only=True)
> (snip agent='RBTools/0.5.2')>, payload={u'count': 6941, u'stat': u'ok',
> 'links': {}}, snip)
>
> Those counts are plausible.  But when I run the command to actually return
> the reviews assigned to me I get every review on the server:
>
> # copied from script
>     rr = client.get_review_requests(to_users_directly="sallan")
>     count = 0
>     while True:
>         for review in rr:
>             count += 1
>         try:
>             rr = rr.get_next()
>         except StopIteration:
>             break
>     print "Processed ", count, "records"
>
> Processed  6941 records
>
> Note that 6941 is the total number of review requests on this server.  Is
> this a bug, or am I using this function incorrectly?
>
> RB Version: 1.7.14
> RBTools Version:  0.5.2
>
> Thanks
>
> --
> -- Steve
>
>  --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://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 
> reviewboard+unsubscr...@googlegroups.com<javascript:_e(%7B%7D,'cvml','reviewboard%2bunsubscr...@googlegroups.com');>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://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 reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to