{"data":{"id":"ACSD-57477","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where sales rule processing causes slow performance on cart-related requests.","categories":["Order/Checkout","GraphQL","Shopping Cart","Performance"],"components":["magento/framework","magento/module-quote","magento/module-quote-graph-ql","magento/module-sales-rule"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-69/acsd-57477-sales-rule-processing-slows-performance-on-cart-related-requests","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-69/acsd-57477-sales-rule-processing-slows-performance-on-cart-related-requests.md","blobSha":"091cee0d63a7d473b1ceb96399700b75c37104e1","description":"Sales rule processing causes slow performance on cart-related requests if you send the parameters as GraphQL variables.","stepsToReproduce":"1. Add 1000 product attributes. 1. Create a cart using below GraphQL query. mutation {createEmptyCart}{noformat} 1. Add a product to cart using below GraphQL query. mutation AddProductsToCart($cartId: String!, $products: [CartItemInput!]!) { addProductsToCart(cartId: $cartId, cartItems: $products) { cart { id __typename } __typename } } 1. Set these Variables. { \"cartId\": \"id_here\", \"products\": [ { \"sku\": \"product_dynamic_1\", \"parent_sku\": \"product_dynamic_1\", \"quantity\": 1 } ] } 1. This issue occurs only when you send the parameters as GraphQL variables. If you include the parameters into the GraphQL query itself, then this issue doesn't occur. 1. Send the same Add To Cart request after adding parameters into the GraphQL query itself. mutation { addProductsToCart( cartId: \"id_here\" cartItems: [ { sku: \"product_dynamic_1\", parent_sku: \"product_dynamic_1\", quantity: 1 } ] ) { cart { id __typename } __typename } }","introducedInQpt":"1.1.69","createdFor":["2.4.6-p2"],"documentedRange":"2.4.6 - 2.4.6-p11","scheduledFixRelease":"2.4.7"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.6 <2.4.6-p15","path":"patches/os/ACSD-57477_2.4.6-p2.patch","blobSha":"1f3cc9a07b6c6d3e27b5654ca5f15a1a9c8d438c","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-57477_2.4.6-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-quote/Model/Quote/Address.php","change":"modified","package":"magento/module-quote"},{"path":"vendor/magento/module-quote-graph-ql/Plugin/ProductAttributesExtender.php","change":"modified","package":"magento/module-quote-graph-ql"},{"path":"vendor/magento/module-sales-rule/Helper/CartFixedDiscount.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/Quote/Discount.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/ResourceModel/Rule/Collection.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/Rule.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/Rule/Action/Discount/CartFixed.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/Validator.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/framework/GraphQl/Query/Fields.php","change":"modified","package":"magento/framework"}],"packages":["magento/module-quote","magento/module-quote-graph-ql","magento/module-sales-rule","magento/framework"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"magento-commerce":["2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":[],"requires":["ACSD-59865"],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"magento-commerce":["2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-57477 details"}