{"data":{"id":"ACP2E-4591","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where customer segments based on order count, such as \"First-time buyers\", did not update when orders were placed via the REST API.","categories":["Customer","Web API"],"components":["magento/module-customer-segment"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-78/acp2e-4591","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-78/acp2e-4591.md","blobSha":"0f0d4e4ef1e632cd4f53e57bf29569c85f47c1ef","description":"Customer segments based on order count, such as “First‑time buyers,” do not update when orders are placed through the REST API.","stepsToReproduce":"1. Create a customer segment named First User with the following condition: If ALL of these conditions are TRUE: Total Number of Orders less than 1 while ALL of these Conditions match: Order Status is Any 1. Create a customer. 1. Run the matchCustomerSegmentProcessor consumer and confirm that the new customer appears in the Matched Registered Customers grid. 1. Log in as the customer and add a product to the cart from the storefront. 1. Place an order using the REST API endpoints. 1. Run the same consumer again.","introducedInQpt":"1.1.78","createdFor":["2.4.7-p4"],"documentedRange":"2.4.4 - 2.4.7-p9","scheduledFixRelease":"2.4.9"},"files":[{"package":"magento/magento2-ee-base","constraint":">=2.4.4 <2.4.8","path":"patches/commerce/ACP2E-4591_2.4.7-p4.patch","blobSha":"7284de7a22d826e2b87b286b9bf67f0882d312a2","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACP2E-4591_2.4.7-p4.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-customer-segment/Observer/ProcessEventObserver.php","change":"modified","package":"magento/module-customer-segment"}],"packages":["magento/module-customer-segment"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p15","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","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5","2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p15","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","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5","2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACP2E-4591 details"}