ACSD-56090: GraphQL response is not store specific

Last update: 2024-01-18
  • Topics:
  • GraphQL
    View more on this topic
  • Created for:
  • Admin
    Developer

The ACSD-56090 patch fixes the issue where the GraphQL respond contains all stores data instead of the store specific data. This patch is available when the Quality Patches Tool (QPT) 1.1.43 is installed. The patch ID is ACSD-56090. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.5.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.4-p3

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.2 - 2.4.6-p3
NOTE

The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

GraphQL response contains all stores data instead of the store specific data.

Steps to reproduce:

  1. Login to Admin panel > Catalog > Categories and create two root categories.
  2. Each Root category should have one sub-category.
  3. Navigate to Stores > All stores > Two stores exists with different root categories for each of it. (Each Stores should have at least one store view)
  4. Go to Catalog > Products > create a product with
  • All the root and sub categories assigned
  • All websites assigned.
  1. Execute the GraphqQL query (add header — store = 'storename ):
   query {
     products(filter: { url_key: { eq: "abc" } }) {
       items {
         categories {
           name
           id
           url_path
           breadcrumbs {
             category_id
             category_name
             category_level
           }
         }
       }
     }
   }
  1. Check the response after executing the GraphqQL query.

Expected results:

The store specific data is returned

Actual results:

Data returned is not store specific.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.

On this page