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

Change usages of order error order line prop #1175

Merged
merged 3 commits into from
Jun 21, 2021

Conversation

bmigirl
Copy link
Contributor

@bmigirl bmigirl commented Jun 18, 2021

I want to merge this change because it uses schema changes to match this PR

PR intended to be tested with API branch:

Screenshots

Pull Request Checklist

  1. This code contains UI changes
  2. All visible strings are translated with proper context including data-formatting
  3. Attributes [data-test-id] are added for new elements
  4. Changes are mentioned in the changelog
  5. The changes are tested in different browsers and in light/dark mode

Test environment config

API_URI=https://saleor-2294-update-draft-order-validation.api.saleor.rocks/graphql/

@bmigirl bmigirl requested review from eCzerniak, jwm0, a team and dominik-zeglen and removed request for a team June 18, 2021 12:45
@github-actions github-actions bot temporarily deployed to saleor-3599-change-usages-of-order-error-order-line-prop June 18, 2021 12:45 Inactive
@github-actions github-actions bot temporarily deployed to storybook saleor-3599-change-usages-of-order-error-order-line-prop June 18, 2021 12:45 Inactive
@dominik-zeglen dominik-zeglen changed the title Saleor 3599/change usages of order error order line prop Change usages of order error order line prop Jun 18, 2021
@@ -430,7 +430,7 @@ const OrderFulfillPage: React.FC<OrderFulfillPageProps> = props => {
!!errors?.find(
err =>
err.warehouse === warehouse.id &&
err.orderLine === line.id &&
err.orderLines[0] === line.id &&
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm pretty sure you should search in whole array, not just 0th index

Copy link
Contributor

Choose a reason for hiding this comment

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

Jus to chip in - this is a very temporary workaround to make backend changes mergeable and further frontend implementation will be worked on immediately after this, but I agree this is a very low-effort change so let's change it now

@@ -430,7 +430,7 @@ const OrderFulfillPage: React.FC<OrderFulfillPageProps> = props => {
!!errors?.find(
err =>
err.warehouse === warehouse.id &&
err.orderLine === line.id &&
err.orderLines[0] === line.id &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Jus to chip in - this is a very temporary workaround to make backend changes mergeable and further frontend implementation will be worked on immediately after this, but I agree this is a very low-effort change so let's change it now

@github-actions github-actions bot temporarily deployed to saleor-3599-change-usages-of-order-error-order-line-prop June 18, 2021 13:08 Inactive
@bmigirl bmigirl requested review from dominik-zeglen and jwm0 June 18, 2021 13:08
@patrys
Copy link
Member

patrys commented Jun 18, 2021

@jwm0 jwm0 merged commit 2cfadd0 into master Jun 21, 2021
@jwm0 jwm0 deleted the SALEOR-3599/change-usages-of-order-error-order-line-prop branch June 21, 2021 11:13
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.

5 participants