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
Unknown Object (File)
Sun, Jun 22, 12:15 AM
Unknown Object (File)
May 9 2025, 7:05 PM
Unknown Object (File)
May 7 2025, 11:49 AM
Unknown Object (File)
Apr 29 2025, 2:11 PM
Unknown Object (File)
Apr 28 2025, 9:18 AM
Unknown Object (File)
Mar 26 2025, 11:15 PM
Unknown Object (File)
Mar 26 2025, 1:32 AM
Unknown Object (File)
Mar 23 2025, 8:44 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