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

Prevent throwing 500 while finalizing an order when at least one item has become tracked #15280

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

jakubtobiasz
Copy link
Contributor

Q A
Branch? 1.12
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets closes #10313
License MIT

@jakubtobiasz jakubtobiasz added Admin AdminBundle related issues and PRs. Bug Confirmed bugs or bugfixes. labels Sep 7, 2023
@jakubtobiasz jakubtobiasz requested a review from a team as a code owner September 7, 2023 08:23
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

Bunnyshell Preview Environment deleted

Available commands:

  • /bns:deploy to redeploy the environment

@SzymonFilipek
Copy link

/bns:start

/**
* @Then I should be notified that the order's payment could not be finalized due to insufficient stock
*/
public function iShouldBeNotifiedThatTheOrderSPaymentCouldNotBeFinalizedDueToInsufficientStock()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public function iShouldBeNotifiedThatTheOrderSPaymentCouldNotBeFinalizedDueToInsufficientStock()
public function iShouldBeNotifiedThatTheOrderSPaymentCouldNotBeFinalizedDueToInsufficientStock(): void

@SzymonFilipek
Copy link

/bns:start

Copy link

@SzymonFilipek SzymonFilipek left a comment

Choose a reason for hiding this comment

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

Changes passed QA check

@GSadee GSadee merged commit e18010a into Sylius:1.12 Sep 8, 2023
25 checks passed
@GSadee
Copy link
Member

GSadee commented Sep 8, 2023

Thank you, Jacob! 🥇

@jakubtobiasz jakubtobiasz deleted the SYL-2928 branch September 10, 2023 14:37
NoResponseMate added a commit that referenced this pull request Jun 3, 2024
…ing a payment (GSadee)

This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A
|-----------------|-----
| Branch?         | 1.12
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | caused by #15280, fixes #16160, replaces #15688, closes #16258
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.12 or 1.13 branches
 - Features and deprecations must be submitted against the 1.14 branch
 - Features, removing deprecations and BC breaks must be submitted against the 2.0 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  Fix unexpected error about not enough stocks while completing the payment in the Admin Panel
  [Behat] Refactor scenarios for finalizing order's payment
  Add spec for PaymentPreCompleteListener with minor improvements
  [Behat] Cover scenarios for finalizing order's payment in API
  [Inventory] Introduce custom exceptions for inventory operations
  [Behat] Adjust scenario and feature names for finalizing payment with item that has become tracked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin AdminBundle related issues and PRs. Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants