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

feat: Initiate return process #22

Merged
merged 11 commits into from
Nov 29, 2024
Merged

Conversation

soniaklimas
Copy link
Contributor

@soniaklimas soniaklimas commented Oct 3, 2024

I want to merge this change because it implements initiation of return process.
image

Pull Request Checklist

  • Test the changes locally to ensure they work as expected.
  • Document the testing process and results in the pull request description. (Screen recording, screenshot etc)
  • Include new tests for any new functionality or significant changes.
  • Ensure that tests cover edge cases and potential failure points.
  • Document the impact of the changes on the system, including potential risks and benefits.
  • Provide a rollback plan in case the changes introduce critical issues.
  • Update documentation to reflect any changes in functionality.

@soniaklimas soniaklimas added the WIP label Oct 3, 2024
@soniaklimas soniaklimas self-assigned this Oct 3, 2024
Copy link

vercel bot commented Oct 3, 2024

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

Name Status Preview Comments Updated (UTC)
nimara-ecommerce ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 2:26pm

@@ -25,6 +26,35 @@ type NextFetchOptions = { next?: { revalidate?: number; tags?: string[] } };
export type FetchOptions = Omit<RequestInit, "method" | "body"> &
NextFetchOptions;

export const secureSaleorClient = ({
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure why you've copied the secureSaleorClient from storefront, what is wrong with the authorization in current graphql client in packages dir?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was misled by the more specific name - secureSaleorClient, which suggested it might have additional security features or enhancements. You are right - current GraphQL client in the packages already handles authorization correctly.

apps/storefront/src/services/index.ts Show resolved Hide resolved
.filter(([_, isSelected]) => isSelected)
.map(([lineId]) => ({
orderLineId: lineId,
quantity: 0, // despite 0 correct qty from order is returned
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do you need to set quantity as 0?

@soniaklimas soniaklimas merged commit b590126 into develop Nov 29, 2024
3 checks passed
@soniaklimas soniaklimas deleted the MS-28-initiate-return-process branch November 29, 2024 11:28
karolkarolka pushed a commit that referenced this pull request Dec 4, 2024
karolkarolka pushed a commit that referenced this pull request Dec 5, 2024
karolkarolka pushed a commit that referenced this pull request Dec 5, 2024
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