FS#62388 - Impossible to search for orphans via the RPC
Attached to Project:
AUR web interface
Opened by morganamilo (morganamilo) - Thursday, 18 April 2019, 14:44 GMT
Opened by morganamilo (morganamilo) - Thursday, 18 April 2019, 14:44 GMT
|
Details
The RPC has a limit of 5000 packages per search request.
This is fine for user searches as you can simply blame the
user for being too vague and they should narrow down their
search.
The RPC also allows listing orphan packages (documented at [1]) and the above limitation seems to apply. There are now over 5000 orphan packages in the AUR so this feature is unusable. And with no workarounds such as paging the output or narrowing the output to a subset of orphans there is nothing the user can do. Example: curl 'https://aur.archlinux.org/rpc/?v=5&type=search&search_by=maintainer&arg=' {"version":5,"type":"error","resultcount":0,"results":[],"error":"Too many package results."} [1] https://aur.archlinux.org/rpc/ |
This task depends upon
I propose limiting each result array to 5000 as they are now, but allowing you to page through them. That is, if >5000 results are returned, `next_page` is included with 5000 results, and next_page can then be queried to continue the search results. a `next_page` of null would signal that nothing remains.