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
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 GraphQL requisition_lists request does not consider pagination settings and returns all results.

Steps to reproduce:

  1. Log in to admin, and navigate to Admin > Store > Configuration > General > B2B Features.

    • Set Enable Requisition List to Yes.
  2. 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).

  3. 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
    }
    }
    }
    
  4. 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:

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.

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3