MDVA-40262: GraphQL queries don’t show in popular search terms in admin
The MDVA-40262 Adobe Commerce quality patch fixes the issue where GraphQL search queries are not shown in popular search terms in the admin. This patch is available when the Quality Patches Tool (QPT) 1.1.3 is installed. The patch ID is MDVA-40262. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.4.
Affected products and versions
The patch is created for Adobe Commerce version:
Adobe Commerce (all deployment methods) 2.4.2-p1
Compatible with Adobe Commerce versions:
Adobe Commerce (all deployment methods) 2.4.2 – 2.4.3
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 queries are not shown in popular search terms in the admin.
Prerequisites:
Sample data must be installed.
Steps to reproduce:
- Go to Stores > Configuration > Catalog > SEO > Popular Search Terms and set to enable.
- Run the following GraphQL query:
{
products(
search: "jackets"
filter: { price: { to: "50" } }
pageSize: 20
) {
total_count
items {
name
sku
}
page_info {
page_size
current_page
}
}
}
Expected results:
After running the GraphQL query to search for a product, the search query should be added to popular search terms.
Actual results:
The search query is not added to popular search terms.
Apply the patch
To apply individual patches, use the following links depending on your deployment type:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about quality patches for Adobe Commerce, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to the Patches available in QPT section.