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)
Wed, Nov 20, 10:35 AM
Unknown Object (File)
Fri, Nov 15, 11:48 PM
Unknown Object (File)
Tue, Nov 12, 1:24 AM
Unknown Object (File)
Mon, Nov 11, 5:11 AM
Unknown Object (File)
Fri, Nov 8, 5:51 AM
Unknown Object (File)
Mon, Nov 4, 5:11 AM
Unknown Object (File)
Mon, Nov 4, 5:10 AM
Unknown Object (File)
Mon, Nov 4, 5:10 AM
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