[Rt-commit] rt branch, 4.6/txn-query-builder, repushed
? sunnavy
sunnavy at bestpractical.com
Fri Jul 19 15:37:53 EDT 2019
The branch 4.6/txn-query-builder was deleted and repushed:
was 9fdae856cd54f9644931608d5b5cb3c1877298d6
now c0e47ec9f12b457274db3e008c21f15c85bf9afa
1: 985fb76b4 ! 1: 9600af280 Initial ticket transaction query builder
@@ -366,7 +366,6 @@
+ TicketOwner => ['TICKETFIELD'], #loc_left_pair
+ TicketCreator => ['TICKETFIELD'], #loc_left_pair
+ TicketLastUpdatedBy => ['TICKETFIELD'], #loc_left_pair
-+ TicketUpdatedBy => ['TICKETFIELD'], #loc_left_pair
+ TicketCreated => ['TICKETFIELD'], #loc_left_pair
+ TicketStarted => ['TICKETFIELD'], #loc_left_pair
+ TicketResolved => ['TICKETFIELD'], #loc_left_pair
@@ -374,7 +373,6 @@
+ TicketLastUpdated => ['TICKETFIELD'], #loc_left_pair
+ TicketStarts => ['TICKETFIELD'], #loc_left_pair
+ TicketDue => ['TICKETFIELD'], #loc_left_pair
-+ TicketUpdated => ['TICKETFIELD'], #loc_left_pair
+ TicketPriority => ['TICKETFIELD'], #loc_left_pair
+ TicketInitialPriority => ['TICKETFIELD'], #loc_left_pair
+ TicketFinalPriority => ['TICKETFIELD'], #loc_left_pair
@@ -1189,6 +1187,18 @@
--- a/share/html/Elements/RT__Transaction/ColumnMap
+++ b/share/html/Elements/RT__Transaction/ColumnMap
@@
+ $Attr => undef
+ </%ARGS>
+ <%ONCE>
++my $get_ticket_value = sub {
++ my $sub = pop;
++ return sub { return $_[0]->ObjectType eq 'RT::Ticket' ? $sub->(@_) : '' };
++};
++
+ my $COLUMN_MAP = {
+ ObjectType => {
+ title => 'Object Type', # loc
+@@
title => 'Content', # loc
value => sub { return $_[0]->Content },
},
@@ -1199,6 +1209,70 @@
+ HTMLContent => {
+ title => 'Content', # loc
+ value => sub { return \$_[0]->Content( Type => 'text/html' ) },
++ },
++ TicketId => {
++ title => 'Ticket ID', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->id } ),
++ },
++ TicketSubject => {
++ title => 'Ticket Subject', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->Subject } ),
++ },
++ TicketQueue => {
++ title => 'Ticket Queue', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->QueueObj->Name } ),
++ },
++ TicketOwner => {
++ title => 'Ticket Owner', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->OwnerObj->Name } ),
++ },
++ TicketCreator => {
++ title => 'Ticket Creator', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->CreatorObj->Name } ),
++ },
++ TicketLastUpdatedBy => {
++ title => 'Ticket LastUpdatedBy', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->LastUpdatedByObj->Name } ),
++ },
++ TicketCreated => {
++ title => 'Ticket Created', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->CreatedObj->AsString } ),
++ },
++ TicketStarted => {
++ title => 'Ticket Started', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->StartedObj->AsString } ),
++ },
++ TicketResolved => {
++ title => 'Ticket Resolved', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->ResolvedObj->AsString } ),
++ },
++ TicketTold => {
++ title => 'Ticket Told', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->ToldObj->AsString } ),
++ },
++ TicketLastUpdated => {
++ title => 'Ticket LastUpdated', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->LastUpdatedObj->AsString } ),
++ },
++ TicketStarts => {
++ title => 'Ticket Starts', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->StartsObj->AsString } ),
++ },
++ TicketDue => {
++ title => 'Ticket Due', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->DueObj->AsString } ),
++ },
++ TicketPriority => {
++ title => 'Ticket Priority', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->Priority } ),
++ },
++ TicketInitialPriority => {
++ title => 'Ticket InitialPriority', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->InitialPriority } ),
++ },
++ TicketFinalPriority => {
++ title => 'Ticket FinalPriority', # loc
++ value => $get_ticket_value->( @_, sub { $_[0]->Object->FinalPriority } ),
+ },
};
@@ -1580,6 +1654,10 @@
+ @fields = qw( id ObjectId ObjectType ObjectName Type Field TimeTaken
+ OldValue NewValue ReferenceType OldReference NewReference
+ Created CreatedRelative CreatedBy Description Content PlainContent HTMLContent
++ TicketId TicketSubject TicketQueue TicketStatus TicketOwner TicketCreator
++ TicketLastUpdatedBy TicketCreated TicketStarted TicketResolved
++ TicketTold TicketLastUpdated TicketDue
++ TicketPriority TicketInitialPriority TicketFinalPriority
+ NEWLINE NBSP ); # loc_qw
-my $CustomRoles = RT::CustomRoles->new( $session{'CurrentUser'});
2: 42ffcb41a = 2: 2797d4c52 Add support to clamp long search result columns
3: aac59d102 = 3: 41fcf97fb Add transaction search tests
4: 9fdae856c = 4: c0e47ec9f Add transaction query builder tests
More information about the rt-commit
mailing list