-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[API]maintaining cart after login and registration #11984
Conversation
arti0090
commented
Oct 31, 2020
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
License | MIT |
src/Sylius/Bundle/ApiBundle/CommandHandler/RegisterShopUserHandler.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/CommandHandler/RegisterShopUserHandler.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/CommandHandler/PickupCartHandler.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/CommandHandler/PickupCartHandler.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/spec/Assigner/CartToUserAssignerSpec.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/Decorator/AuthenticationSuccessHandlerDecorator.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/Decorator/AuthenticationSuccessHandlerDecorator.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/Decorator/AuthenticationSuccessHandlerDecorator.php
Outdated
Show resolved
Hide resolved
01429a2
to
2a83123
Compare
0717ef1
to
e89a422
Compare
src/Sylius/Bundle/ApiBundle/CommandHandler/PickupCartHandler.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/EventListener/CartBlamerListener.php
Outdated
Show resolved
Hide resolved
private function handleVerification(ShopUserInterface $user): void | ||
{ | ||
/** @var ChannelInterface $channel */ | ||
$channel = $this->channelContext->getChannel(); |
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.
In the long term, I would prefer to skip the usage of contexts in handlers. I think we should put data like channel into command.
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.
Hmm, do you have any resolution for this that we can implement now? Creating this function i was basing on ShopBundle->UserRegistrationListener. Should we create something similar or we leave it as it is and go back to it, when we make API user verification feature? @lchrusciel
…ntation (lchrusciel, arti0090) This PR was merged into the 1.9-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Based on #11984 and #11994 <!-- - Bug fixes must be submitted against the 1.7 or 1.8 branch (the lowest possible) - Features and deprecations must be submitted against the master branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html --> Commits ------- 00822a8 [Behat][Account] Add scenario for logging in after password change ec72ab4 Api changing password 13dee5a first iteration of fixes b263090 changed tags in behat steps 2a60d1f add validation to password change 09d834b [API][Account] Adjust password change to chosen structure 461b6df [Minor] Adjust command and handler naming 955a060 [API] Extract user context and revamp change password handler d48ceea [API][Shop] Logging in after changing password implementation
59d5bfc
to
1d47b09
Compare
src/Sylius/Bundle/ApiBundle/CommandHandler/PickupCartHandler.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/spec/CommandHandler/RegisterShopUserHandlerSpec.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/EventListener/CartBlamerListener.php
Outdated
Show resolved
Hide resolved
Thank you, @arti0090! 🎉 |