magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

magento/magento2#38659: Change order status issue

Open BeggiNN opened this issue 1 year ago • 8 comments

  • Fixed issue with changing order status

Description (*)

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes magento/magento2#38659
  2. Fixes magento/magento2#38917

Manual testing scenarios (*)

  1. Install vanilla Magento
  2. Go to admin Stores => Order Status
  3. Create two statuses "Sent" and "Ready for Pickup" and bind them to "Processing" state
  4. Create product and register customer
  5. Place order on front using this product and customer and default shipping and payment methods
  6. Go to admin Sales => Orders
  7. Open previously placed order
  8. Create invoice by clicking Invoice button on top
  9. See order changed status to "Processing"
  10. Go to "Add Comment" form change status to "Sent" and add any comment
  11. Reload order form and see status changed to "Sent"
  12. Go to "Add Comment" form again and change status to "Ready for Pickup" and add any comment
  13. Reload order form

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 Jul 12 '24 09:07 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 Jul 12 '24 09:07 m2-assistant[bot]

@magento run all tests

BeggiNN avatar Jul 12 '24 09:07 BeggiNN

@magento run all tests

engcom-Hotel avatar Jul 22 '24 05:07 engcom-Hotel

@magento run Static Tests, Unit Tests, Integration Tests

engcom-Hotel avatar Jul 31 '24 10:07 engcom-Hotel

@engcom-Hotel Yes, I will rework the unit tests soon.

BeggiNN avatar Aug 01 '24 11:08 BeggiNN

@magento run Unit Tests

engcom-Hotel avatar Aug 27 '24 12:08 engcom-Hotel

@magento run all tests

engcom-Hotel avatar Aug 27 '24 13:08 engcom-Hotel

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

engcom-Hotel avatar Aug 28 '24 07:08 engcom-Hotel

@magento run all tests

engcom-Hotel avatar Sep 02 '24 06:09 engcom-Hotel

@magento give me test instance

engcom-Bravo avatar Sep 03 '24 07:09 engcom-Bravo

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

Hi @engcom-Bravo, here is your Magento Instance: https://906222cbd2c0df8cfab04c6745494c87.instances-prod.magento-community.engineering Admin access: https://906222cbd2c0df8cfab04c6745494c87.instances-prod.magento-community.engineering/admin_c5a4 Login: fb43e730 Password: dc116064bdc0

Hi @BeggiNN,

Thanks for the collaboration & contribution!

:heavy_check_mark: QA Passed

Preconditions:

  • Install fresh Magento 2.4-develop

Steps to reproduce

As per the Description

Before: :heavy_multiplication_x: 

https://github.com/user-attachments/assets/44b40e2a-9256-426d-ac9e-0ae0d43e422d

After: :heavy_check_mark:

https://github.com/user-attachments/assets/1314ea99-ed2d-4d00-bb73-4e10c9b38eb8

Builds are failed. Hence, moving this PR to Extended Testing.

Thanks

engcom-Bravo avatar Sep 03 '24 11:09 engcom-Bravo

@magento run all tests

engcom-Charlie avatar Sep 04 '24 07:09 engcom-Charlie

@magento run Functional Tests B2B, Functional Tests EE

engcom-Charlie avatar Sep 04 '24 10:09 engcom-Charlie

Functional B2B failures in recent 2 builds are not constant and one consistent failure is a known issue.

Run 1: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38923/5117af6736482c83543b2e44c9abaa46/Functional/allure-report-b2b/index.html#categories

image

Run 2: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38923/021f7465a77ed23032494110c40e7e8d/Functional/allure-report-b2b/index.html#categories/bdbf199525818fae7a8651db9eafe741

image

Known issues : AdminCreateDraftQuoteFromQuoteGridPageTest: #ACQE-6309

engcom-Charlie avatar Sep 05 '24 09:09 engcom-Charlie

Some build failures from functional EE are not constant in recent 2 builds, seems to be flaky. One failure is constant and its a known issue. Hence moving this PR to Merge in Progress.

Run 1: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38923/5103f08befc51821ce422671547d4228/Functional/allure-report-ee/index.html#categories

image

Run 2: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38923/6247a086b89182e6ce8ce256eb1a73fb/Functional/allure-report-ee/index.html#categories

image

Known issues : StorefrontCreateOrderAllQuantityGroupedProductOptionDefaultStockTest: #ACQE-6331

engcom-Charlie avatar Sep 05 '24 09:09 engcom-Charlie

Was fixed by internal Adobe devs in https://github.com/magento/magento2/commit/18dee3d979ed8ee68a44324e892e6b7f570c987c, so we can probably close this PR?

hostep avatar Sep 13 '24 09:09 hostep

Was fixed by internal Adobe devs in 18dee3d, so we can probably close this PR?

Seems to be fixed in https://github.com/magento/magento2/commit/18dee3d979ed8ee68a44324e892e6b7f570c987c under ACP2E-3178 hence closing it now.

engcom-Charlie avatar Sep 13 '24 13:09 engcom-Charlie