Net::T...tSearch(3pm)
πΈ Net::Trac::TicketSearch π
okay bestie, come closer, because this is the page for Net::Trac::TicketSearch(3pm), straight out of the User Contributed Perl Documentation pile π«Ά β and no, your eyes aren't broken, the header really does squish it down to Net::T...tSearch(3pm). The full name is the one up there in the title. iykyk β¨
β¨ NAME β¨
Net::Trac::TicketSearch β a ticket search (custom query) in Trac. literally just that. the vibe is "go ask a remote Trac for tickets and get them back" π
π SYNOPSIS π
my $search = Net::Trac::TicketSearch->new( connection => $trac );
$search->query(
owner => 'hiro',
status => { 'not' => [qw(new reopened)] },
summary => { 'contains' => 'yatta!' },
reporter => [qw( foo@example.com bar@example.com )]
);
print $_->id, "\n" for @{$search->results};
no cap, that's the whole flow: make one, query it, print the ids. iconic π₯
π¦ DESCRIPTION π¦
This class lets you run ticket searches on a remote Trac instance. that's it, that's the whole job, and it does it so well π
π ACCESSORS π
π connection
The connection. ya girl needs her $trac to talk to, periodt.
πΈ limit [NUMBER]
Get/set the maximum number of results to fetch. Default is 500. lowkey important: the Trac instance itself may also cap this on you, so don't come for this module if you get fewer π₯²
β¨ results
Returns an arrayref of Net::Trac::Tickets for the current query. slay.
π url
Returns the relative URL for the current query. heads up bestie: note the format will be CSV. π
π METHODS π
π₯ query [PARAMHASH]
Performs a ticket search with the given search conditions. You hand it a hash of "column =" value> pairs for which to search. π
Values may be a simple scalar, a hashref, or an arrayref:
- a simple scalar β just the value, easy peasy
- a hashref β lets you pick a different operator for the comparison (list of valid ones is right below π)
- an arrayref β lets multiple values be or'd for the same column
and here's the sad part π₯Ί β unfortunately Trac has no way of anding multiple values for the same column. we don't make the rules.
Valid operators are is (that's the default β¨), not, contains, lacks, startswith, and endswith.
Returns undef on error, and the results otherwise. π
π LICENSE π
Copyright 2008-2009 Best Practical Solutions.
This package is licensed under the same terms as Perl 5.8.8.
and that's a wrap, my love π«Ά this whole thing was brought to you by perl v5.36.0, dated 2022-12-12, and filed under Net::T...tSearch(3pm) β go search some tickets, you absolute main character ππ
π¦ where this page comes from
- debian bookworm: libnet-trac-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnet-trac-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-trac-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-trac-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-trac-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms