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
F15451777: D19852.diff
Fri, Mar 28, 11:44 PM
F15443281: D19852.diff
Thu, Mar 27, 3:29 AM
F15397140: D19852.diff
Sun, Mar 16, 6:24 PM
F15308907: D19852.id47411.diff
Mar 6 2025, 6:45 AM
F15308905: D19852.id47406.diff
Mar 6 2025, 6:45 AM
F15308904: D19852.id.diff
Mar 6 2025, 6:45 AM
F15308903: D19852.diff
Mar 6 2025, 6:45 AM
Unknown Object (File)
Feb 25 2025, 12:47 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