Page MenuHomePhabricator

Don't allow forms which can't create objects to be added to profile menus
ClosedPublic

Authored by epriestley on Feb 16 2017, 11:17 PM.
Tags
None
Referenced Files
F18094365: D17372.diff
Thu, Aug 7, 10:06 PM
F18090857: D17372.id41773.diff
Wed, Aug 6, 6:01 PM
F18089569: D17372.diff
Wed, Aug 6, 11:48 AM
F17939689: D17372.id41773.diff
Thu, Jul 31, 3:19 AM
F17935300: D17372.id41774.diff
Wed, Jul 30, 11:18 PM
Unknown Object (File)
Jun 17 2025, 3:39 PM
Unknown Object (File)
Jun 16 2025, 6:43 PM
Unknown Object (File)
May 7 2025, 1:06 AM
Subscribers
None

Details

Summary

Fixes T12281. Some forms (like Settings) can't actually create new objects. Currently, though, you can select them and add them to profile menus; if you do, they fail when building an item.

Kick them out of the typeahead, and decline to render them in menus.

Test Plan

Added "Create Settings" to a menu, no longer fatals after patch (item vanished from menu, still editable normally to get rid of it).

Tried to add another "Create Settings", no longer available in typehaead.

Added some normal stuff.

Viewed a choose-among-forms dropdown in Maniphest, which still worked normally.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable