-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
fix: remove unused ID #17291
fix: remove unused ID #17291
Conversation
Hi @DanielRuf. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Unfortunately, we can't accept such Pull Requests to 2.2 release line, all code cleanup like typos, spelling mistakes, etc should be delivered to 2.3 release line. For more information, please, refer to Magento Code Contributions Guide. |
Isn't this the case with forward ports? Some weeks ago I could still create PRs for such things and I saw them merged and now this? |
@DanielRuf this is pretty new
|
In general the change of another contributor was to set the ID with knockout, which does the same like mine PR does- fix the duplicate ID issue. But the current code has a big drawback: knockout / JS for a trivial issue which is only because of an unused ID (it is actually not used at all) which impacts the performance of the DOM. This is not how it should have been "fixed" as it is not good for the performance. |
Se my last comment about performance and the impact on the DOM. In general it should have been reverted and the ID removed. I was just one week late as I saw this last week to but thought it would have been correctly fixed and checked if we really need the ID (which is not the case). |
But to be exact, this is not a code cleanup but a fix, the right fix. |
See #17061 |
@DanielRuf thanks, totally makes sense to me as it was introduced recently and it's better to redo fix. https://github.com/DanielRuf/magento2/commit/d78fd0c7a9907cf14a0ff48d3bb6007392a7ba9e |
update acceptance test to use new data-form attribute
Done. |
Hi @orlangur, thank you for the review. |
Hi @DanielRuf. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description
The ID is totally unused so we do not have to use Knockout here and do not even need this ID.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist