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/policy
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
..
__tests__ Fix an error in the PolicyFilter algorithm 2013-12-05 17:00:53 -08:00
application Prepare the policy rule edit endpoint for integration 2013-10-14 12:07:31 -07:00
capability Allow "Default View" policies to be set to Public 2013-10-09 15:06:18 -07:00
config Move policy config to "Policy" app and make policy.allow-public description scarier 2013-09-27 10:50:19 -07:00
constants Passphrase v0 2013-11-20 09:13:35 -08:00
controller Harbormaster v(-2) 2013-10-22 15:01:06 -07:00
exception Allow applications to define new policy capabilities 2013-10-07 13:28:58 -07:00
filter Fix an error in the PolicyFilter algorithm 2013-12-05 17:00:53 -08:00
interface Work around a bug in PHP 5.3-ish with abstract methods in interfaces 2013-10-25 15:58:17 -07:00
management Extend all "ManagementWorkflow" classes from a base class 2013-12-27 13:15:40 -08:00
phid Remove many redundant implementations of canLoadNamedObject() 2013-12-18 12:00:01 -08:00
query Lock policy queries to their applications 2013-10-21 17:20:27 -07:00
rule Allow "Custom" policies to be selected in the policy control 2013-10-14 16:59:16 -07:00
storage Passphrase v0 2013-11-20 09:13:35 -08:00