Skip to content

Conversation

@Jeroenll
Copy link
Member

@Jeroenll Jeroenll commented Oct 4, 2018

Backport of #14630

Description

I have observed that MassAction Cancel is using the collection for orders cancel, whereas Order Cancel (order cancel from order edit section) is using Interface to put the order on hold.
So, I have refactor the Mass Order Cancel code to use Sales Order Interface.

Manual testing scenarios

  1. Go to Sales Order Grid
  2. Select any number of orders to cancel
  3. Select Cancel from Action Dropdown

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 on Travis CI are green)

AnshuMishra17 and others added 2 commits October 4, 2018 10:38
I have observed that MassAction Cancel is using the collection for orders cancel, whereas Order Cancel (order cancel from order edit section) is using Interface to put the order on hold.
So, I have refactor the Mass Order Cancel code to use Sales Order Interface.
# Conflicts:
#	app/code/Magento/Sales/Controller/Adminhtml/Order/MassCancel.php
…#14630

- Merge Pull Request magento#14630 from AnshuMishra17/magento2:patch-2
 - Merged commits:
   1. dab8c38
   2. 97f5978
   3. 2b4ca2e

# Conflicts:
#	app/code/Magento/Sales/Controller/Adminhtml/Order/MassCancel.php
#	app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/MassCancelTest.php
@Jeroenll Jeroenll added Release Line: 2.2 partners-contribution Pull Request is created by Magento Partner Partner: Reach Digital Pull Request is created by partner Reach Digital Partner: H&O Port labels Oct 4, 2018
@Jeroenll
Copy link
Member Author

Jeroenll commented Oct 4, 2018

@sidolov Can you also process this PR since you also did the original one in 2.3 branch?

@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-3094 has been created to process this Pull Request

@magento-engcom-team magento-engcom-team merged commit 2569a0b into magento:2.2-develop Oct 4, 2018
@magento-engcom-team
Copy link
Contributor

Hi @JeroenVanLeusden. Thank you for your contribution.
We will aim to release these changes as part of 2.2.8.
Please check the release notes for final confirmation.

Please, consider to port this solution to 2.3 release line.
You may use Porting tool to port commits automatically.

@Jeroenll Jeroenll deleted the patch-1 branch October 5, 2018 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Sales Partner: H&O Partner: Reach Digital Pull Request is created by partner Reach Digital partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants