-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed use inconsistently viewModels in codebase #31503
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
Fixed use inconsistently viewModels in codebase #31503
Conversation
Hi @mrtuvn. 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 |
Related PR in DevDocs: magento/devdocs#8459 |
@magento create issue |
This is a backwards-incompatible change in my opinion. If you use the Consistency is good, but these are just names, in my opinion the first one should even be called @nathanjosiah: have you guys already decided BiC rules around these sort of changes? |
Yes this is now considered BiC under our new policy. Unfortunately this hasn't been documented yet and has historically been a grey area. We have very large policy changes coming that would even further block this kind of change but at least for now this definitely wouldn't be allowed. ℹ️ For internal reference this was decided in the dev guild in https://github.com/magento-commerce/development-guild/issues/23 we also have a related issue here https://github.com/magento-commerce/development-guild/issues/80 |
Hi @mrtuvn, thank you for your contribution! |
Hi @mrtuvn. 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. |
re-target to 2.5-develop |
d36ac81
to
a5d420f
Compare
@magento run all tests |
@magento run Functional Tests CE |
1 similar comment
@magento run Functional Tests CE |
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,
Can we add the same argument with 2 keys - as viewModel
and as view_model
for backward compatibility reasons? I think in such a case, it could be targeted even to 2.4-develop.
update code for backward compatible
a5d420f
to
05233d5
Compare
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests EE |
@magento run Functional Tests B2B |
@magento run Functional Tests B2B |
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.
The functional test failures are not related to the changes introduced by this PR.
@magento run Functional Tests B2B |
Hi @dmytro-ch, thank you for the review. |
Hi @mrtuvn, We are closing this PR.The PR is in Draft since longtime. Once you are ready Please feel free to reopen it to process the PR further. Thanks |
Description (*)
Replace viewModel by view_model in codebase! Somewhere in code developers use both approach view_model and viewModel. This can lead to inconsistent and make more noise for dev experience
Just refactor a little code
For make consistently in code we should refactor both in code base and devdocs! To guide developers/3rd-party extensions providers following standards and reduce confusing. We already have PR for devdocs in here
magento/devdocs#8459
This PR refactor inconsistenly parts from codebase
Related Pull Requests
Fixed Issues (if relevant)
No issue available
Manual testing scenarios (*)
Questions or comments
CC @dmytro-ch pr update related docs update
Contribution checklist (*)
Resolved issues: