{"data":{"id":"ACSD-47027","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes a slow updateCompanyRole GraphQL request.","categories":["GraphQL","B2B"],"components":["magento/module-company-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-23/acsd-47027-slow-query-b2b-companyrole-graphql-update","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-23/acsd-47027-slow-query-b2b-companyrole-graphql-update.md","blobSha":"952dceb94376a1b18713a796d82311c1a72bb59a","description":"The slow query B2B CompanyRole GraphQL update does not work as expected.","stepsToReproduce":"1. In the Adobe Commerce Admin, go to Stores > Settings > Configurations > B2B Features and set Enable Company to _Yes_. 1. Go to the frontend and create a company. 1. After you log in as a company user, go to My Account > Roles and Permissions and add a new role. 1. Enable dev query log using bin/magento dev:que:enab. 1. Now send the below GraphQL request (id is the base64 encoded role id): mutation { updateCompanyRole( input: { id: \"Mg==\" permissions: [ \"Magento_Company::view\" \"Magento_Company::view_account\" \"Magento_Company::user_management\" \"Magento_Company::roles_view\" ] } ) { role { id name permissions { id text children { id text children { id text } } } } } } 1. Check the query log. 1. You can see that the above query is executed. This query is executed in app/code/Magento/CompanyGraphQl/Model/Company/Role/ValidateRole.php::validateResources.","introducedInQpt":"1.1.23","createdFor":["2.4.2-p1"],"documentedRange":"2.4.2 - 2.4.5-p1","scheduledFixRelease":"2.4.6"},"files":[{"package":"magento/magento2-b2b-base","constraint":">=1.3.1 <1.3.3","path":"patches/commerce/ACSD-47027_1.3.1-p1.patch","blobSha":"1b3c124c08e63076dba33c94777d63c40ea0a014","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-47027_1.3.1-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-company-graph-ql/Model/Company/Role/ValidateRole.php","change":"modified","package":"magento/module-company-graph-ql"},{"path":"vendor/magento/module-company-graph-ql/etc/graphql/di.xml","change":"modified","package":"magento/module-company-graph-ql"}],"packages":["magento/module-company-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-b2b-base","constraint":">=1.3.3 <1.3.5","path":"patches/commerce/ACSD-47027_1.3.1-p1.patch","blobSha":"1b3c124c08e63076dba33c94777d63c40ea0a014","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-47027_1.3.1-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-company-graph-ql/Model/Company/Role/ValidateRole.php","change":"modified","package":"magento/module-company-graph-ql"},{"path":"vendor/magento/module-company-graph-ql/etc/graphql/di.xml","change":"modified","package":"magento/module-company-graph-ql"}],"packages":["magento/module-company-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["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":"ACSD-58054","deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["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","2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-47027 details"}