The module consist of 3 modules which extends Deployment module:
- menu_parent_deploy
Module fixes menu parent hierarchy issues by using the menu and node services to discover the correct remote parent item to select when deploying nodes.
This code could be included directly in node_deploy.module but it was easier to keep it separate during development.
This still has issues when sending over new parent and child nodes as part of the same deployment; if the child nodes are sent first, obviously the parents don't yet exist, so the lookup fails and the items are incorrectly parented. However, this seems difficult to solve fully, especially if you are sending a large menu tree with more than two levels of parent/child items in a single plan - the plan item weight system can't easily cope with this level of complexity, especially if some of those nodes have further dependencies on other nodes. There are seemingly impossible chicken-and-egg corner cases if a parent menu item has a nodereference field to a child menu item, for example.