-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
feat(medusa, admin-ui, medusa-react, medusa-js): Allow toggling of manage inventory #3435
Conversation
🦋 Changeset detectedLatest commit: 1643aaf The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Super clean work - great job! One thing I have found in quick testing is this: When untoggling the inventory item is correctly deleted. There is, however, still stale location levels in the DB. Would suggest that we make sure these are deleted as well. |
@srindom I added the following change to ensure that all location levels are removed along with the inventory item: https://github.com/medusajs/medusa/pull/3435/files#diff-5f5cf885c014b538496c75814623c92a750781d41c098513cba235ca67ce8414 wdyt? |
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.
Please add integration tests for create inventory item :)
packages/medusa/src/api/routes/admin/inventory-items/transaction/create-inventory-item.ts
Show resolved
Hide resolved
packages/medusa/src/api/routes/admin/inventory-items/transaction/create-inventory-item.ts
Outdated
Show resolved
Hide resolved
packages/medusa/src/api/routes/admin/inventory-items/transaction/create-inventory-item.ts
Outdated
Show resolved
Hide resolved
@srindom added an integration test! 😄 |
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.
LGTM!
packages/admin-ui/ui/src/domain/products/edit/sections/variants/table.tsx
Outdated
Show resolved
Hide resolved
This PR currently has a merge conflict. Please resolve this and then re-add the |
What
How
manage_inventory
is set and if an inventory item already existsFixes CORE-1196