1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00
phorge-phorge/src/applications/repository/management
epriestley e397103bf2 Extend all "ManagementWorkflow" classes from a base class
Summary:
Ref T2015. Not directly related to Drydock, but I've wanted to do this for a bit.

Introduce a common base class for all the workflows in the scripts in `bin/*`. This slightly reduces code duplication by moving `isExecutable()` to the base, but also provides `getViewer()`. This is a little nicer than `PhabricatorUser::getOmnipotentUser()` and gives us a layer of indirection if we ever want to introduce more general viewer mechanisms in scripts.

Test Plan: Lint; ran some of the scripts.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2015

Differential Revision: https://secure.phabricator.com/D7838
2013-12-27 13:15:40 -08:00
..
PhabricatorRepositoryManagementDeleteWorkflow.php Add bin/repository edit for CLI repository editing 2013-11-13 11:26:05 -08:00
PhabricatorRepositoryManagementDiscoverWorkflow.php Remove PhabricatorRepository::loadAllByPHIDOrCallsign() 2013-09-26 12:36:24 -07:00
PhabricatorRepositoryManagementEditWorkflow.php Extend all "ManagementWorkflow" classes from a base class 2013-12-27 13:15:40 -08:00
PhabricatorRepositoryManagementImportingWorkflow.php Add an administrative bin/repository importing command to list importing commits 2013-11-06 11:26:41 -08:00
PhabricatorRepositoryManagementListWorkflow.php Extend all "ManagementWorkflow" classes from a base class 2013-12-27 13:15:40 -08:00
PhabricatorRepositoryManagementLookupUsersWorkflow.php Extend all "ManagementWorkflow" classes from a base class 2013-12-27 13:15:40 -08:00
PhabricatorRepositoryManagementMarkImportedWorkflow.php Add an administrative bin/repository mark-imported command 2013-11-06 11:26:24 -08:00
PhabricatorRepositoryManagementPullWorkflow.php Remove PhabricatorRepository::loadAllByPHIDOrCallsign() 2013-09-26 12:36:24 -07:00
PhabricatorRepositoryManagementWorkflow.php Extend all "ManagementWorkflow" classes from a base class 2013-12-27 13:15:40 -08:00