Page MenuHomePhabricator

Replace the informal "array" subtype map with a more formal "SubtypeMap" object
ClosedPublic

Authored by epriestley on Dec 6 2018, 4:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 24 2025, 6:41 PM
Unknown Object (File)
Apr 15 2025, 9:40 AM
Unknown Object (File)
Apr 13 2025, 5:03 AM
Unknown Object (File)
Apr 12 2025, 5:18 PM
Unknown Object (File)
Apr 7 2025, 9:22 PM
Unknown Object (File)
Mar 28 2025, 11:44 PM
Unknown Object (File)
Mar 27 2025, 3:29 AM
Unknown Object (File)
Mar 16 2025, 6:24 PM
Subscribers
None

Details

Summary

Ref T13222. Ref T12588. See PHI683. To make "Create Subtask..." fancier, we need slightly more logic around subtype maps. Upgrade the plain old array into a proper object so it can have relevant methods, notably "get a list of valid child subtypes for some parent subtype".

Test Plan

Created and edited tasks, changed task subtypes. Grepped for affected symbols (newEditEngineSubtypeMap, newSubtypeMap).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable