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

cart: dispatch events before and after cart merge for e.g. logging #351

Merged
merged 3 commits into from
Dec 1, 2021

Conversation

ChristopherSchwab
Copy link
Contributor

No description provided.


// PreCartMergeEvent is dispatched after getting the (current) guest cart and the customer cart before merging
PreCartMergeEvent struct {
GuestCart *cartDomain.Cart
Copy link
Member

Choose a reason for hiding this comment

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

Are the carts passed by reference for a specific reason? would change that to value objects to avoid accidentally mutating the structs in the event listener.

Copy link
Member

@carstendietrich carstendietrich left a comment

Choose a reason for hiding this comment

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

LGTM

@carstendietrich carstendietrich merged commit a840d79 into master Dec 1, 2021
@carstendietrich carstendietrich deleted the cart-merge-events branch December 1, 2021 14:10
ChristopherSchwab pushed a commit that referenced this pull request Dec 1, 2021
)

* cart: dispatch events before and after cart merge for e.g. logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants