Skip to content

Commit bfac4fc

Browse files
Setting up queue for transfer but it fails currently
1 parent de5af20 commit bfac4fc

File tree

3 files changed

+36
-11
lines changed

3 files changed

+36
-11
lines changed

src/Umbraco.Commerce.Deploy/Composing/UmbracoCommerceDeployComponent.cs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ public void Initialize()
2525
{
2626
RegisterUdiTypes();
2727
InitializeDiskRefreshers();
28-
InitializeIntegratedEntities();
28+
29+
// TODO: Need to speak with Ronald to get the queue for transfer working
30+
// InitializeIntegratedEntities();
2931
}
3032

3133
public void Terminate()
@@ -53,20 +55,20 @@ private void InitializeIntegratedEntities()
5355
{
5456
// Add in integrated transfer entities
5557
transferEntityService.RegisterTransferEntityType<ProductAttributeReadOnly>(
56-
UmbracoCommerceConstants.UdiEntityType.ProductAttribute,
58+
"uc:product-attributes",
5759
"Product Attributes",
5860
new DeployRegisteredEntityTypeDetailOptions
5961
{
6062
SupportsQueueForTransfer = true,
61-
SupportsQueueForTransferOfDescendents = true,
63+
//SupportsQueueForTransferOfDescendents = true,
6264
SupportsRestore = true,
6365
PermittedToRestore = true,
6466
SupportsPartialRestore = true,
65-
//SupportsImportExport = true,
67+
SupportsImportExport = true,
6668
//SupportsExportOfDescendants = true
6769
},
6870
false,
69-
Cms.Constants.Trees.Stores.Alias,
71+
"commerce",
7072
(string routePath, HttpContext httpContext) => MatchesRoutePath(routePath, "productattribute"),
7173
(string nodeId, HttpContext httpContext) => MatchesNodeId(
7274
nodeId,
@@ -95,20 +97,20 @@ private void InitializeIntegratedEntities()
9597
// TODO: , new DeployTransferRegisteredEntityTypeDetail.RemoteTreeDetail(FormsTreeHelper.GetExampleTree, "example", "externalExampleTree"));
9698

9799
transferEntityService.RegisterTransferEntityType<ProductAttributePresetReadOnly>(
98-
UmbracoCommerceConstants.UdiEntityType.ProductAttributePreset,
100+
"uc:product-attribute-presets",
99101
"Product Attribute Presets",
100102
new DeployRegisteredEntityTypeDetailOptions
101103
{
102104
SupportsQueueForTransfer = true,
103-
SupportsQueueForTransferOfDescendents = true,
105+
//SupportsQueueForTransferOfDescendents = true,
104106
SupportsRestore = true,
105107
PermittedToRestore = true,
106108
SupportsPartialRestore = true,
107-
//SupportsImportExport = true,
109+
SupportsImportExport = true,
108110
//SupportsExportOfDescendants = true
109111
},
110112
false,
111-
Cms.Constants.Trees.Stores.Alias,
113+
"commerce",
112114
(string routePath, HttpContext httpContext) => MatchesRoutePath(routePath, "productattributepreset"),
113115
(string nodeId, HttpContext httpContext) => MatchesNodeId(
114116
nodeId,
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export const onInit = async (host, extensionRegistry) => {
2+
extensionRegistry.registerMany([
3+
{
4+
type: "deployEntityActionRegistrar",
5+
actionAlias: "Deploy.EntityAction.Queue",
6+
alias: "Uc.Deploy.Queue.Registrar",
7+
name: "Umbraco Commerce Deploy Queue Entity Action Registrar",
8+
forEntityTypes: [
9+
"uc:product-attribute",
10+
"uc:product-attributes",
11+
"uc:product-attribute-preset",
12+
"uc:product-attribute-presets"
13+
],
14+
}
15+
]);
16+
};
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
22
"id": "Umbraco.Commerce.Deploy",
33
"name": "Umbraco Commerce Deploy",
4-
"version": "14.0.0--beta1.preview.7.g08c37e7",
4+
"version": "14.0.0--beta1.preview.16.gde5af20",
55
"allowPackageTelemetry": true,
6-
"extensions": []
6+
"extensions": [
7+
{
8+
"name": "Umbraco Commerce Deploy EntryPoint",
9+
"alias": "Uc.Deploy.EntryPoint",
10+
"type": "entryPoint",
11+
"js": "/App_Plugins/UmbracoCommerceDeploy/umbraco-commerce-deploy.js"
12+
}
13+
]
714
}

0 commit comments

Comments
 (0)