[Rt-commit] rt branch, 4.4/validator-create-missing-ticket-role-groups, repushed

? sunnavy sunnavy at bestpractical.com
Wed Jul 18 09:56:35 EDT 2018


The branch 4.4/validator-create-missing-ticket-role-groups was deleted and repushed:
       was c0a8f5f12ec9586c02fe90a939e5ad0d33663cdd
       now c7cce5dbf66c8d7070cd03f12fc93324958e701f

1: f224bddad ! 1: 5de5307a9 Create related role groups if rt-validator finds tickets that don't have any
    @@ -1,6 +1,9 @@
     Author: sunnavy <sunnavy at bestpractical.com>
     
         Create related role groups if rt-validator finds tickets that don't have any
    +    
    +    Note that we intentionally skip merged tickets because it's unnecessary
    +    and also not trivial to create related role groups for them.
     
     diff --git a/sbin/rt-validator.in b/sbin/rt-validator.in
     --- a/sbin/rt-validator.in
    @@ -14,7 +17,11 @@
      $redo_on{'Update'} = {
          Groups => ['User Defined Group Name uniqueness'],
     @@
    -         'Tickets', 'id' => 'Groups', 'Instance',
    +     # from queue to group
    +     my $res = 1;
    +     $res *= check_integrity(
    +-        'Tickets', 'id' => 'Groups', 'Instance',
    ++        'Tickets', 'EffectiveId' => 'Groups', 'Instance',
              join_condition   => 't.Domain = ?',
              bind_values => [ 'RT::Ticket-Role' ],
     +        action => sub {
2: c0a8f5f12 = 2: c7cce5dbf Test validator for creating missing role groups



More information about the rt-commit mailing list