From 0833fb83029f778c2e73df9675980bb001fdad05 Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Wed, 18 Nov 2020 16:56:40 -0600 Subject: [PATCH 1/4] Add BIC description caused by GraphQL compare list coverage --- .../backward-incompatible-changes/index.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md b/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md index 7794edad839..3e6e5c6c563 100644 --- a/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md +++ b/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md @@ -5,6 +5,29 @@ title: Magento 2.4 backward incompatible changes This page highlights backward incompatible changes between releases that have a major impact and require detailed explanation and special instructions to ensure third-party modules continue working with Magento. High-level reference information for all backward incompatible changes in each release are documented in the [Backward incompatible changes reference]({{page.baseurl}}/release-notes/backward-incompatible-changes/reference.html) topic. +## 2.4.1 - 2.4.2 + +### Compare lists + +Magento uses the session cache to store compare lists. In version 2.4.2, Magento added GraphQL support for compare lists. Instead of relying on session cache, GraphQL now saves compare list information into the database, with each list assigned an ID. These changes are additive and do not alter the behavior of compare lists on the storefront. However, there is a chance these changes could affect third-party extensions that manage compare lists. + +The following methods and property have been added to the `Magento\Catalog\Model\ResourceModel\Product\Compare\Item\Collection` class. They are available to all developers, not just those working on GraphQL. + +```terminal +getListId() +getProductsByListId() +removeCompareList() +setListId() +setListIdToCustomerCompareItems() +$listId +``` + +This feature introduces the following database changes: + +- Added the foreign key `catalog_compare_item/CATALOG_COMPARE_ITEM_LIST_ID_CATALOG_COMPARE_LIST_LIST_ID` +- Added the `catalog_compare_list` table +- Added the `catalog_compare_item/list_id` column + ## 2.3.0 - 2.4 ### Elasticsearch From 596c3f0aa679d0c123cddc3f10935416bbcaac01 Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Wed, 18 Nov 2020 17:03:43 -0600 Subject: [PATCH 2/4] remove cache --- .../v2.4/release-notes/backward-incompatible-changes/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md b/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md index 3e6e5c6c563..51b3398a9be 100644 --- a/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md +++ b/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md @@ -9,7 +9,7 @@ This page highlights backward incompatible changes between releases that have a ### Compare lists -Magento uses the session cache to store compare lists. In version 2.4.2, Magento added GraphQL support for compare lists. Instead of relying on session cache, GraphQL now saves compare list information into the database, with each list assigned an ID. These changes are additive and do not alter the behavior of compare lists on the storefront. However, there is a chance these changes could affect third-party extensions that manage compare lists. +Magento uses session to store compare lists. In version 2.4.2, Magento added GraphQL support for compare lists. Instead of relying on session cache, GraphQL now saves compare list information into the database, with each list assigned an ID. These changes are additive and do not alter the behavior of compare lists on the storefront. However, there is a chance these changes could affect third-party extensions that manage compare lists. The following methods and property have been added to the `Magento\Catalog\Model\ResourceModel\Product\Compare\Item\Collection` class. They are available to all developers, not just those working on GraphQL. From 0df1935ad41ea5506f336769772ea2ea0b42675c Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Wed, 18 Nov 2020 17:15:17 -0600 Subject: [PATCH 3/4] incorporate feedback --- .../v2.4/release-notes/backward-incompatible-changes/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md b/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md index 51b3398a9be..f341b083a88 100644 --- a/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md +++ b/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md @@ -9,7 +9,7 @@ This page highlights backward incompatible changes between releases that have a ### Compare lists -Magento uses session to store compare lists. In version 2.4.2, Magento added GraphQL support for compare lists. Instead of relying on session cache, GraphQL now saves compare list information into the database, with each list assigned an ID. These changes are additive and do not alter the behavior of compare lists on the storefront. However, there is a chance these changes could affect third-party extensions that manage compare lists. +Magento uses session to work with compare lists. In version 2.4.2, Magento added GraphQL support for compare lists. Instead of relying on session cache, GraphQL now saves compare list information into the database, with each list assigned an ID. These changes are additive and do not alter the behavior of compare lists on the storefront. However, there is a chance these changes could affect third-party extensions that manage compare lists. The following methods and property have been added to the `Magento\Catalog\Model\ResourceModel\Product\Compare\Item\Collection` class. They are available to all developers, not just those working on GraphQL. From 78887fb0e66c7a00a869ee94a0af4c50230b75b8 Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Thu, 19 Nov 2020 10:25:35 -0600 Subject: [PATCH 4/4] change terminology --- .../v2.4/release-notes/backward-incompatible-changes/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md b/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md index f341b083a88..6d3dde4c1f3 100644 --- a/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md +++ b/src/guides/v2.4/release-notes/backward-incompatible-changes/index.md @@ -9,7 +9,7 @@ This page highlights backward incompatible changes between releases that have a ### Compare lists -Magento uses session to work with compare lists. In version 2.4.2, Magento added GraphQL support for compare lists. Instead of relying on session cache, GraphQL now saves compare list information into the database, with each list assigned an ID. These changes are additive and do not alter the behavior of compare lists on the storefront. However, there is a chance these changes could affect third-party extensions that manage compare lists. +Magento uses session storage to work with compare lists. In version 2.4.2, Magento added GraphQL support for compare lists. Instead of relying on session storage, GraphQL now saves compare list information into the database, with each list assigned an ID. These changes are additive and do not alter the behavior of compare lists on the storefront. However, there is a chance these changes could affect third-party extensions that manage compare lists. The following methods and property have been added to the `Magento\Catalog\Model\ResourceModel\Product\Compare\Item\Collection` class. They are available to all developers, not just those working on GraphQL.