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

Adding out of stock items to wishlist shows success message but fails #21519 #24300

Merged
merged 7 commits into from Sep 20, 2019

Conversation

Rus0
Copy link
Contributor

@Rus0 Rus0 commented Aug 27, 2019

Description (*)

Adding verification of stock and catalog flag for showing out of stock products, the wishlist shows the products if they are out of stock with the flag show out of stock.

Fixed Issues (if relevant)

  1. Adding out of stock items to wishlist shows success message but fails #21519: Adding out of stock items to wishlist shows success message but fails

Manual testing scenarios (*)

  1. Add to wishlist a product without stock. Throws new exception
  2. Enable cataloginventory/options/show_out_of_stock
  3. Add to wishlist a product without stock. It will add it correctly.

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

…k products, the wishlist shows the products if they are out of stock with the flag show out of stock.
@m2-assistant
Copy link

m2-assistant bot commented Aug 27, 2019

Hi @Rus0. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@ghost ghost assigned sidolov Sep 3, 2019
@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-5760 has been created to process this Pull Request
✳️ @sidolov, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

Copy link
Contributor

@sidolov sidolov left a comment

Choose a reason for hiding this comment

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

@Rus0 , please, take a look at failed tests

@Rus0
Copy link
Contributor Author

Rus0 commented Sep 4, 2019

I am going to upload later today a commit

@Rus0 Rus0 requested a review from paliarush as a code owner September 4, 2019 19:06
@Rus0 Rus0 requested a review from sidolov September 4, 2019 20:33
@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-5760 has been created to process this Pull Request
✳️ @sidolov, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@engcom-Delta
Copy link
Contributor

Hi @Rus0 Unfortunately, I cannot reproduce issue on 2.3-develop.
Manual testing scenario:

  • Create product with Stock Status=Out of Stock
  • Set Stores->Configuration->Catalog->Inventory->Stock Options->Display Out of Stock Products=Yes
  • Create customer and login
  • Add product to wishlist

Result:
✔️ Product is added to wishlist and success message is shown
-24300Main png_009

@Rus0
Copy link
Contributor Author

Rus0 commented Sep 9, 2019

Try adding it when it is out of stock and Stores->Configuration->Catalog->Inventory->Stock Options->Display Out of Stock Products = NO

@engcom-Delta
Copy link
Contributor

✔️ QA passed

@m2-assistant
Copy link

m2-assistant bot commented Sep 20, 2019

Hi @Rus0, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.4 milestone Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Component: Wishlist Partner: Wolf Sellers partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants