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

fix(medusa): Update cart sales channel should not remove all line items #5980

Merged
merged 14 commits into from
Jan 3, 2024

Conversation

adrien2p
Copy link
Member

@adrien2p adrien2p commented Jan 2, 2024

What
When updating a cart SC, it should not remove all the items but only the items that do not belong to the new SC.
Als include some cleanup and improvements.

FIXES #5967

Copy link

changeset-bot bot commented Jan 2, 2024

🦋 Changeset detected

Latest commit: 884156c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@medusajs/medusa Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jan 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Visit Preview Jan 3, 2024 9:16am
docs-ui ⬜️ Ignored (Inspect) Visit Preview Jan 3, 2024 9:16am
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Jan 3, 2024 9:16am

@adrien2p adrien2p marked this pull request as ready for review January 2, 2024 13:18
@adrien2p adrien2p requested a review from a team as a code owner January 2, 2024 13:18
@adrien2p adrien2p requested review from riqwan and olivermrbl January 2, 2024 13:18
@adrien2p adrien2p force-pushed the fix/cart-sc-update branch from 0c1d91a to b5c9e04 Compare January 2, 2024 14:00
@adrien2p
Copy link
Member Author

adrien2p commented Jan 2, 2024

/snapshot-this

Copy link
Contributor

@riqwan riqwan left a comment

Choose a reason for hiding this comment

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

lgtm!

@adrien2p adrien2p requested a review from pKorsholm January 2, 2024 16:35
Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@pKorsholm pKorsholm left a comment

Choose a reason for hiding this comment

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

LGTM just have a couple of questions and a nit

packages/medusa/src/services/cart.ts Show resolved Hide resolved
packages/medusa/src/services/cart.ts Outdated Show resolved Hide resolved
packages/medusa/src/services/line-item.ts Outdated Show resolved Hide resolved
@adrien2p adrien2p requested a review from pKorsholm January 3, 2024 08:29
Copy link
Contributor

@pKorsholm pKorsholm left a comment

Choose a reason for hiding this comment

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

LGTM

@olivermrbl olivermrbl merged commit 278b7fb into develop Jan 3, 2024
15 checks passed
@olivermrbl olivermrbl deleted the fix/cart-sc-update branch January 3, 2024 13:06
This was referenced Jan 3, 2024
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.

Items in Cart is wipe out when change Sales Channel
4 participants