{"data":{"id":"magento2-38239","source":"github-pr","sourceRef":"magento/magento2#38239","title":"[Magento 2.3.x] Declarative Schema :: Data/Schema Patches getAliases() not working as expected","pr":{"number":38239,"url":"https://github.com/magento/magento2/pull/38239","author":"thomas-kl1","mergedAt":"2025-08-04T06:11:48Z","mergeCommit":"92d686db8df0e4d3b86cf2139aed999030166f2f","headCommit":"d8fded6ed0038e4f50edb2a68d1eff3940a9e1f4","baseRef":"2.4-develop","diffSha256":"a6d9291a07f962e8d5d569ae9982742c2428fd73c1b06d06ecf1c3bc6b8a9348"},"issues":[{"number":23031,"url":"https://github.com/magento/magento2/issues/23031","title":"[Magento 2.3.x] Declarative Schema :: Data/Schema Patches getAliases() not working as expected","labels":["Component: Framework/Setup","Issue: Clear Description","Issue: Format is valid","Issue: Ready for Work","Reproduced on 2.3.x","Triage: Dev.Experience"],"kind":"human"},{"number":31396,"url":"https://github.com/magento/magento2/issues/31396","title":"[Magento 2.3.x] Data/Schema Patches getAliases() causes errors during `setup:upgrade`","labels":["Area: Framework","Component: Setup","Issue: Confirmed","Priority: P3","Progress: PR in progress","Progress: done","Reported on 2.3.x","Reproduced on 2.4.x","Triage: Dev.Experience"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"conflict","2.4.6-p1":"conflict","2.4.6-p2":"conflict","2.4.6-p3":"conflict","2.4.6-p4":"conflict","2.4.6-p5":"conflict","2.4.6-p6":"conflict","2.4.6-p7":"conflict","2.4.6-p8":"conflict","2.4.6-p9":"conflict","2.4.6-p10":"conflict","2.4.6-p11":"conflict","2.4.6-p12":"conflict","2.4.6-p13":"conflict","2.4.6-p14":"conflict","2.4.6-p15":"conflict","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":"clean","2.4.8-p1":"clean","2.4.8-p2":"clean","2.4.8-p3":"clean","2.4.8-p4":"clean","2.4.8-p5":"clean","2.4.9":"conflict"},"affectedVersions":["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","2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5"],"components":["magento/framework"],"files":[{"path":"lib/internal/Magento/Framework/Setup/Patch/PatchApplier.php","change":"modified","package":"magento/framework"}],"stripped":{"tests":["lib/internal/Magento/Framework/Setup/Test/Unit/Patch/PatchApplierTest.php"],"docs":[],"outsideCode":[]},"linesChanged":121,"mergeBatched":false,"excluded":null,"sections":{"description":null,"stepsToReproduce":null,"expectedResult":null,"actualResult":null,"source":null},"signatures":[],"labels":{"area":["Framework"],"component":["Framework/Setup","Setup"],"priority":"P3","severity":null,"reportedOn":["2.3.x"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"3d07e96a99cfaaa9d259dd8c0f2d791fc68262eb5b8638de8fa7826ffb56e420","isBugfix":0.9694,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9584,"feature":0.011,"refactor":0.0162,"tests_only":0.0079,"docs_only":0.003,"dependency":0.0035},"confidence":0.9027},"scope":{"score":0.8634,"probabilities":{"0":0.3587,"1":0.4192,"2":0.2221},"confidence":0.0306},"risk":{"score":0.6992,"probabilities":{"0":0.4294,"1":0.4419,"2":0.1287},"confidence":0.0944},"area":{"choice":"framework","probabilities":{"catalog":0.0081,"checkout":0.0067,"customer":0.0043,"admin":0.023,"graphql_api":0.004,"framework":0.9308,"frontend":0.0065,"other":0.0166},"confidence":0.8484},"securityRelevant":0.0053,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0155,"2.4.0-p1":0.0108,"2.4.1":0.0136,"2.4.1-p1":0.0109,"2.4.2":0.0128,"2.4.2-p1":0.0101,"2.4.2-p2":0.0129,"2.4.3":0.016,"2.4.3-p1":0.0165,"2.4.3-p2":0.0171,"2.4.3-p3":0.0097,"2.4.4":0.0099,"2.4.4-p1":0.009,"2.4.4-p10":0.0049,"2.4.4-p11":0.0091,"2.4.4-p12":0.0073,"2.4.4-p13":0.0069,"2.4.4-p14":0.0076,"2.4.4-p15":0.0055,"2.4.4-p16":0.0047,"2.4.4-p17":0.0056,"2.4.4-p18":0.0057,"2.4.4-p2":0.0038,"2.4.4-p3":0.0039,"2.4.4-p4":0.0065,"2.4.4-p5":0.0057,"2.4.4-p6":0.0058,"2.4.4-p7":0.0059,"2.4.4-p8":0.0071,"2.4.4-p9":0.0044,"2.4.5":0.0055,"2.4.5-p1":0.0063,"2.4.5-p10":0.0039,"2.4.5-p11":0.0059,"2.4.5-p12":0.0062,"2.4.5-p13":0.0058,"2.4.5-p14":0.0066,"2.4.5-p15":0.0043,"2.4.5-p16":0.004,"2.4.5-p17":0.0059,"2.4.5-p2":0.0038,"2.4.5-p3":0.0047,"2.4.5-p4":0.0058,"2.4.5-p5":0.0057,"2.4.5-p6":0.0062,"2.4.5-p7":0.0043,"2.4.5-p8":0.0062,"2.4.5-p9":0.0038,"2.4.6":0.0074,"2.4.6-p1":0.0085,"2.4.6-p10":0.0064,"2.4.6-p11":0.008,"2.4.6-p12":0.0063,"2.4.6-p13":0.0071,"2.4.6-p14":0.0073,"2.4.6-p15":0.0053,"2.4.6-p2":0.0044,"2.4.6-p3":0.007,"2.4.6-p4":0.0106,"2.4.6-p5":0.0085,"2.4.6-p6":0.0073,"2.4.6-p7":0.0078,"2.4.6-p8":0.0062,"2.4.6-p9":0.004,"2.4.7":0.0054,"2.4.7-p1":0.0054,"2.4.7-p10":0.0057,"2.4.7-p2":0.0061,"2.4.7-p3":0.0099,"2.4.7-p4":0.011,"2.4.7-p5":0.0097,"2.4.7-p6":0.0121,"2.4.7-p7":0.0094,"2.4.7-p8":0.0076,"2.4.7-p9":0.0039,"2.4.8":0.0051,"2.4.8-p1":0.0073,"2.4.8-p2":0.0092,"2.4.8-p3":0.0106,"2.4.8-p4":0.0127,"2.4.8-p5":0.0106,"2.4.9":0.0099,"unspecified":0.3762},"confidence":0.1367},"backportWorthy":{"score":1.3109,"probabilities":{"0":0.1849,"1":0.3194,"2":0.4957},"confidence":0.0729}},"curated":{"title":"Fixes setup:upgrade errors when an applied patch is changed to a new class name","description":"When the class name of an applied patch is changed and the old name is added in getAliases(), setup:upgrade fails because the original patch has already been applied. PatchApplier now does not apply a data or schema patch when its class name or one of its aliases is already in patch_list, and it adds the patch and its aliases to the history when a patch is applied.","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.8-p5":{"before":"pass","after":"pass","adapted":false,"runAt":"2026-10-06T09:20:09.969Z","releaseCommit":"870a22c63d9d9b68fa3297962e2d5d5841115814","suites":{"unit":{"before":"pass","after":"pass","runAt":"2026-10-06T09:20:09.969Z"}}},"2.4.7-p10":{"before":"not-runnable","after":"error","adapted":false,"runAt":"2026-10-06T09:29:08.146Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"not-runnable","after":"error","runAt":"2026-10-06T09:29:08.146Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38239 details"}