1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-27 23:18:20 +01:00
phorge-phorge/src/applications/transactions/editfield
epriestley 2f11001f6e Allow "Change Subtype" to be selected from the comment action stack
Summary:
Ref T13222. See PHI683. Currently, you can "Change subtype..." via Conduit and the bulk editor, but not via the comment action stack or edit forms.

In PHI683 an install is doing this often enough that they'd like it to become a first-class action. I've generally been cautious about pushing this action to become a first-class action (there are some inevitable rough edges and I don't want to add too much complexity if there isn't a use case for it) but since we have evidence that users would find it useful and nothing has exploded yet, I'm comfortable taking another step forward.

Currently, `EditEngine` has this sort of weird `setIsConduitOnly()` method. This actually means more like "this doesn't show up on forms". Make it better align with that. In particular, a "conduit only" field can already show up in the bulk editor, which is goofy. Change this to `setIsFormField()` and convert/simplify existing callsites.

Test Plan:
There are a lot of ways to reach EditEngine so this probably isn't entirely exhaustive, but I think I got pretty much anything which is likely to break:

- Searched for `setIsConduitOnly()` and `getIsConduitOnly()`, converted all callsites to `setIsFormField()`.
- Searched for `setIsLockable()`, `setIsReorderable()` and `setIsDefaultable()` and aligned these calls to intent where applicable.
- Created an Almanac binding.
- Edited an Almanac binding.
- Created an Almanac service.
- Edited an Almanac service.
- Edited a binding property.
- Deleted a binding property.
- Created and edited a badge.
- Awarded and revoked a badge.
- Created and edited an event.
- Made an event recurring.
- Created and edited a Conpherence thread.
- Edited and updated the diff for a revision.
- Created and edited a repository.
- Created and disabled repository URIs.
- Created and edited a blueprint.
- Created and edited tasks.
- Created a paste, edited/archived a paste.
- Created/edited/archived a package.
- Created/edited a project.
- Made comments.
- Moved tasks on workboards via comment action stack.
- Changed task subtype via comment action stack.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13222

Differential Revision: https://secure.phabricator.com/D19842
2018-11-28 13:40:40 -08:00
..
PhabricatorApplyEditField.php When you "Request Review" of a draft revision, change the button text from "Submit Quietly" to "Publish Revision" 2018-11-15 20:50:21 -08:00
PhabricatorBoolEditField.php Make the "All Day Event" control use a checkbox instead of a dropdown 2016-10-31 14:18:59 -07:00
PhabricatorCheckboxesEditField.php Improve UI and documentation for "Ignore Attributes" in Owners slightly 2018-05-08 14:03:30 -07:00
PhabricatorColumnsEditField.php Implement a rough optgroup-based "Move on Workboard" stacked action 2016-04-06 09:15:12 -07:00
PhabricatorCommentEditField.php Allow the new Differential EditEngine form to create/update diffs for revisions 2016-12-14 07:27:25 -08:00
PhabricatorConduitEditField.php Improve Conduit type handling for *.edit endpoints 2015-12-16 08:45:46 -08:00
PhabricatorDatasourceEditField.php Modularize application extensions to EditEngine 2015-11-30 08:59:27 -08:00
PhabricatorDividerEditField.php Allow the new Differential EditEngine form to create/update diffs for revisions 2016-12-14 07:27:25 -08:00
PhabricatorEditField.php Allow "Change Subtype" to be selected from the comment action stack 2018-11-28 13:40:40 -08:00
PhabricatorEpochEditField.php Hide time controls when editing all-day Calendar events 2016-07-27 05:01:19 -07:00
PhabricatorFileEditField.php Make Calendar ICS imports sort of work in a crude, approximate way 2016-10-12 15:29:05 -07:00
PhabricatorHandlesEditField.php Replace workboard task creation with EditEngine 2015-12-08 17:56:11 -08:00
PhabricatorIconSetEditField.php Convert projects to EditEngine 2015-12-27 15:42:50 -08:00
PhabricatorInstructionsEditField.php Improve Conduit type handling for *.edit endpoints 2015-12-16 08:45:46 -08:00
PhabricatorIntEditField.php Implement "almanac.interface.search" and "almanac.interface.edit" 2018-04-11 10:35:03 -07:00
PhabricatorPHIDListEditField.php Accept null via conduit.edit to unassign a task 2018-01-31 15:33:52 -08:00
PhabricatorPointsEditField.php Support bulk edit of "points" for Maniphest tasks 2018-01-22 11:59:52 -08:00
PhabricatorPolicyEditField.php Improve Conduit type handling for *.edit endpoints 2015-12-16 08:45:46 -08:00
PhabricatorProjectsEditField.php Improve Conduit type handling for *.edit endpoints 2015-12-16 08:45:46 -08:00
PhabricatorRemarkupEditField.php Restore bulk edit support for remarkup fields (description, add comment) 2018-01-19 12:45:34 -08:00
PhabricatorSelectEditField.php Make bulk edit <select /> fields a little more natrual and set options for subtype transactions 2018-01-19 13:17:28 -08:00
PhabricatorSpaceEditField.php Prevent "Spaces" field from being set to inconsistent values 2015-12-17 11:22:32 -08:00
PhabricatorStaticEditField.php Convert DrydockBlueprints to EditEngine 2016-03-03 15:21:25 -08:00
PhabricatorStringListEditField.php Fix smushing of multiple values in Projects "Additional Hashtags" field 2016-01-18 08:34:13 -08:00
PhabricatorSubmitEditField.php Allow the new Differential EditEngine form to create/update diffs for revisions 2016-12-14 07:27:25 -08:00
PhabricatorSubscribersEditField.php Improve Conduit type handling for *.edit endpoints 2015-12-16 08:45:46 -08:00
PhabricatorTextAreaEditField.php Fix an issue with TextAreaEditField affecting Paste 2016-05-11 15:35:17 -07:00
PhabricatorTextEditField.php Define bulk edits in terms of EditEngine, not hard-coded ad-hoc definitions 2018-01-19 12:43:47 -08:00
PhabricatorTokenizerEditField.php Respect tokenizer limits in the bulk editor 2018-01-22 11:55:55 -08:00
PhabricatorUsersEditField.php Improve behavior of "owner" transaction in "maniphest.edit" endpoint 2016-01-11 09:19:18 -08:00