superfluous query for ticket links for merged ticket id's
Christian Loos <[email protected]> Thu, 18 Feb 2016 15:11:56 +0100
| Newsgroups | gmane.comp.bug-tracking.request-tracker.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, if you merge ticket 2 into 1, all links are moved from ticket 2 to 1 [1]. If you later query ticket 1 for linked tickets, the link query limits by the ticket id and RT::Ticket->Merged [2], which starts a query for tickets that are merged into this ticket [3]. As ticket links are moved on merge, limit the RT::Ticket->_Links also by merged ticket id's looks unnecessary for me. Chris [1] https://github.com/bestpractical/rt/blob/stable/lib/RT/Ticket.pm#L1849 [2] https://github.com/bestpractical/rt/blob/stable/lib/RT/Ticket.pm#L1751 [3] https://github.com/bestpractical/rt/blob/stable/lib/RT/Ticket.pm#L1751 --------- RT 4.4 and RTIR Training Sessions (http://bestpractical.com/services/training.html) * Hamburg Germany - March 14 & 15, 2016 * Washington DC - May 23 & 24, 2016