magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

magento/magento2#38059 Fix issue with product in cart's removed after…

Open BeggiNN opened this issue 2 years ago • 45 comments

Fix issue with product in cart's removed after reorder multiple times

Related Pull Requests

https://github.com/magento-gl/magento2b2b/pull/102

Description (*)

Product in cart's removed after reorder multiple times if reorder this order until the quantity of the above product reaches the Maximum Qty Allowed in Shopping Cart number

Fixed Issues (if relevant)

  1. Fixes magento/magento2#38059

Manual testing scenarios (*)

  1. Navigate to Admin -> Catalog -> Product -> Choose a product -> Advanced Inventory -> set Maximum Qty Allowed in Shopping Cart to a small number -> Save product.
  2. Navigate to Shop page -> Login -> Order history page -> Reorder the order which contains the above product
  3. Reorder this order until the quantity of the above product reaches the Maximum Qty Allowed in Shopping Cart number

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)
  • [ ] README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • [ ] All automated tests passed successfully (all builds are green)

BeggiNN avatar Oct 13 '23 08:10 BeggiNN

Hi @BeggiNN. Thank you for your contribution! Here are some useful tips on 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.4-develop instance - deploy vanilla Magento instance

:exclamation: Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s) For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here :information_source: Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation. Join Magento Community Engineering Slack and ask your questions in #github channel.

m2-assistant[bot] avatar Oct 13 '23 08:10 m2-assistant[bot]

@magento run all tests

BeggiNN avatar Oct 13 '23 08:10 BeggiNN

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@magento run all tests

BeggiNN avatar Oct 13 '23 10:10 BeggiNN

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@magento run Functional Tests CE, Functional Tests EE, Functional Tests B2B

BeggiNN avatar Oct 13 '23 12:10 BeggiNN

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@magento run Functional Tests CE

BeggiNN avatar Oct 16 '23 07:10 BeggiNN

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@magento run all tests

engcom-Hotel avatar Oct 17 '23 08:10 engcom-Hotel

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@magento run Functional Tests B2B, Functional Tests EE

engcom-Hotel avatar Oct 19 '23 06:10 engcom-Hotel

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Hotel Hello! My changes do not affect the admin panel, below are screenshots of controllers and what they use: Admin Reorder Controller image Front Controller image image I just don't allow you to save the cart when it has some errors image And the tests are broken in the admin panel image Thanks

BeggiNN avatar Oct 19 '23 10:10 BeggiNN

Hello @BeggiNN,

I think you misunderstood my comment here, I am also saying the same thing that the failed tests are not related to the PR changes.

I just asked you to cover the changes with some automated tests like Unit tests, Functional tests, etc.

Thanks

engcom-Hotel avatar Oct 20 '23 07:10 engcom-Hotel

@BeggiNN did you get chance to have look on above comment

engcom-Echo avatar Oct 31 '23 07:10 engcom-Echo

@magento run all tests

engcom-Echo avatar Nov 03 '23 08:11 engcom-Echo

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@magento run Unit Tests,Functional Tests CE

engcom-Echo avatar Nov 03 '23 09:11 engcom-Echo

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@magento run Functional Tests EE,Functional Tests B2B

engcom-Echo avatar Nov 03 '23 10:11 engcom-Echo

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@magento run all tests

engcom-Echo avatar Nov 03 '23 10:11 engcom-Echo

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@magento run Functional Tests B2B

eduard13 avatar Nov 04 '23 20:11 eduard13

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

Could you please double check your MFTF failing test within Functional Tests B2B?

@eduard13 I will take care

engcom-Echo avatar Nov 06 '23 08:11 engcom-Echo

@magento run all tests

engcom-Echo avatar Nov 30 '23 12:11 engcom-Echo

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@magento run Functional Tests CE,Functional Tests EE

engcom-Echo avatar Nov 30 '23 14:11 engcom-Echo