Skip to content

magento/magento2#: Replace deprecated methods in back-end controllers of Magento/Customer #24285

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

Conversation

atwixfirster
Copy link
Contributor

Description (*)

Pull request replaces deprecated addError, addSuccess, addException methods

addError -> addErrorMessage
addSuccess -> addSuccessMessage
addException -> addExceptionMessage

in the next controllers:

  • app/code/Magento/Customer/Controller/Adminhtml/Index/MassAssignGroup.php
  • app/code/Magento/Customer/Controller/Adminhtml/Index/MassDelete.php
  • app/code/Magento/Customer/Controller/Adminhtml/Index/MassSubscribe.php
  • app/code/Magento/Customer/Controller/Adminhtml/Index/ResetPassword.php
  • app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php
  • app/code/Magento/Customer/Controller/Adminhtml/Index.php
  • app/code/Magento/Customer/Controller/Adminhtml/Locks/Unlock.php

Fixed Issues (if relevant)

  1. magento/magento2#<issue_number>: Issue title

Manual testing scenarios (*)

  1. ...
  2. ...

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)

Thank you!

@m2-assistant
Copy link

m2-assistant bot commented Aug 25, 2019

Hi @atwixfirster. 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.

@magento-engcom-team magento-engcom-team added Component: Customer Release Line: 2.3 Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner labels Aug 25, 2019
@dmytro-ch dmytro-ch self-requested a review August 26, 2019 06:15
@dmytro-ch dmytro-ch self-assigned this Aug 26, 2019
Copy link
Contributor

@dmytro-ch dmytro-ch left a comment

Choose a reason for hiding this comment

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

@atwixfirster could yo please check the failing unit tests?

Copy link
Contributor

@ihor-sviziev ihor-sviziev left a comment

Choose a reason for hiding this comment

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

Hi @atwixfirster,
Could you review and fix integration tests?

@ghost ghost assigned ihor-sviziev Aug 28, 2019
@ihor-sviziev
Copy link
Contributor

@magento run all tests

@atwixfirster
Copy link
Contributor Author

atwixfirster commented Aug 28, 2019

Could you review and fix integration tests?

@dmytro-ch @ihor-sviziev,

done

Thanks, guys!

@magento-engcom-team
Copy link
Contributor

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

@ihor-sviziev ihor-sviziev added the Auto-Tests: Covered All changes in Pull Request is covered by auto-tests label Aug 28, 2019
@engcom-Alfa engcom-Alfa self-assigned this Aug 29, 2019
@engcom-Alfa
Copy link
Contributor

Hi @atwixfirster

During testing we faced the issue

Problem: "404 Error" message occurs when trying to "Subscribe to Newsletter" via mass action

Manual testing scenario:

  1. Login to Admin;
  2. Create 2 customers for example;
  3. Select them from the grid;
  4. Select "Subscribe to Newsletter" from drop down menu;

Actual Result:

error

@atwixfirster Could you take a look, please?

Thanks!

@atwixfirster
Copy link
Contributor Author

Thank you, @engcom-Alfa !

I will check

@edenduong
Copy link
Contributor

@dmytro-ch : Should they combine to one??

#24284
#24197
#24340

@dmytro-ch
Copy link
Contributor

@edenduong, these PRs will be combined after approval.
Thank you!

@ihor-sviziev
Copy link
Contributor

@dmytro-ch : Should they combine to one??

#24284
#24197
#24340

It's really easier to test each PR separately

@dmytro-ch
Copy link
Contributor

dmytro-ch commented Aug 29, 2019

It's really easier to test each PR separately

I agree, it depends on PRs.

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, thank you for the review.
ENGCOM-5723 has been created to process this Pull Request

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.

@atwixfirster please, take a look at the issue reported by @engcom-Alfa

@atwixfirster
Copy link
Contributor Author

@atwixfirster please, take a look at the issue reported by @engcom-Alfa

@sidolov, of course . I will check that issue in 3-4 hours.

Thanks

@atwixfirster atwixfirster force-pushed the customer-replace-deprecated-message-func-adminhtml-controllers branch from 887c9cc to d1e9194 Compare August 29, 2019 21:38
@atwixfirster
Copy link
Contributor Author

@atwixfirster please, take a look at the issue reported by @engcom-Alfa

fixed

Thank you, @engcom-Alfa 👍

Copy link
Contributor

@ihor-sviziev ihor-sviziev left a comment

Choose a reason for hiding this comment

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

Hi @atwixfirster,
Unfortunately integration tests started failing after your latest change.
Please review & fix them.
Thank you!

… of Magento/Customer

- app/code/Magento/Customer/Controller/Adminhtml/Index/MassAssignGroup.php
- app/code/Magento/Customer/Controller/Adminhtml/Index/MassDelete.php
- app/code/Magento/Customer/Controller/Adminhtml/Index/MassSubscribe.php
- app/code/Magento/Customer/Controller/Adminhtml/Index/ResetPassword.php
- app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php
- app/code/Magento/Customer/Controller/Adminhtml/Index.php
- app/code/Magento/Customer/Controller/Adminhtml/Locks/Unlock.php
@atwixfirster atwixfirster force-pushed the customer-replace-deprecated-message-func-adminhtml-controllers branch from d1e9194 to 5842160 Compare August 30, 2019 04:50
@atwixfirster
Copy link
Contributor Author

Hi @atwixfirster,
Unfortunately integration tests started failing after your latest change.
Please review & fix them.
Thank you!

Good morning, @ihor-sviziev!

fixed

@engcom-Alfa engcom-Alfa requested a review from sidolov August 30, 2019 07:22
@magento-engcom-team
Copy link
Contributor

Hi @dmytro-ch, thank you for the review.
ENGCOM-5723 has been created to process this Pull Request

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

@engcom-Foxtrot engcom-Foxtrot self-assigned this Sep 2, 2019
magento-engcom-team pushed a commit that referenced this pull request Sep 2, 2019
@magento-engcom-team magento-engcom-team merged commit 5842160 into magento:2.3-develop Sep 2, 2019
@m2-assistant
Copy link

m2-assistant bot commented Sep 2, 2019

Hi @atwixfirster, 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 2, 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 Award: test coverage Component: Customer Partner: Atwix Pull Request is created by partner Atwix 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.

8 participants