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)
Wed, Sep 2, 11:26 AM
Unknown Object (File)
Tue, Sep 1, 11:28 AM
Unknown Object (File)
Aug 6 2026, 8:50 PM
Unknown Object (File)
Aug 5 2026, 2:58 AM
Unknown Object (File)
Jul 7 2026, 10:43 PM
Unknown Object (File)
Jul 7 2026, 10:43 PM
Unknown Object (File)
Jul 4 2026, 7:11 AM
Unknown Object (File)
Jul 1 2026, 6:50 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