Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#11650 closed defect (wontfix)

new ticket method queryDetailed

Reported by: anonymous Owned by: Odd Simon Simonsen
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Olemis Lang Trac Release:

Description

Hi,

For our use case we would like to be able to get full info about a set of tickets from a query (representing holiday requests), without having to make a request for each ticket id.

Patch attached. Cheers Shez

Attachments (1)

tracrpc.patch (1.4 KB) - added by shez@… 4 years ago.
Patch to add new rpc ticket.queryDetailed endpoint

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by shez@…

Attachment: tracrpc.patch added

Patch to add new rpc ticket.queryDetailed endpoint

comment:1 in reply to:  description Changed 4 years ago by Olemis Lang

Replying to anonymous:

Hi,

Hi ! :)

For our use case we would like to be able to get full info about a set of tickets from a query (representing holiday requests), without having to make a request for each ticket id.

Your use case would be solved by issuing two RPC calls .

  1. ticket.query()
  2. system.multicall() wrapping signatures for multiple calls to ticket.get()

Should you need any help then I could provide you with a working example . IMHO this ticket should be resolved as wontfix .

@osimons : please feel free to do so on my behalf if you notice I take too long before doing so .

Patch attached.

Thanks , but in this cases there's no chance (afaict) for this to be committed .

comment:2 Changed 4 years ago by Olemis Lang

Resolution: wontfix
Status: newclosed

comment:3 Changed 4 years ago by anonymous

Hi,

Will your solution result in 100 GET requests if there are a hundred tickets matched?

I was assuming it would, which is very sub-optimal for us, hence my patch.

Cheers! Shez

comment:4 Changed 4 years ago by anonymous

Apologies, with a little reading i see system.multicall should do the RPC calls internally on the server.

Cheers Shez

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Odd Simon Simonsen.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.