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

Chore/order claims 2 #8312

Merged
merged 16 commits into from
Jul 29, 2024
Merged

Chore/order claims 2 #8312

merged 16 commits into from
Jul 29, 2024

Conversation

carlos-r-l-rodrigues
Copy link
Contributor

@carlos-r-l-rodrigues carlos-r-l-rodrigues commented Jul 27, 2024

What:

  • Begin Order Claim
  • Add return items
  • Claim items
  • Add additional items
  • Request Order Claim

Missing:

  • complete http tests
  • cancel claim request
  • cancel claim

@carlos-r-l-rodrigues carlos-r-l-rodrigues requested a review from a team as a code owner July 27, 2024 11:44
@carlos-r-l-rodrigues carlos-r-l-rodrigues requested review from sradevski, fPolic and kasperkristensen and removed request for a team July 27, 2024 11:44
Copy link

changeset-bot bot commented Jul 27, 2024

⚠️ No Changeset found

Latest commit: ea0fe5e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link

vercel bot commented Jul 27, 2024

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

Name Status Preview Comments Updated (UTC)
medusa-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2024 3:58pm
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Jul 28, 2024 3:58pm
api-reference-v2 ⬜️ Ignored (Inspect) Visit Preview Jul 28, 2024 3:58pm
docs-ui ⬜️ Ignored (Inspect) Visit Preview Jul 28, 2024 3:58pm
docs-v2 ⬜️ Ignored (Inspect) Visit Preview Jul 28, 2024 3:58pm
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Jul 28, 2024 3:58pm
resources-docs ⬜️ Ignored (Inspect) Visit Preview Jul 28, 2024 3:58pm

@carlos-r-l-rodrigues carlos-r-l-rodrigues changed the base branch from chore/link-return-fulfillment to develop July 27, 2024 13:21
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.

Overall LGTM

ModuleRegistrationName.ORDER
)

const claimItems = input.changes.map((item) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

question: Should we put this in a transformer in the workflow?

}
)

function prepareFulfillmentData({
Copy link
Contributor

Choose a reason for hiding this comment

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

thought: Think this is 1:1 with the other prepareFulfillmentData – if so, we could extract to a utility

Comment on lines +114 to +122
for (const action of modifiedShippingMethod_.actions) {
if (
action.action === ChangeActionType.SHIPPING_ADD &&
action.return_id === orderReturn.id
) {
returnShippingMethod = shippingMethod
break
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

question: If there is only one, we can just use .find() on the actions. Think that's a bit cleaner no?

@@ -10,6 +10,7 @@ import {
AuthenticatedMedusaRequest,
Copy link
Contributor

Choose a reason for hiding this comment

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

question: Shouldn't we return the claim as well in all the /claims Rest APIs? It seems we are doing it in some but not all.

@carlos-r-l-rodrigues
Copy link
Contributor Author

carlos-r-l-rodrigues commented Jul 29, 2024

@olivermrbl , I'm addressing you comments and a few more issues in the next PR in a few minutes.

@carlos-r-l-rodrigues carlos-r-l-rodrigues merged commit 42c80e4 into develop Jul 29, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants