Page MenuHomePhabricator

Allow subtypes to specify "mutations", to control the behavior of the "Change Subtype" action
ClosedPublic

Authored by epriestley on Sep 12 2019, 11:12 PM.
Tags
None
Referenced Files
F19531866: D20810.id49616.diff
Tue, Jan 20, 7:34 AM
F19508146: D20810.diff
Sat, Jan 10, 1:39 AM
F19083062: D20810.id49617.diff
Dec 2 2025, 12:29 PM
F19071681: D20810.diff
Nov 30 2025, 8:12 PM
F19059571: D20810.diff
Nov 29 2025, 5:42 AM
F18997717: D20810.diff
Nov 20 2025, 3:02 PM
F18985210: D20810.id49616.diff
Nov 17 2025, 12:56 PM
F18817417: D20810.id49617.diff
Oct 21 2025, 3:24 PM
Subscribers
None

Details

Summary

Fixes T13415. Provide a way for subtypes to customize the behavior of "Change Subtype" actions that appear above comment areas.

Subtypes may disable this action by specifying "mutations": [], or provide a list of subtypes.

The bulk editor and API can still perform any change.

Test Plan
  • Tried to define an invalid "mutations" list with a bad subtype, got a sensible error.
  • Specified a limited mutations list and an empty mutations list, verified that corresponding tasks got corresponding actions.
  • Used the bulk editor to perform a freeform mutation.
  • Verified that tasks of a subtype with no "mutations" still work the same way they used to (allow mutation into any subtype).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable