feat(core-flows,order,medusa,types): Version shipping method adjustments & implement missing creation flow for versioned adjustments#14482
Conversation
🦋 Changeset detectedLatest commit: 5610b41 The changes in this PR will be included in the next version bump. This PR includes changesets to release 77 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 GitHub. 9 Skipped Deployments
|
packages/medusa/src/migration-scripts/backfill-shipping-adjustment-versions.ts
Outdated
Show resolved
Hide resolved
packages/core/core-flows/src/order/workflows/compute-adjustments-for-preview.ts
Outdated
Show resolved
Hide resolved
|
@adrien2p the migration i included to add unique index on |
|
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on February 17. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
This PR was closed because it has been stalled for 5 days with no activity. |
|
After an initial review, this PR looks good to us. Here's a summary: ✅ Linked to verified bug #14384 A team member will do a final review before this is merged. Notes:
|
Summary
What — What changes are introduced in this PR?
Add
versionto shipping method adjustments and implement the missing flow for versioned creation of both line and shipping method adjustments.Why — Why are these changes relevant or necessary?
Adjustments don't align with the versioned nature of order related entities.
How — How have these changes been implemented?
Added the
versionfield to shipping method adjustments and handle their versions when applying order changes. Implemented missing logic to actually create/delete the versioned line/shipping methods adjustments.Testing — How have these changes been tested, or how can the reviewer test the feature?
Tests.
Examples
Provide examples or code snippets that demonstrate how this feature works, or how it can be used in practice.
This helps with documentation and ensures maintainers can quickly understand and verify the change.
// Example usageChecklist
Please ensure the following before requesting a review:
yarn changesetand follow the promptsAdditional Context
Add any additional context, related issues, or references that might help the reviewer understand this PR.
fixes #14384, CORE-1359