1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 10:52:41 +01:00
phorge-phorge/src/applications/diviner
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
..
application Diviner CSS, layout updates 2013-09-10 07:26:00 -07:00
atom Clean up some more Diviner stuff 2013-09-08 09:16:55 -07:00
atomizer Allow Diviner groups to be configured in .book files 2013-09-02 11:33:02 -07:00
cache Add a ref cache and index construction to Diviner 2013-02-17 15:40:11 -08:00
controller Provide convenience method addTextCrumb() to PhabricatorCrumbsView 2013-12-18 17:47:34 -08:00
markup Generate PHP function documentation in Diviner 2013-08-27 03:14:00 -07:00
phid Lock policy queries to their applications 2013-10-21 17:20:27 -07:00
publisher Link and summarize methods in the "Tasks" view of a Diviner class 2013-09-08 09:12:33 -07:00
query Lock policy queries to their applications 2013-10-21 17:20:27 -07:00
renderer Link and summarize methods in the "Tasks" view of a Diviner class 2013-09-08 09:12:33 -07:00
storage Make PhabricatorPolicyInterface require a getPHID() method 2013-10-14 14:35:47 -07:00
view Policy, Status in PHUIHeaderView 2013-09-17 09:12:37 -07:00
workflow Extend all "ManagementWorkflow" classes from a base class 2013-12-27 13:15:40 -08:00