{"data":{"id":"magento2-38663","source":"github-pr","sourceRef":"magento/magento2#38663","title":"[Graphql] Type issue in 2.4.7","pr":{"number":38663,"url":"https://github.com/magento/magento2/pull/38663","author":"Nuranto","mergedAt":"2024-09-05T13:38:35Z","mergeCommit":"1dd4bb940aa5da245640a23a9bbc1e2afa582f6d","headCommit":"2235083ee87c25e46005be47fdcc4f5a28a838e6","baseRef":"2.4-develop","diffSha256":"c71ac109301a20d16f2f22da3077e1df1560ba4c6cca9bbafc8f82ea3c4be9a8"},"issues":[{"number":38662,"url":"https://github.com/magento/magento2/issues/38662","title":"[Graphql] Type issue in 2.4.7","labels":["Area: APIs","Component: CustomerAttributes","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.7","Reproduced on 2.4.x","Triage: Dev.Experience"],"kind":"human"}],"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":"2.4.7","codeMatch":{"2.4.6":"file-missing","2.4.6-p1":"file-missing","2.4.6-p2":"file-missing","2.4.6-p3":"file-missing","2.4.6-p4":"file-missing","2.4.6-p5":"file-missing","2.4.6-p6":"file-missing","2.4.6-p7":"file-missing","2.4.6-p8":"file-missing","2.4.6-p9":"file-missing","2.4.6-p10":"file-missing","2.4.6-p11":"file-missing","2.4.6-p12":"file-missing","2.4.6-p13":"file-missing","2.4.6-p14":"file-missing","2.4.6-p15":"file-missing","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.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-customer-graph-ql"],"files":[{"path":"app/code/Magento/CustomerGraphQl/Model/Customer/GetCustomSelectedOptionAttributes.php","change":"modified","package":"magento/module-customer-graph-ql"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":2,"mergeBatched":false,"excluded":null,"sections":{"description":"```\nmain.ERROR: Magento\\Framework\\GraphQl\\Query\\Uid::encode(): Argument #1 ($id) must be of type string, int given, called in /var/www/html/vendor/magento/module-customer-graph-ql/Model/Customer/GetCustomSelectedOptionAttributes.php on line 58\n```","stepsToReproduce":"1. Launch a graphql query that will use GetCustomSelectedOptionAttributes","expectedResult":"No error","actualResult":"```\nmain.ERROR: Magento\\Framework\\GraphQl\\Query\\Uid::encode(): Argument #1 ($id) must be of type string, int given, called in /var/www/html/vendor/magento/module-customer-graph-ql/Model/Customer/GetCustomSelectedOptionAttributes.php on line 58\n```","source":"issue"},"signatures":[],"labels":{"area":["APIs"],"component":["CustomerAttributes"],"priority":"P2","severity":null,"reportedOn":["2.4.7"]},"categories":["Customer","Web API"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"13ebedfc94b948a10b62c4f01b3020cb8be9c5949c7c2ccd8b9bf2f388b2d4fb","isBugfix":0.9821,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9698,"feature":0.0049,"refactor":0.0113,"tests_only":0.005,"docs_only":0.0041,"dependency":0.0049},"confidence":0.9289},"scope":{"score":0.1658,"probabilities":{"0":0.8631,"1":0.1081,"2":0.0288},"confidence":0.636},"risk":{"score":0.1448,"probabilities":{"0":0.8946,"1":0.0661,"2":0.0393},"confidence":0.7093},"area":{"choice":"graphql_api","probabilities":{"catalog":0.0097,"checkout":0.0031,"customer":0.0348,"admin":0.0036,"graphql_api":0.9349,"framework":0.0066,"frontend":0.0032,"other":0.0041},"confidence":0.8577},"securityRelevant":0.0104,"reportedVersion":{"choice":"2.4.7","probabilities":{"2.4.0":0.0025,"2.4.0-p1":0.0026,"2.4.1":0.0023,"2.4.1-p1":0.0023,"2.4.2":0.0023,"2.4.2-p1":0.0027,"2.4.2-p2":0.0028,"2.4.3":0.003,"2.4.3-p1":0.0029,"2.4.3-p2":0.0033,"2.4.3-p3":0.003,"2.4.4":0.0033,"2.4.4-p1":0.0028,"2.4.4-p10":0.0031,"2.4.4-p11":0.0033,"2.4.4-p12":0.0029,"2.4.4-p13":0.003,"2.4.4-p14":0.0031,"2.4.4-p15":0.0028,"2.4.4-p16":0.0031,"2.4.4-p17":0.003,"2.4.4-p18":0.0027,"2.4.4-p2":0.0022,"2.4.4-p3":0.0023,"2.4.4-p4":0.0027,"2.4.4-p5":0.0028,"2.4.4-p6":0.0029,"2.4.4-p7":0.003,"2.4.4-p8":0.0031,"2.4.4-p9":0.0026,"2.4.5":0.0032,"2.4.5-p1":0.0028,"2.4.5-p10":0.0026,"2.4.5-p11":0.003,"2.4.5-p12":0.0039,"2.4.5-p13":0.0028,"2.4.5-p14":0.0037,"2.4.5-p15":0.0028,"2.4.5-p16":0.0031,"2.4.5-p17":0.0032,"2.4.5-p2":0.0022,"2.4.5-p3":0.0024,"2.4.5-p4":0.0025,"2.4.5-p5":0.0028,"2.4.5-p6":0.003,"2.4.5-p7":0.0032,"2.4.5-p8":0.0028,"2.4.5-p9":0.0025,"2.4.6":0.0071,"2.4.6-p1":0.0081,"2.4.6-p10":0.0062,"2.4.6-p11":0.0068,"2.4.6-p12":0.0067,"2.4.6-p13":0.0059,"2.4.6-p14":0.0064,"2.4.6-p15":0.005,"2.4.6-p2":0.0027,"2.4.6-p3":0.0036,"2.4.6-p4":0.0036,"2.4.6-p5":0.0038,"2.4.6-p6":0.0048,"2.4.6-p7":0.0053,"2.4.6-p8":0.0038,"2.4.6-p9":0.0031,"2.4.7":0.617,"2.4.7-p1":0.0152,"2.4.7-p10":0.0081,"2.4.7-p2":0.0101,"2.4.7-p3":0.0114,"2.4.7-p4":0.0108,"2.4.7-p5":0.0099,"2.4.7-p6":0.0108,"2.4.7-p7":0.0125,"2.4.7-p8":0.0087,"2.4.7-p9":0.0093,"2.4.8":0.0067,"2.4.8-p1":0.0067,"2.4.8-p2":0.0059,"2.4.8-p3":0.0071,"2.4.8-p4":0.0064,"2.4.8-p5":0.0068,"2.4.9":0.0078,"unspecified":0.009},"confidence":0.3756},"backportWorthy":{"score":1.7312,"probabilities":{"0":0.055,"1":0.1587,"2":0.7863},"confidence":0.4696}},"curated":{"title":"Fixes the GraphQL type error when encoding custom selected option attribute UIDs","description":"A GraphQL query that will use GetCustomSelectedOptionAttributes gets the error Uid::encode(): Argument #1 ($id) must be of type string, int given. The fix passes a string to encode in the CustomerGraphQl Customer model.","categories":["Customer","Web API"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38663 details"}