-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Replaced all escape functions from $block object to $escaper object as a part of Magento coding standards. #30639
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
Replaced all escape functions from $block object to $escaper object as a part of Magento coding standards. #30639
Conversation
…s a part of Magento coding standards.
Hi @sanganinamrata. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
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.
Hi @sanganinamrata. Thank you for the refactoring. I believe it would be a good idea if we perform the replacement everywhere in the system and not only in particular modules. What do you think about that?
Sure @rogyar, Right now I've covered |
I really don't like this to happen in minor releases (2.4.2 for example), it generates a lot of changes in frontend code which causes a whole lot of unnecessary noise when reviewing such an update and extra work when you need to upgrade to a new minor release and adjust your own custom frontend theme to follow the new changes. I prefer if big changes in hundreds or thousands of different phtml files only happen in major releases (like 2.5.0). (This comment is irrelevant if only 10 or 20 files will be affected, but please if this affects more then 20 files, consider to only ship this in Magento 2.5.0) The same thing happened in Magento 2.3.3, where a bunch of new coding standards got applied to all the phtml files and it caused just soo much overhead and extra work, I really like to not have this happen in minor releases in the future any longer, because it makes upgrades to a minor release really expensive, we should try to make minor releases easy and effortless so people will actually want to invest the time to upgrade to them. Thanks for considering this! :) |
Hi @ihor-sviziev, So Should I update this PR affected changes to Magento core modules as requested by @rogyar at #30639 (review) ? |
I don't mind. |
It can probably be done, but just make sure the PR is not merged in |
@hostep Sure, I would love to do that. |
@hostep @ihor-sviziev totally agree. Thanks |
Hi @sanganinamrata: Since the 2.5-develop branch is now open, could you change the target branch of this PR to |
Hi @sanganinamrata, |
Hi @sanganinamrata, thank you for your contribution! |
Description (*)
Replaced all escape functions from
$block
object to$escaper
object as a part of Magento coding standards.Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
N/A
Questions or comments
Contribution checklist (*)