[Rt-commit] rt branch, 5.0/configurable-linked-queue-portlets, repushed

Blaine Motsinger blaine at bestpractical.com
Tue Mar 31 15:40:33 EDT 2020


The branch 5.0/configurable-linked-queue-portlets was deleted and repushed:
       was dc43b873c9faf3a57696d201f3915f645e63c739
       now ca34f59426a01f69e11485f048419e09b890b202

1: 53f5f99534 = 1: 53f5f99534 Add a configurable queue portlet to ticket display page
2: 6927815148 = 2: 6927815148 Add docs for the new Linked Queue Portlets configs
3: dc43b873c9 ! 3: ca34f59426 Add test for Linked Queue Portlets
    @@ -14,12 +14,10 @@
     +
     +# create ticket in general queue
     +# this ticket will display the portlet for the other queue, with the other ticket in it
    -+my $queue_one  = RT::Test->load_or_create_queue( Name => 'General' );
     +my $ticket_one = RT::Test->create_ticket(
     +    Subject => 'test ticket in General queue',
    -+    Queue   => $queue_one->Id
    ++    Queue   => 'General'
     +);
    -+ok( $ticket_one && $ticket_one->Id, 'created ticket in "General" queue' );
     +
     +# create test queue and test ticket in it
     +my $queue_name = 'test queue';
    @@ -27,13 +25,10 @@
     +    Name        => $queue_name,
     +    Description => $queue_name
     +);
    -+ok( $queue_two && $queue_two->Id, 'created "test queue" queue' );
     +my $ticket_two = RT::Test->create_ticket(
     +    Subject => 'test ticket in "' . $queue_name . '" queue',
    -+    Queue   => $queue_two->Id
    ++    Queue   => $queue_name
     +);
    -+ok( $ticket_two && $ticket_two->Id,
    -+    'created ticket in "' . $queue_name . '" queue' );
     +
     +# change config to load new queue portlet in general
     +# this isn't exercising limiting to a specific link relationship set such as 'HasMember', 'MemberOf', or 'RefersTo'; just 'All'
    @@ -56,7 +51,7 @@
     +
     +# link tickets so the ticket shows up in the linked queue portlet
     +ok( $ticket_one->AddLink( Type => 'RefersTo', Target => $ticket_two->Id ),
    -+    'linked ticket in "General" queue to ticket in "' . $queue_name . '" queue' );
    ++    'added RefersTo link for ticket in "General" queue to ticket in "' . $queue_name . '" queue' );
     +
     +$m->get_ok( "/Ticket/Display.html?id=" . $ticket_one->Id );
     +is( $m->dom->find(".$linked_queue_class .collection-as-table a")->first->attr('href'),



More information about the rt-commit mailing list