Modify

Opened 16 years ago

Closed 15 years ago

#3509 closed defect (wontfix)

query more than 100 tickets?

Reported by: mansukim@… Owned by: Alec Thomas
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Steffen Pingel Trac Release: 0.11

Description (last modified by Steffen Pingel)

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 Alec Thomas

Resolution: invalid
Status: newclosed

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.

comment:2 Changed 16 years ago by anonymous

Resolution: invalid
Status: closedreopened

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 15 years ago by anonymous

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 15 years ago by anonymous

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 Steffen Pingel

Cc: Steffen Pingel added; anonymous removed
Description: modified (diff)
Resolution: wontfix
Status: reopenedclosed
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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.