FS#17583 - JSON: enable multiple arguments for "info" method

Attached to Project: AUR web interface
Opened by Xyne (Xyne) - Wednesday, 23 December 2009, 00:00 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 20 August 2011, 18:18 GMT
Task Type Feature Request
Category Backend
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version 1.6.0
Due in Version 1.9.0
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

In order to get JSON information for multiple packages, you currently have to submit multiple requests, e.g.
...?method=info&arg=this
...?method=info&arg=that
etc

It would be useful if multiple arguments could be submitted simultaneously. The output would then contain an array of results just as "?method=search" currently does. Even if such a query would require more overhead, it would almost certainly be less than the current overhead of establishing multiple connections, multiple independent database queries, multiple results sent back to the client, etc.

A simple space would be used to separate the package names, e.g.
...?method=info&arg=this that
equivalent to
...?method=info&arg=this%20that
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Saturday, 20 August 2011, 18:18 GMT
Reason for closing:  Implemented
Additional comments about closing:  Implemented in 1.9.0.
Comment by Xyne (Xyne) - Thursday, 24 December 2009, 04:28 GMT
Sorry, I forgot to make this a "feature request".
Comment by tuxce (tuxce) - Monday, 01 November 2010, 20:26 GMT
If this ticket is still valid, here is a patch that should work.
Comment by Øyvind Heggstad (Mr.Elendig) - Sunday, 19 December 2010, 17:58 GMT
My personal fealing is that splitting on , would be somewhat saner than on %20. But that's probably just me.
Comment by Lukas Fleischer (lfleischer) - Tuesday, 19 April 2011, 22:26 GMT
  • Field changed: Due in Version (Undecided → 1.9.0)

Loading...