Heya ![]()
I am reading the docs for extending deploy over here
But when trying the ITransferEntityService.RegisterTransferEntityType() method it seems that it has changed and been made simpler, to only give it the alias of the UDI/entity type string and the options, but it no longer has the other parameters that seem to help tie the entity to a given tree.
So in V17 how do we do this now?
Current Docs
// Snippet from docs article above
_transferEntityService.RegisterTransferEntityType(
"mypackage-example",
"Examples",
new DeployRegisteredEntityTypeDetailOptions
{
SupportsQueueForTransfer = true,
SupportsQueueForTransferOfDescendents = true,
SupportsRestore = true,
PermittedToRestore = true,
SupportsPartialRestore = true,
},
false,
"exampleTreeAlias",
(string routePath, HttpContext httpContext) => true,
(string nodeId, HttpContext httpContext) => true,
(string nodeId, HttpContext httpContext, out Guid entityId) => Guid.TryParse(nodeId, out entityId),
new DeployRegisteredEntityTypeDetail.RemoteTreeDetail(FormsTreeHelper.GetExampleTree, "example", "externalExampleTree"),
entitiesGetter: () => _exampleDataService.Get());
Current method
transferEntityService.RegisterTransferEntityType("mypackage-example", new DeployRegisteredEntityTypeDetailOptions
{
SupportsQueueForTransfer = true,
SupportsQueueForTransferOfDescendents = true,
SupportsRestore = true,
PermittedToRestore = true,
SupportsPartialRestore = true,
SupportsImportExport = true,
});
Question
So how does Umbraco Deploy know about the tree item to add the UI options to?