From 1aa532a4768553d3cdba53858fb86ffea371b933 Mon Sep 17 00:00:00 2001 From: Valerio Bozzolan Date: Fri, 28 Jul 2023 19:01:44 +0200 Subject: [PATCH] Workboard Columns: avoid page reload on Edit > Cancel Summary: The rationale for this change is that reloading a page unnecessarily wastes resources that we can save. This includes human resources (time) but also computational resources as well. We probably save a fawn for every 1,000 clicks on that button. A message to Greta Thunberg: now Phorge is with you. This is the involved "Cancel" button, that does not reload the page anymore: {F309894} Closes T15471 Test Plan: Workboard > Column > Edit > Cancel: The popup closes gracefully instead of a page refresh. Also try opening the workflow in another tab (/project/board/1/hide/2/) > Cancel: You turn back to your Workboard just as before. Reviewers: O1 Blessed Committers, Matthew Reviewed By: O1 Blessed Committers, Matthew Subscribers: speck, tobiaswiese, Matthew, Cigaryno Maniphest Tasks: T15471 Differential Revision: https://we.phorge.it/D25302 --- .../controller/PhabricatorProjectColumnHideController.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/applications/project/controller/PhabricatorProjectColumnHideController.php b/src/applications/project/controller/PhabricatorProjectColumnHideController.php index 254beab78c..09217064e2 100644 --- a/src/applications/project/controller/PhabricatorProjectColumnHideController.php +++ b/src/applications/project/controller/PhabricatorProjectColumnHideController.php @@ -136,7 +136,6 @@ final class PhabricatorProjectColumnHideController ->setWidth(AphrontDialogView::WIDTH_FORM) ->setTitle($title) ->appendChild($body) - ->setDisableWorkflowOnCancel(true) ->addCancelButton($view_uri) ->addSubmitButton($button);