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
F15581574: D20810.id.diff
Wed, May 7, 11:49 AM
F15560366: D20810.id49617.diff
Tue, Apr 29, 2:11 PM
F15554910: D20810.diff
Mon, Apr 28, 9:18 AM
F15442407: D20810.id.diff
Mar 26 2025, 11:15 PM
F15438561: D20810.diff
Mar 26 2025, 1:32 AM
F15426440: D20810.id49617.diff
Mar 23 2025, 8:44 AM
F15413975: D20810.diff
Mar 19 2025, 10:16 PM
F15392625: D20810.id49616.diff
Mar 15 2025, 4:27 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