[Bps-public-commit] rt-extension-changemanagement branch devel updated. cc4685e8ddc45d7cb279c1d27c5ce9772a98e641

BPS Git Server git at git.bestpractical.com
Mon Jan 31 16:00:58 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt-extension-changemanagement".

The branch, devel has been updated
       via  cc4685e8ddc45d7cb279c1d27c5ce9772a98e641 (commit)
      from  a465e844345f792b2a07d67dfc575d080abecf05 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cc4685e8ddc45d7cb279c1d27c5ce9772a98e641
Author: Jason Crome <jcrome at bestpractical.com>
Date:   Mon Jan 31 11:00:11 2022 -0500

    Added actions to lifecycle config
    
    I loosened up pretty well all of the restrictions on transitions and
    added a bunch of actions to control the flow of things through change
    management.

diff --git a/etc/Lifecycle_config.pm b/etc/Lifecycle_config.pm
index a8205b4..a977d27 100644
--- a/etc/Lifecycle_config.pm
+++ b/etc/Lifecycle_config.pm
@@ -4,32 +4,52 @@ Set(%Lifecycles,
         active          => [ 'approved', 'in progress', 'partially deployed' ], # loc_qw
         inactive        => [ qw( deployed failed cancelled rejected deleted ) ], # loc_qw
         defaults => {
-            on_create            => 'requested',
-            approved             => 'approved',
-            denied               => 'rejected',
+            on_create   => 'requested',
         },
         transitions => {
-            # TODO: ease these, handle more with actions.
             # The following transition is required for ticket creation
             ''                   => [ qw( requested ) ],
-            requested            => [ qw( approved cancelled rejected deleted ) ],
-            approved             => [ 'in progress', qw( cancelled rejected deleted ) ],
-            'in progress'        => [ 'partially deployed', qw( deployed failed cancelled deleted ) ],
-            'partially deployed' => [ qw( deployed failed cancelled deleted ) ],
-            deployed             => [ 'in progress', 'partially deployed', qw( failed cancelled deleted ) ],
-            failed               => [ qw( cancelled deleted ) ],
-            cancelled            => [ qw( requested approved ) ],
-            rejected             => [ qw( requested approved ) ],
+            requested            => [ qw( approved deployed failed cancelled rejected deleted ), 'in progress', 'partially deployed' ],
+            approved             => [ qw( deployed failed cancelled rejected deleted ), 'in progress', 'partially deployed' ],
+            'in progress'        => [ qw( approved deployed failed cancelled rejected deleted ), 'partially deployed' ],
+            'partially deployed' => [ qw( approved deployed failed cancelled rejected deleted ), 'in progress' ],
+            deployed             => [ qw( approved failed cancelled rejected deleted ), 'in progress', 'partially deployed' ],
+            failed               => [ qw( approved deployed cancelled rejected deleted ), 'in progress', 'partially deployed' ],
+            cancelled            => [ qw( approved deployed failed rejected deleted ), 'in progress', 'partially deployed' ],
+            rejected             => [ qw( approved deployed failed cancelled deleted ), 'in progress', 'partially deployed' ],
         },
         rights => {
-            'requested -> *' => 'Change Reviewer',
+            'requested -> approved'             => 'Change Reviewer',
+            'requested -> rejected'             => 'Change Reviewer',
+            'approved -> in progress'           => 'Change Implementor',
+            'in progress -> deployed'           => 'Change Implementor',
+            'in progress -> partially deployed' => 'Change Implementor',
+            'in progress -> failed'             => 'Change Implementor',
         },
         actions => [
-            #'* -> Requested' => {
-                #label  => 'Submit For Approval',
-            #},
+            '* -> requested' => {
+                label  => 'Submit Request',
+            },
             'requested -> approved' => {
-                label  => 'Submit For Approval',
+                label  => 'Approve',
+            },
+            'requested -> rejected' => {
+                label  => 'Deny',
+            },
+            'approved -> in progress' => {
+                label  => 'Start Implementation',
+            },
+            'in progress -> deployed' => {
+                label  => 'Complete Implementation',
+            },
+            'in progress -> partially deployed' => {
+                label  => 'Partially Complete',
+            },
+            'in progress -> failed' => {
+                label  => 'Deployment Failed',
+            },
+            'in progress -> cancelled' => {
+                label  => 'Deployment Cancelled',
             },
         ]
     },
@@ -39,7 +59,7 @@ Set(%Lifecycles,
             'resolved'    => 'deployed',
             'open'        => 'in progress',
             'rejected'    => 'rejected',
-            'stalled'     => 'partially deployed', # TODO: ???
+            'open'        => 'partially deployed',
             'deleted'     => 'deleted',
         },
         'Change Management -> default' => {
-----------------------------------------------------------------------

Summary of changes:
 etc/Lifecycle_config.pm | 56 +++++++++++++++++++++++++++++++++----------------
 1 file changed, 38 insertions(+), 18 deletions(-)


hooks/post-receive
-- 
rt-extension-changemanagement


More information about the Bps-public-commit mailing list