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

Deprecated redundant class #26714

Merged
merged 4 commits into from
Feb 13, 2020

Conversation

drpayyne
Copy link
Contributor

@drpayyne drpayyne commented Feb 5, 2020

Description

Deprecated redundant \Magento\Sales\Model\Order\Email\Sender\ShipmentSender with preference for \Magento\Sales\Model\Order\Shipment\Sender\EmailSender since it implements a data interface. Please refer #14885 (comment)

Fixed Issues

  1. Refactoring: Code duplication EmailSender / ShipmentSender and so on #14885: Refactoring: Code duplication EmailSender / ShipmentSender and so on

Manual testing scenarios

  1. No testing as this PR only deprecates a class

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)

@m2-assistant
Copy link

m2-assistant bot commented Feb 5, 2020

Hi @drpayyne. 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.4-develop instance - deploy vanilla Magento instance

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

@swnsma
Copy link
Contributor

swnsma commented Feb 5, 2020

Hi @drpayyne,
Thank you for your contribution!
Could you please check failed static test?

@swnsma swnsma self-assigned this Feb 5, 2020
@swnsma swnsma self-requested a review February 5, 2020 17:44
@drpayyne
Copy link
Contributor Author

drpayyne commented Feb 5, 2020

Hey @swnsma, thanks for reviewing. I've fixed the static test failures. Thanks!

@swnsma swnsma added the Cleanup label Feb 6, 2020
@magento-engcom-team
Copy link
Contributor

Hi @swnsma, thank you for the review.
ENGCOM-6807 has been created to process this Pull Request
✳️ @swnsma, 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

@swnsma swnsma self-requested a review February 6, 2020 12:50
@swnsma
Copy link
Contributor

swnsma commented Feb 6, 2020

Hi! Thank you, @drpayyne
May I ask you also ask you to mark as 'deprecated' all tests which is related to this class?

@drpayyne
Copy link
Contributor Author

drpayyne commented Feb 6, 2020

Hi @swnsma, fixed that too. Thanks!

@engcom-Alfa engcom-Alfa self-assigned this Feb 6, 2020
@engcom-Alfa
Copy link
Contributor

@swnsma Could you review the latest changes?
Thanks!

@swnsma
Copy link
Contributor

swnsma commented Feb 9, 2020

Hi @drpayyne!
Thank you!
How about

\Magento\Sales\Model\Order\Email\Sender\ShipmentSenderTest
?

@drpayyne
Copy link
Contributor Author

Hi @swnsma, sorry I don't understand your comment. I've deprecated the test class you've mentioned too. 🤔

@swnsma
Copy link
Contributor

swnsma commented Feb 10, 2020

Hi @drpayyne!

You have deprecated class:

app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/ShipmentSenderTest.php

But you did not deprecate integration tests class:

dev/tests/integration/testsuite/Magento/Sales/Model/Order/Email/Sender/ShipmentSenderTest.php

Or I miss something?

@drpayyne
Copy link
Contributor Author

Hi @swnsma, I've deprecated that too now. Thank you.

@swnsma
Copy link
Contributor

swnsma commented Feb 10, 2020

@drpayyne Thank you!

Copy link
Contributor

@swnsma swnsma left a comment

Choose a reason for hiding this comment

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

@qa please make sure that tests works correctly with removed in this PR classes.

@magento-engcom-team
Copy link
Contributor

Hi @swnsma, thank you for the review.
ENGCOM-6807 has been created to process this Pull Request
✳️ @swnsma, 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-Alfa engcom-Alfa added the Auto-Tests: Covered All changes in Pull Request is covered by auto-tests label Feb 10, 2020
@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

@engcom-Charlie
Copy link
Contributor

Failed functional test not related to the changes in this PR test fails in 2.4-develop with MSI modules.
image

@m2-assistant
Copy link

m2-assistant bot commented Feb 13, 2020

Hi @drpayyne, 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.

@sdzhepa sdzhepa mentioned this pull request May 9, 2022
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 Cleanup Component: Sales Partner: EY partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants