-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#: Remove a redundant getMappedNums from a loop #27939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
magento/magento2#: Remove a redundant getMappedNums from a loop #27939
Conversation
Hi @atwixfirster. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @atwixfirster, thank you for the suggested improvement :)
Please note, due to Magento Definition of Done the changes must be covered by tests. Could you please cover your fix by the appropriate unit test?
Thank you!
e2b2f20
to
104df1c
Compare
done Thank you, @dmytro-ch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atwixfirster thank you for the updates!
Could you please just apply the following minor change in order to make sure the test is compatible with PHPUnit 8?
Thank you!
lib/internal/Magento/Framework/GraphQl/Test/Unit/Query/EnumLookupTest.php
Outdated
Show resolved
Hide resolved
232dd5d
to
1c87648
Compare
Hi @dmytro-ch, thank you for the review. |
✔️ QA passed "$ this-> enumDataMapper-> getMappedEnums ($ enumName);" it is possible to take out for "foreach" it will not influence logic but will reduce quantity of uses. |
@magento run all tests |
@magento run all tests |
Hi @gabrieldagama, thank you for the review. |
✔️ QA Passed Manual Testing scenario
query{
customer{
firstname
lastname
email
is_subscribed
created_at
prefix
wishlists{
id
}
}
}
AR: The response contains all the correct information about the Customer, for example {
"data": {
"customer": {
"firstname": "Alan",
"lastname": "Smithee",
"email": "[email protected]",
"is_subscribed": true,
"created_at": "2020-09-25 13:34:27",
"prefix": null,
"wishlists": [
{
"id": "1"
}
]
}
}
} |
Hi @atwixfirster, thank you for your contribution! |
Description (*)
Removes a redundant
getMappedNums
from a loop.Before changes:
After fix:
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: