[snowpatch] [RFC] patchwork: get more than one page's worth of series

Andrew Donnellan andrew.donnellan at au1.ibm.com
Fri Apr 22 16:49:39 AEST 2016


On 22/04/16 14:30, Andrew Donnellan wrote:
> At present, when getting the list of series from Patchwork, we request a
> single "page" of results (up to 20 series). This more or less works for
> daemon mode up to a certain point - it may cause problems for an extremely
> busy Patchwork instance, but for most setups it'll work fine.
>
> However, when we're not running in daemon mode, and we specify --count=200,
> we'd like to actually try and get 200 series, rather than testing the first
> 20 over and over again...
>
> Instead of grabbing a single page, follow the "next" link that Patchwork
> returns and request as many pages as possible. Change the query string to
> get the maximum of 100 series per page, rather than the default 20.
>
> This approach is rather naive, and won't work very well on Patchwork setups
> with a large existing database.
>
> Closes: #17 ("Enable the ability to go to page 2 (and beyond) of Patchwork
> results")
> Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>

I'm seeing some issues with this patch that I'll need to look into next 
week.

-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com  IBM Australia Limited



More information about the snowpatch mailing list