{"data":{"id":"magento2-36949","source":"github-pr","sourceRef":"magento/magento2#36949","title":"Adding created_at, status and grand_total filters to customer Orders query and fixing multiple filters failure","pr":{"number":36949,"url":"https://github.com/magento/magento2/pull/36949","author":"venchiarutti","mergedAt":"2024-05-16T19:44:53Z","mergeCommit":"0a41d1aa0d5202a5116c5ceb553cc41b0e357b91","headCommit":"b015f9dde58de1466a596a330920f58ffc02dc58","baseRef":"2.4-develop","diffSha256":"32de34a6842091197f84007245e5ecf6f9d00a0f28f2b58aec3231e7f3f409a5"},"issues":[{"number":38392,"url":"https://github.com/magento/magento2/issues/38392","title":"Added created_at, status and grand_total filters to customer Orders query and fixed multiple filters failure","labels":["Area: Framework","Component: GraphQL","Issue: Confirmed","Priority: P2","Progress: done","Reproduced on 2.4.x"],"kind":"pr-derived"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10"],"components":["magento/module-sales-graph-ql"],"files":[{"path":"app/code/Magento/SalesGraphQl/Model/Resolver/CustomerOrders/Query/OrderFilter.php","change":"modified","package":"magento/module-sales-graph-ql"},{"path":"app/code/Magento/SalesGraphQl/etc/schema.graphqls","change":"modified","package":"magento/module-sales-graph-ql"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":17,"mergeBatched":false,"excluded":null,"sections":{"description":"Added created_at, status, and grand_total filters to customer Orders query\nFixing multiple filters bug in this query, when adding one more filter in the array for filterGroupBuilder addFilters it doesn´t apply all filters","stepsToReproduce":"1. Create an order with a customer\n2. With the same customer, generate a customer token and call the customer Orders query\n3. Create multiple orders to test filters\n4. Use two or more filters to check if multiple are being applied","expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["Framework"],"component":["GraphQL"],"priority":"P2","severity":null,"reportedOn":[]},"categories":["GraphQL"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"941a3393d0584438dcb0d66c211472fc4bad4db0eb1590d9b6a93b4f0b6c27e2","isBugfix":0.8823,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.5879,"feature":0.3797,"refactor":0.0176,"tests_only":0.0061,"docs_only":0.004,"dependency":0.0047},"confidence":0.3883},"scope":{"score":1.3717,"probabilities":{"0":0.1207,"1":0.3868,"2":0.4925},"confidence":0.1101},"risk":{"score":0.688,"probabilities":{"0":0.4785,"1":0.3551,"2":0.1664},"confidence":0.0741},"area":{"choice":"graphql_api","probabilities":{"catalog":0.0034,"checkout":0.0191,"customer":0.0309,"admin":0.0045,"graphql_api":0.9256,"framework":0.0089,"frontend":0.0033,"other":0.0043},"confidence":0.8379},"securityRelevant":0.033,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0041,"2.4.0-p1":0.0042,"2.4.1":0.0047,"2.4.1-p1":0.0042,"2.4.2":0.0072,"2.4.2-p1":0.0061,"2.4.2-p2":0.0069,"2.4.3":0.0131,"2.4.3-p1":0.011,"2.4.3-p2":0.0114,"2.4.3-p3":0.0071,"2.4.4":0.0156,"2.4.4-p1":0.0084,"2.4.4-p10":0.0069,"2.4.4-p11":0.008,"2.4.4-p12":0.0078,"2.4.4-p13":0.0078,"2.4.4-p14":0.0095,"2.4.4-p15":0.0068,"2.4.4-p16":0.008,"2.4.4-p17":0.0066,"2.4.4-p18":0.006,"2.4.4-p2":0.0028,"2.4.4-p3":0.0033,"2.4.4-p4":0.0033,"2.4.4-p5":0.0043,"2.4.4-p6":0.0049,"2.4.4-p7":0.0042,"2.4.4-p8":0.0053,"2.4.4-p9":0.004,"2.4.5":0.0179,"2.4.5-p1":0.0137,"2.4.5-p10":0.0081,"2.4.5-p11":0.0126,"2.4.5-p12":0.0105,"2.4.5-p13":0.0082,"2.4.5-p14":0.0082,"2.4.5-p15":0.0082,"2.4.5-p16":0.009,"2.4.5-p17":0.008,"2.4.5-p2":0.0044,"2.4.5-p3":0.0058,"2.4.5-p4":0.0063,"2.4.5-p5":0.0061,"2.4.5-p6":0.0076,"2.4.5-p7":0.0071,"2.4.5-p8":0.0057,"2.4.5-p9":0.006,"2.4.6":0.0358,"2.4.6-p1":0.026,"2.4.6-p10":0.0116,"2.4.6-p11":0.0131,"2.4.6-p12":0.0123,"2.4.6-p13":0.0117,"2.4.6-p14":0.0119,"2.4.6-p15":0.0103,"2.4.6-p2":0.0046,"2.4.6-p3":0.0092,"2.4.6-p4":0.0098,"2.4.6-p5":0.0083,"2.4.6-p6":0.0094,"2.4.6-p7":0.0081,"2.4.6-p8":0.0064,"2.4.6-p9":0.0061,"2.4.7":0.0171,"2.4.7-p1":0.0156,"2.4.7-p10":0.0103,"2.4.7-p2":0.0074,"2.4.7-p3":0.0135,"2.4.7-p4":0.0169,"2.4.7-p5":0.0123,"2.4.7-p6":0.0128,"2.4.7-p7":0.0113,"2.4.7-p8":0.0104,"2.4.7-p9":0.0058,"2.4.8":0.02,"2.4.8-p1":0.0179,"2.4.8-p2":0.019,"2.4.8-p3":0.0183,"2.4.8-p4":0.0182,"2.4.8-p5":0.0151,"2.4.9":0.0189,"unspecified":0.1877},"confidence":0.0341},"backportWorthy":{"score":1.5051,"probabilities":{"0":0.117,"1":0.2608,"2":0.6222},"confidence":0.2032}},"curated":{"title":"Fixes the customer orders query ignoring filters when more than one is used","description":"In the GraphQL customer Orders query, when adding one more filter in the array for filterGroupBuilder addFilters it does not apply all filters. SalesGraphQl OrderFilter now calls setFilters with each filter on its own, and CustomerOrdersFilterInput adds order_date (for created_at), status and grand_total (for base_grand_total) filters.","categories":["GraphQL"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-36949 details"}