-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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(utils,types): added item/shipping adjustments for order/items/shipping_methods #6050
Conversation
🦋 Changeset detectedLatest commit: 82b71aa The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 ↗︎
3 Ignored Deployments
|
8dd0e35
to
a8ee07e
Compare
a8ee07e
to
15b8517
Compare
@olivermrbl this one is ready for review |
@adrien2p @olivermrbl can you guys prioritize this review for today? A pile is beginning atm. |
Yes sure, ill do that 👌 |
Strong work man 💪 just a few comments and suggestions and small todo's |
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.
Really strong work @riqwan 🔥
if (!itemApplicationContext) { | ||
throw new MedusaError( | ||
MedusaError.Types.INVALID_DATA, | ||
`"items" not found in context` |
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.
suggestion: Make error message more specific to method. items
and context
are props that will be used across all modules
packages/promotion/src/utils/compute-actions/shipping-methods.ts
Outdated
Show resolved
Hide resolved
packages/promotion/src/utils/compute-actions/shipping-methods.ts
Outdated
Show resolved
Hide resolved
packages/promotion/src/utils/compute-actions/shipping-methods.ts
Outdated
Show resolved
Hide resolved
packages/promotion/src/utils/compute-actions/shipping-methods.ts
Outdated
Show resolved
Hide resolved
packages/promotion/src/utils/compute-actions/shipping-methods.ts
Outdated
Show resolved
Hide resolved
packages/promotion/src/utils/compute-actions/shipping-methods.ts
Outdated
Show resolved
Hide resolved
packages/promotion/src/utils/compute-actions/shipping-methods.ts
Outdated
Show resolved
Hide resolved
@olivermrbl @adrien2p made the changes! |
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
if (!itemApplicationContext) { | ||
throw new MedusaError( | ||
MedusaError.Types.INVALID_DATA, | ||
`"items" should be present as an array in the context for computeActions` |
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.
❤️
packages/promotion/src/utils/compute-actions/shipping-methods.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
what:
RESOLVES CORE-1625
RESOLVES CORE-1626
RESOLVES CORE-1627
RESOLVES CORE-1628
RESOLVES CORE-1585