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(admin-ui): Omit PriceList prices from variant update #4552

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

olivermrbl
Copy link
Contributor

@olivermrbl olivermrbl commented Jul 19, 2023

This is already handled on the backend i.e. API validation throws on price list ids in prices. However, because we re-shape the price in admin to not include price_list_id, these prices are treated as if they were standard region or currency prices leading to an error at the DB level.

Solves #4550
Fixes CORE-1448

@olivermrbl olivermrbl requested a review from adrien2p July 19, 2023 08:04
@olivermrbl olivermrbl requested a review from a team as a code owner July 19, 2023 08:04
@changeset-bot
Copy link

changeset-bot bot commented Jul 19, 2023

🦋 Changeset detected

Latest commit: 9959ec3

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

This PR includes changesets to release 2 packages
Name Type
@medusajs/admin-ui Patch
@medusajs/admin 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

@vercel
Copy link

vercel bot commented Jul 19, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
medusa-docs ⬜️ Ignored (Inspect) Jul 19, 2023 8:06am

Copy link
Member

@adrien2p adrien2p left a comment

Choose a reason for hiding this comment

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

LGTM, nice edge case, they were transform as normal prices when send to the api 😅

@olivermrbl olivermrbl merged commit 221f62d into develop Jul 19, 2023
@olivermrbl olivermrbl deleted the fix/variant-price-list-price branch July 19, 2023 11:44
This was referenced Jul 19, 2023
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