1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-25 21:19:21 +01:00
phorge-phorge/src/applications/project/xaction
Austin McKinley 7e1743a959 Add a trigger rule to reassign a task
Summary:
Ref T13269. Workboard triggers can now reassign tasks on column drop. Also sprinkles some `setViewer()` calls in places that needed them.

This mostly works, but a few issues:

* To set the owner to unassigned, you must explicitly put the "No Owner" token in the typeahead. Maybe this should just figure out you've put nothing in that field and set it for you?
* I'm pretty sure this was already broken, but if you change the rule type from a tokenizer to a different type, the default for the field doesn't populate correctly: {F6312227}

Also adds a new hook for trigger rules: `getValueForField($value)` which allows you to transform a value stored in the DB into a form suitable for setting on a form control.

Test Plan: Dragged tasks between columns and observed new owners as expected. Didn't try to get fancy to assign tasks to deleted users, users that the viewer can't see, bot users, etc etc. I'm relying on the underlying transaction to hopefully do the right thing.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T13269

Differential Revision: https://secure.phabricator.com/D20329
2019-04-05 09:17:20 -07:00
..
column Track how many columns use a particular trigger 2019-03-25 14:04:55 -07:00
trigger Add a trigger rule to reassign a task 2019-04-05 09:17:20 -07:00
PhabricatorProjectColorTransaction.php Migrate Project color to modular transactions 2017-05-18 16:46:06 -07:00
PhabricatorProjectFilterTransaction.php Migrate Project sort and filter defaults to modular transactions 2017-05-24 12:36:06 -07:00
PhabricatorProjectIconTransaction.php Migrate Project icons to modular transactions 2017-05-18 16:25:59 -07:00
PhabricatorProjectImageTransaction.php Migrate Project image to modular transactions 2017-05-18 16:08:37 -07:00
PhabricatorProjectLockTransaction.php Move the "Can Lock Projects" check from requireCapabilities() to transaction validation 2018-08-16 10:56:00 -07:00
PhabricatorProjectMilestoneTransaction.php Migrate Project parent and milestone to modular transactions 2017-05-23 11:20:01 -07:00
PhabricatorProjectNameTransaction.php Migrate Project names to modular transactions 2017-05-17 17:12:22 -07:00
PhabricatorProjectParentTransaction.php Migrate Project parent and milestone to modular transactions 2017-05-23 11:20:01 -07:00
PhabricatorProjectSlugsTransaction.php Make Project slug/hashtag transactions render a little more nicely 2017-05-19 13:59:27 -07:00
PhabricatorProjectSortTransaction.php Migrate Project sort and filter defaults to modular transactions 2017-05-24 12:36:06 -07:00
PhabricatorProjectStatusTransaction.php Migrate Project status to modular transactions 2017-05-18 11:36:13 -07:00
PhabricatorProjectTransactionType.php Migrate Project names to modular transactions 2017-05-17 17:12:22 -07:00
PhabricatorProjectTypeTransaction.php Migrate Project parent and milestone to modular transactions 2017-05-23 11:20:01 -07:00
PhabricatorProjectWorkboardBackgroundTransaction.php Migrate Project workboard background color to modular transactions 2017-05-24 12:56:25 -07:00
PhabricatorProjectWorkboardTransaction.php Migrate Project workboard to modular transactions 2017-05-23 12:38:27 -07:00