ACSD-54324: GraphQL requisition_lists
request doesn’t consider pagination settings
The ACSD-54324 patch fixes the issue where the GraphQL requisition_lists
request does not consider pagination settings and returns all results. This patch is available when the Quality Patches Tool (QPT) 1.1.41 is installed. The patch ID is ACSD-54324. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.7.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.6
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.5 - 2.4.6-p3
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 GraphQL requisition_lists
request does not consider pagination settings and returns all results.
Steps to reproduce:
-
Log in to admin, and navigate to Admin > Store > Configuration > General > B2B Features.
- Set Enable Requisition List to Yes.
-
Log in to the frontend, and go to My Requisition Lists from the top menu or from My Account, and create multiple requisitions (example: 7).
-
After generating a customer token, run the below GraphQL
requisition_lists
query for the customer.- Ensure that the page size is less than the total number of requisition lists created by you (example: 4)
code language-none { customer { requisition_lists(pageSize: 4, currentPage: 1) { items { uid name description updated_at items_count } total_count } } }
-
Observe that the value of the
total_count
field shows 7, when it should show 4.The number of items also shows 7 when it should be the same as the page size.
Expected results:
- The number listed as page size is returned under
total_count
and not the total number of records. - The number of items is the same as the page size.
Actual results:
The total number of records is returned under total_count
, even if page size is mentioned.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- 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 Tool, 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 Quality Patches Tool: Search for patches in the Quality Patches Tool guide.