All queries are limited to 20 results regardless of limit parameter

Bug #1390127 reported by Marco Ceppi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charmworld
Triaged
High
Unassigned
Revision history for this message
Jay R. Wren (evarlast) wrote :
Revision history for this message
Richard Harding (rharding) wrote :

Jay, this is a bug on charmworld, the old API. It's broken compared to the new one.

Changed in charmworld:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Brad Crittenden (bac) wrote :

The use of limit is unintuitive, confusing, and a bit silly.

The actual limit used is the minimum of the limit specified or the default limit of 20. This is true *unless* you specify you want all charms or bundles. For instance, a query of this form respects the provided limit:

https://manage.jujucharms.com/api/3/search?text=charms&limit=200

Likewise for bundles:

https://manage.jujucharms.com/api/3/search?text=bundles&limit=60

However, if you do not request all charms or bundles, say you search for a specific one, then the default limit is used, e.g.

https://manage.jujucharms.com/api/3/search?text=bundles:mysql&limit=60 returns 20.

Using the two forms shown above is currently the only work-around.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.