From c69e4fc1208bee2226292b0acdb7c17c5a9eb1af Mon Sep 17 00:00:00 2001 From: glo82145 Date: Tue, 26 Mar 2024 20:53:52 +0530 Subject: [PATCH 1/5] PWA-3229::experience platform connector extension missing parent sku --- packages/extensions/experience-platform-connector/src/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/extensions/experience-platform-connector/src/utils.js b/packages/extensions/experience-platform-connector/src/utils.js index 852fa27503..10c8183031 100644 --- a/packages/extensions/experience-platform-connector/src/utils.js +++ b/packages/extensions/experience-platform-connector/src/utils.js @@ -82,6 +82,7 @@ export const getFormattedProducts = products => { product: { name: name, sku: sku, + topLevelSku: product.sku, productType: type, pricing: { regularPrice: prices.price.value, From 11118939d9ae1eab01213d48a0ced4bcf20ed532 Mon Sep 17 00:00:00 2001 From: glo82145 Date: Tue, 26 Mar 2024 20:56:02 +0530 Subject: [PATCH 2/5] PWA-3229::experience platform connector extension missing parent sku --- .../src/__tests__/__snapshots__/utils.spec.js.snap | 3 +++ .../__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap | 3 +++ .../src/handlers/__tests__/shoppingCartPageView.spec.js | 3 +++ .../src/handlers/__tests__/startCheckout.spec.js | 3 +++ 4 files changed, 12 insertions(+) diff --git a/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap b/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap index 2ccae02183..cdd082d419 100644 --- a/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap +++ b/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap @@ -47,6 +47,7 @@ Array [ }, "productType": "ConfigurableProduct", "sku": "VSK02", + "topLevelSku": "VSK02", }, "quantity": 1, }, @@ -82,6 +83,7 @@ Array [ }, "productType": "SimpleProduct", "sku": "VA17-SI-NA", + "topLevelSku": "VA17-SI-NA", }, "quantity": 2, }, @@ -130,6 +132,7 @@ Array [ }, "productType": "ConfigurableProduct", "sku": "VA04", + "topLevelSku": "VA04", }, "quantity": 3, }, diff --git a/packages/extensions/experience-platform-connector/src/handlers/__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap b/packages/extensions/experience-platform-connector/src/handlers/__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap index ce2e8c7c86..9e3a89582a 100644 --- a/packages/extensions/experience-platform-connector/src/handlers/__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap +++ b/packages/extensions/experience-platform-connector/src/handlers/__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap @@ -47,6 +47,7 @@ Object { }, "productType": "ConfigurableProduct", "sku": "VSK02", + "topLevelSku": "VSK02", }, "quantity": 1, }, @@ -78,6 +79,7 @@ Object { }, "productType": "SimpleProduct", "sku": "VA17-SI-NA", + "topLevelSku": "VA17-SI-NA", }, "quantity": 2, }, @@ -122,6 +124,7 @@ Object { }, "productType": "ConfigurableProduct", "sku": "VA04", + "topLevelSku": "VA04", }, "quantity": 3, }, diff --git a/packages/extensions/experience-platform-connector/src/handlers/__tests__/shoppingCartPageView.spec.js b/packages/extensions/experience-platform-connector/src/handlers/__tests__/shoppingCartPageView.spec.js index 18def7ed3a..b29cb87766 100644 --- a/packages/extensions/experience-platform-connector/src/handlers/__tests__/shoppingCartPageView.spec.js +++ b/packages/extensions/experience-platform-connector/src/handlers/__tests__/shoppingCartPageView.spec.js @@ -81,6 +81,7 @@ describe('handle()', () => { }, "productType": "ConfigurableProduct", "sku": "VSK02", + "topLevelSku": "VSK02", }, "quantity": 1, }, @@ -116,6 +117,7 @@ describe('handle()', () => { }, "productType": "SimpleProduct", "sku": "VA17-SI-NA", + "topLevelSku": "VA17-SI-NA", }, "quantity": 2, }, @@ -164,6 +166,7 @@ describe('handle()', () => { }, "productType": "ConfigurableProduct", "sku": "VA04", + "topLevelSku": "VA04", }, "quantity": 3, }, diff --git a/packages/extensions/experience-platform-connector/src/handlers/__tests__/startCheckout.spec.js b/packages/extensions/experience-platform-connector/src/handlers/__tests__/startCheckout.spec.js index b2703ee438..fc30bb4370 100644 --- a/packages/extensions/experience-platform-connector/src/handlers/__tests__/startCheckout.spec.js +++ b/packages/extensions/experience-platform-connector/src/handlers/__tests__/startCheckout.spec.js @@ -96,6 +96,7 @@ describe('handle()', () => { }, "productType": "ConfigurableProduct", "sku": "VP08", + "topLevelSku": "VP08", }, "quantity": 3, }, @@ -138,6 +139,7 @@ describe('handle()', () => { }, "productType": "ConfigurableProduct", "sku": "VA09", + "topLevelSku": "VA09", }, "quantity": 1, }, @@ -173,6 +175,7 @@ describe('handle()', () => { }, "productType": "SimpleProduct", "sku": "VA22-SI-NA", + "topLevelSku": "VA22-SI-NA", }, "quantity": 1, }, From c016f8bb92fd2e0e937cdcecd58d0f73f520d623 Mon Sep 17 00:00:00 2001 From: Aanchal Pawar <97873570+glo82145@users.noreply.github.com> Date: Tue, 26 Mar 2024 21:09:44 +0530 Subject: [PATCH 3/5] Update utils.spec.js.snap --- .../src/__tests__/__snapshots__/utils.spec.js.snap | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap b/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap index cdd082d419..b7f33515ac 100644 --- a/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap +++ b/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap @@ -1,5 +1,4 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP - exports[`getFormattedProducts() returns correctly formatted data 1`] = ` Array [ Object { From 7d29629227a8237a2b46ff8c0dbae22569cb975b Mon Sep 17 00:00:00 2001 From: Aanchal Pawar <97873570+glo82145@users.noreply.github.com> Date: Tue, 26 Mar 2024 21:17:24 +0530 Subject: [PATCH 4/5] Update utils.spec.js.snap --- .../src/__tests__/__snapshots__/utils.spec.js.snap | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap b/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap index b7f33515ac..cdd082d419 100644 --- a/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap +++ b/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap @@ -1,4 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`getFormattedProducts() returns correctly formatted data 1`] = ` Array [ Object { From d4f09a0dac13ccdb65e4d34a6f31738aea5208ad Mon Sep 17 00:00:00 2001 From: Aanchal Pawar <97873570+glo82145@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:16:22 +0530 Subject: [PATCH 5/5] Update utils.spec.js.snap --- .../src/__tests__/__snapshots__/utils.spec.js.snap | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap b/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap index cdd082d419..b7f33515ac 100644 --- a/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap +++ b/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap @@ -1,5 +1,4 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP - exports[`getFormattedProducts() returns correctly formatted data 1`] = ` Array [ Object {