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
F18775793: D20810.id49616.diff
Fri, Oct 10, 8:10 PM
F18734039: D20810.id.diff
Tue, Sep 30, 10:47 PM
F18570669: D20810.id49617.diff
Sep 10 2025, 4:02 AM
F18570667: D20810.id49616.diff
Sep 10 2025, 4:02 AM
F18567403: D20810.id.diff
Sep 9 2025, 3:45 PM
F18100705: D20810.diff
Aug 9 2025, 12:01 PM
F17949229: D20810.id.diff
Jul 31 2025, 11:01 PM
F17937678: D20810.diff
Jul 31 2025, 1:27 AM
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