Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 0614f90

Browse files
authored
Add BIC description caused by GraphQL compare list coverage (#8244)
* Add BIC description caused by GraphQL compare list coverage * remove cache * incorporate feedback * change terminology
1 parent eff234c commit 0614f90

File tree

1 file changed

+23
-0
lines changed
  • src/guides/v2.4/release-notes/backward-incompatible-changes

1 file changed

+23
-0
lines changed

src/guides/v2.4/release-notes/backward-incompatible-changes/index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@ title: Magento 2.4 backward incompatible changes
55

66
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.
77

8+
## 2.4.1 - 2.4.2
9+
10+
### Compare lists
11+
12+
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.
13+
14+
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.
15+
16+
```terminal
17+
getListId()
18+
getProductsByListId()
19+
removeCompareList()
20+
setListId()
21+
setListIdToCustomerCompareItems()
22+
$listId
23+
```
24+
25+
This feature introduces the following database changes:
26+
27+
- Added the foreign key `catalog_compare_item/CATALOG_COMPARE_ITEM_LIST_ID_CATALOG_COMPARE_LIST_LIST_ID`
28+
- Added the `catalog_compare_list` table
29+
- Added the `catalog_compare_item/list_id` column
30+
831
## 2.3.0 - 2.4
932

1033
### Elasticsearch

0 commit comments

Comments
 (0)