diff --git a/README.md b/README.md index 8cf2043..98ff4d0 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,18 @@ This is the global configuration needed for most features in this integration. description="Shopify Connection Configuration" sendUrl="https://[shopifyHost]/admin/api/${shopifyApiVersion}" password="[apiToken]" accessScopeEnumId="SHOP_READ_WRITE_ACCESS"/> + + + + + + + + + + + + ``` ## Shopify Fulfillment API Integration @@ -58,13 +70,15 @@ Make sure to setup following configuration data with respect to your environment receiveResponseEnumId="MsgRrMove" receiveMovePath="" sendPath="${contentRoot}/Shopify/OMSFulfillmentFeed"> - + + + + - - - @@ -167,6 +179,7 @@ Supported bulk mutations and configuration, consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#GraphQLBulkImportFeed" receivePath="" receiveResponseEnumId="MsgRrMove" receiveMovePath="" sendPath="${contentRoot}/Shopify/ProductTagsFeed"/> + - + - + + - + - + - + - + - + - + - + - + - + - + + ``` 2. To unsubscribe webhook invoke _queue#WebhookSubscriptionDeleteSystemMessage_ service. @@ -652,8 +667,8 @@ Folliowing configuration is added to MoquiConf.xml, sendServiceName="co.hotwax.shopify.webhook.ShopifyWebhookServices.send#WebhookSubscriptionSystemMessage" sendPath="component://shopify-connector/template/graphQL/WebhookSubscriptionCreate.ftl" consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationsFinishWebhookPayload"> - + - - + + + + ``` ## Shopify Refund/Return API Integration @@ -710,8 +727,8 @@ Related configurations, receiveResponseEnumId="MsgRrMove" receiveMovePath="" sendPath="${contentRoot}/shopify/SyncedRefundsFeed"> - + - - + + - - + + -``` \ No newline at end of file +``` diff --git a/data/ShopifyConfigDemoData.xml b/data/ShopifyConfigDemoData.xml index 944923d..10f7c38 100644 --- a/data/ShopifyConfigDemoData.xml +++ b/data/ShopifyConfigDemoData.xml @@ -102,9 +102,78 @@ sendServiceName="co.hotwax.ofbiz.SystemMessageServices.send#SystemMessageFileSftp" sendPath="/home/${sftpUsername}/hotwax/shopify/BulkOrderMetafieldsQueryResult/"/> - + - \ No newline at end of file + + + + + + + + + + + + + + + + + + + diff --git a/data/ShopifySetupSeedData.xml b/data/ShopifySetupSeedData.xml index 3d74b4a..e0a35fc 100644 --- a/data/ShopifySetupSeedData.xml +++ b/data/ShopifySetupSeedData.xml @@ -27,6 +27,15 @@ under the License. + + + + + + + + + @@ -40,6 +49,7 @@ under the License. + + - + - + - + - + - + - + - + - + - + - + - + - + + + @@ -298,11 +312,11 @@ under the License. sendServiceName="co.hotwax.shopify.webhook.ShopifyWebhookServices.send#WebhookSubscriptionSystemMessage" sendPath="component://shopify-connector/template/graphQL/WebhookSubscriptionCreate.ftl" consumeServiceName="co.hotwax.shopify.system.ShopifySystemMessageServices.consume#BulkOperationsFinishWebhookPayload"> - + - + - + consumeServiceName="co.hotwax.shopify.webhook.ShopifyWebhookServices.consume#WebhookPayloadSystemMessage"/> - - - + + + + - + - - + + - + - \ No newline at end of file + diff --git a/data/UpgradeData_v1.3.3.xml b/data/UpgradeData_v1.3.3.xml index adb022a..42c9292 100644 --- a/data/UpgradeData_v1.3.3.xml +++ b/data/UpgradeData_v1.3.3.xml @@ -1,6 +1,46 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - diff --git a/upgrade/upcoming/UpgradeSteps.md b/upgrade/upcoming/UpgradeSteps.md new file mode 100644 index 0000000..cab3f20 --- /dev/null +++ b/upgrade/upcoming/UpgradeSteps.md @@ -0,0 +1,18 @@ +## Perform following migration steps before upgrading +1. Delete previous data where SYSTEM_MESSAGE_REMOTE_ID is null. +```sql +delete from SYSTEM_MESSAGE_TYPE_PARAMETER where SYSTEM_MESSAGE_REMOTE_ID is NULL; +``` +2. To change the primary key constraint + 1. Drop the previous one. + 2. Add new primary key constraint: +```sql +alter table SYSTEM_MESSAGE_TYPE_PARAMETER drop PRIMARY KEY; +``` +```sql +alter table SYSTEM_MESSAGE_TYPE_PARAMETER add PRIMARY KEY(SYSTEM_MESSAGE_TYPE_ID, PARAMETER_NAME, SYSTEM_MESSAGE_REMOTE_ID); +``` +3. Verify new constraint: +```sql +desc SYSTEM_MESSAGE_TYPE_PARAMETER; +```