-
Notifications
You must be signed in to change notification settings - Fork 152
magento/graphql-ce:#678 Send email to friend #752
magento/graphql-ce:#678 Send email to friend #752
Conversation
Resolver throws `GraphQlAuthorizationException` when sending as guest if allow send as guest is disabled. Fixes magento#732
* Missing dep on magento/module-authorization * Separate email send logic from resolver
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.
Please check my comments and fix static tests.
Thx!
app/code/Magento/SendFriendGraphQl/Model/Resolver/SendEmailToFriend.php
Outdated
Show resolved
Hide resolved
app/code/Magento/SendFriendGraphQl/Model/Resolver/SendEmailToFriend.php
Outdated
Show resolved
Hide resolved
@rleshchenko - please move |
@vpodorozh, I've refactored code according to your notes. Please look again |
app/code/Magento/SendFriendGraphQl/Model/Resolver/ProductService.php
Outdated
Show resolved
Hide resolved
app/code/Magento/SendFriendGraphQl/Model/Resolver/ProductService.php
Outdated
Show resolved
Hide resolved
082f236
to
ff7c66a
Compare
ff7c66a
to
a1d87ba
Compare
app/code/Magento/SendFriendGraphQl/Model/Resolver/ProductService.php
Outdated
Show resolved
Hide resolved
app/code/Magento/SendFriendGraphQl/Model/Resolver/ProductService.php
Outdated
Show resolved
Hide resolved
973145d
to
e8c102a
Compare
@novikor - please pick up this PR. Thx! |
…nto 2.3-develop-678
…velop-678 # Conflicts: # app/code/Magento/SendFriendGraphQl/Model/Resolver/SendEmailToFriend.php # dev/tests/api-functional/testsuite/Magento/GraphQl/SendFriend/SendFriendTest.php
@rleshchenko thank you for the contribution. Few changes I made to your PR:
|
Hi @rleshchenko, thank you for your contribution! |
Description (*)
Previously there was using comparison with Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS ENABLED instead of
comparison with Magento\Catalog\Model\Product\Visibility::VISIBILITY*. Please look at the Magento\Catalog\Model\Product::isVisibleInCatalog()
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)