Opened 16 years ago
Closed 15 years ago
#3509 closed defect (wontfix)
query more than 100 tickets?
Reported by: | Owned by: | Alec Thomas | |
---|---|---|---|
Priority: | normal | Component: | XmlRpcPlugin |
Severity: | normal | Keywords: | |
Cc: | Steffen Pingel | Trac Release: | 0.11 |
Description (last modified by )
When I query below, it only returns 100 ticket numbers, but trac has almost 3000 tickets.
import xmlrpclib server = xmlrpclib.ServerProxy("https://tracsvr.a.com/projects/trac/login/xmlrpc") for ticket in server.ticket.query(): print ticket
Attachments (0)
Change History (5)
comment:1 Changed 16 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 16 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
I think this could actually still be a bug. When I create a query in Mylyn over all my tickets, open or closed (according to the identical Trac custom query, it should be 865 tickets), Mylyn only fetches exactly the first 100 of the query and thinks it's done.
This means I have to do a bunch of small queries, which the Mylyn documentation specifically counsels not to do.
comment:3 Changed 16 years ago by
Trac queries by default return 100 results. You can change the number by appending "max=number" to your query. Did the trick for me.
comment:4 Changed 16 years ago by
You can also change the default value in trac.ini: ... [query] items_per_page=XXXX
(I also use Mylyn and that fixed the task list for me.)
comment:5 Changed 15 years ago by
Cc: | Steffen Pingel added; anonymous removed |
---|---|
Description: | modified (diff) |
Resolution: | → wontfix |
Status: | reopened → closed |
Summary: | qury more than 100 tickets? → query more than 100 tickets? |
Marking as wontfix since the API works as intended.
Please refer to this bug for addressing the limitation in Mylyn:
268427: query only returns first 100 matches https://bugs.eclipse.org/bugs/show_bug.cgi?id=268427
The default is to return only tickets that are not closed. The function takes a query string in the same format as Trac's /query handler. See that for more details.