-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#: Replace deprecated addError, addSuccess, addException methods in Magento/Customer/Controller/Account/CreatePost.php #24197
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
…ion methods in Magento_Customer module addError -> addErrorMessage addSuccess -> addSuccessMessage addException -> addExceptionMessage
Hi @atwixfirster. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
…ion methods in Magento_Customer module Fix. Unit tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atwixfirster , could you please check the failed integration tests.
There is a difference in expected results due to escaped characters after using the new methods.
…ion methods in Magento_Customer module
…ion methods in Magento_Customer
…ion methods in Magento_Customer
…ion methods in Magento_Customer
…ion methods in Magento_Customer
…ion methods in Magento/Customer/Controller/Account/CreatePost.php
…ion methods in Magento/Customer/Controller/Account/CreatePost.php
…ion methods in Magento/Customer/Controller/Account/CreatePost.php
…ion methods in Magento/Customer/Controller/Account/CreatePost.php
done @dmytro-ch, could you please review? Thank you! |
Hi @dmytro-ch, thank you for the review.
|
✔️ QA Passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atwixfirster looks like the simple implementation with just messages became a really complex, could you please clarify why we need to use additional templates for simple messages that can be inlined and used in addSuccessMessage
method?
Hi, @sidolov ! I will try to explain on the following example. Preconditions:
Steps to reproduce:
Thank you! |
@sidolov , you can see the same implementations in the
Thank you! |
…ss, addException methods in Magento/Customer/Controller/Account/CreatePost.php #24197
Hi @atwixfirster, thank you for your contribution! |
Description (*)
Pull request replaces deprecated
addError
,addSuccess
,addException
methods inMagento/Customer/Controller/Account/CreatePost.php
ofMagento_Customer
module:addError -> addErrorMessage
addSuccess -> addSuccessMessage
addException -> addExceptionMessage
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Thank you!