ACSD-65777: Missing types field for product image types in the MediaGallery GraphQL request

The ACSD-65777 patch fixes the issue where the types field was missing for product image types in the MediaGallery GraphQL request. This patch is available when the Quality Patches Tool (QPT) 1.1.66 is installed. The patch ID is ACSD-65777. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.8

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.8
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

The types field is missing for product image types when fetching media data via the MediaGallery GraphQL request.

Steps to reproduce:

  1. Create a product.

  2. Upload an image to the product.

  3. Fetch the media data using the following GraphQL.

    code language-text
    query{
      products(search:"",filter:{sku:{eq:"p1"}})\{
        items{
          media_gallery{
            disabled
            label
            position
            url
          }
          media_gallery_entries\{
            types
          }
        }
      }
    }
    

Expected results:

The media_gallery GraphQL interface should include the types field.

Actual results:

The media_gallery doesn’t contain the media types field.

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:

recommendation-more-help
commerce-operations-help-tools