1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 19:40:55 +01:00
phorge-phorge/src/applications/maniphest/herald
epriestley 4d68c0ae04 Make Herald test workflow modular and more clear
Summary:
Fixes T9719. Currently, the Herald "Test Console" has a big `instanceof` thing, so new adapters (like a Calendar adapter, or third-party adapters) aren't available automatically. Instead, do a standard modular thing: load the available adapters, ask which ones can test the object the user selected, then let the user pick which one they want to move forward with.

Additionally, it isn't very clear that you can't test "commit hook" rules because they rely on push state which we don't really have a good way to simulate. When the user picks a commit, we now show them the "Hook" events, but the options are disabled and explain why they can not be selected.

Test Plan:
 - Ran test rules for revisions, commits, mocks, tasks, wiki documents, questions, and outbound mail.
 - Plugged in a commit, got a more-helpful choice screen explaining why you do a test run of hook rules.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9719

Differential Revision: https://secure.phabricator.com/D16360
2016-08-03 16:12:33 -07:00
..
HeraldManiphestTaskAdapter.php Make Herald test workflow modular and more clear 2016-08-03 16:12:33 -07:00
ManiphestTaskAssigneeHeraldField.php Fully modularize Herald field values 2015-07-16 14:12:44 -07:00
ManiphestTaskAssignHeraldAction.php Allow "Assign task" Herald Action in Maniphest to accept "None" to unassign 2015-12-05 12:39:45 -08:00
ManiphestTaskAssignOtherHeraldAction.php Allow "Assign task" Herald Action in Maniphest to accept "None" to unassign 2015-12-05 12:39:45 -08:00
ManiphestTaskAssignSelfHeraldAction.php Modularize Maniphest Herald "Assign Task" action 2015-08-03 14:33:25 -07:00
ManiphestTaskAuthorHeraldField.php Fully modularize Herald field values 2015-07-16 14:12:44 -07:00
ManiphestTaskDescriptionHeraldField.php Reduce code duplication in Herald fields 2015-07-16 14:11:44 -07:00
ManiphestTaskHeraldField.php Group and order Herald fields 2015-07-16 14:13:13 -07:00
ManiphestTaskHeraldFieldGroup.php Group and order Herald fields 2015-07-16 14:13:13 -07:00
ManiphestTaskPriorityHeraldAction.php Add a "Change priority to: ..." Herald action 2015-12-05 11:20:53 -08:00
ManiphestTaskPriorityHeraldField.php Support "Select" custom fields in Herald rules 2015-07-16 14:12:54 -07:00
ManiphestTaskStatusHeraldAction.php Herald support for changing task status 2015-12-05 10:55:36 -08:00
ManiphestTaskStatusHeraldField.php Support "Select" custom fields in Herald rules 2015-07-16 14:12:54 -07:00
ManiphestTaskTitleHeraldField.php Reduce code duplication in Herald fields 2015-07-16 14:11:44 -07:00