Skip to content
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] Resend verification email refactor to take current user from the security context #12978

Merged
merged 1 commit into from Aug 19, 2021

Conversation

lchrusciel
Copy link
Member

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

@lchrusciel lchrusciel requested a review from a team as a code owner August 18, 2021 12:12
@probot-autolabeler probot-autolabeler bot added the API APIs related issues and PRs. label Aug 18, 2021
@lchrusciel lchrusciel force-pushed the verification-refactor branch 2 times, most recently from 16b2ed3 to cf84fc6 Compare August 18, 2021 12:56

/** @experimental */
class ResendVerificationEmail implements ChannelCodeAwareInterface, LocaleCodeAwareInterface, IriToIdentifierConversionAwareInterface
class ResendVerificationEmail implements ShopUserIdAwareInterface, ChannelCodeAwareInterface, LocaleCodeAwareInterface, IriToIdentifierConversionAwareInterface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class ResendVerificationEmail implements ShopUserIdAwareInterface, ChannelCodeAwareInterface, LocaleCodeAwareInterface, IriToIdentifierConversionAwareInterface
final class ResendVerificationEmail implements ShopUserIdAwareInterface, ChannelCodeAwareInterface, LocaleCodeAwareInterface, IriToIdentifierConversionAwareInterface

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, that this approach would be more proper from the clean code perspective, but we've decided to leave commands open, as they are simple DTOs and it makes it easier to extend basic logic

@lchrusciel lchrusciel force-pushed the verification-refactor branch 2 times, most recently from 1a25a4a to 736a6c8 Compare August 18, 2021 13:24
Copy link
Member

@GSadee GSadee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the rebase is needed

@lchrusciel lchrusciel force-pushed the verification-refactor branch 2 times, most recently from 473b46e to 770e1a2 Compare August 19, 2021 07:20
@probot-autolabeler probot-autolabeler bot added the Maintenance CI configurations, READMEs, releases, etc. label Aug 19, 2021
@GSadee GSadee merged commit c1342df into Sylius:master Aug 19, 2021
@GSadee
Copy link
Member

GSadee commented Aug 19, 2021

Thanks, Łukasz! 🎉

@lchrusciel lchrusciel deleted the verification-refactor branch August 19, 2021 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API APIs related issues and PRs. Maintenance CI configurations, READMEs, releases, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants