-
Notifications
You must be signed in to change notification settings - Fork 9.4k
update jquery validate method and removal of jquery migrate #32364
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
update jquery validate method and removal of jquery migrate #32364
Conversation
Hi @jordanvector. 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 |
@magento run all tests |
Let's wait for test results |
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.
It feels like this is not a full solution, as we still getting functional test failures. Could you check those test failures?
Also TBH I don't think it's a good solution to fix the validation library, maybe upgrading it will be much better. What do you think?
@ihor-sviziev fair enough, updating the validation library is probably better than updating the methods within. I am gonna go take a look and see where jquery validation is these days and try to swap. If it works I will update this PR..or make a new one |
@jordanvector I would recommend starting from checking test failures, that might be not in the validation library at all |
@ihor-sviziev I did take a look at the test results and those look like maybe a network issue with the test rather than a code problem. Can we rerun the failed to confirm? |
We had similar issue on the previous PR. It doesn't look like false positive |
Hi @ihor-sviziev. Thank you for your request. I'm working on Magento instance for you. |
Hi @ihor-sviziev, here is your Magento Instance: https://39d199c4b6310f5c789e0719cd4c2bc3.instances.magento-community.engineering |
@magento run all tests |
updated the jquery validate library to its latest version. @magento run all tests |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @jordanvector Can you fix conflict file ? |
@fascinosum please pay attention to this PR |
Changed target branch to |
Hi @jordanvector, thank you for working on this. I've also done some investigation on this area (more related to jQuery.validate), and it doesn't seem that we can easily update it. The main reason, being jQuery.metadata which is still used by core code, and not supported by the latest jQuery.migrate version. As result, we'll have the frontend validation not working for form fields that are still using the Is it required to update the Thank you. |
@magento run Static Tests, Unit Tests, Functional Tests CE, Functional Tests EE, Functional Tests B2B |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
1 similar comment
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@eduard13 that is exactly right and thank you for writing this up, the incompatibility specifically comes from the jquery validate function. And to also answer your question no updating jquery validate is not required to remove jquery migrate however if we do not upgrade jquery validate, there are 2 functions in the current version of jquery validate that use old deprecated jquery methods that need updating. Specifically here 8fa540d#diff-ba3cf3f1b621df49d92f6733738b560443aafaff3f0d13ddbf414838e0a5fc0c Depending on time and effort of updating jquery validate to the latest version, maybe its worth reverting back to the old version and fixing the deprecated methods, then a new ticket to update the jquery validate package in the future? |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @jordanvector thank you for your comment. Indeed, I've reverted the jQuery.validate, however we still have some incompatibility issues with Regarding fixing the deprecated methods, if they are inside of some libraries, we should try to update it instead of directly changing it. Will keep you updated if anything. |
Hi @jordanvector, after investigating possible issues, looks like removing jQuery-migrate, at the moment will cause more problems with the existing libraries. Moreover, keeping it, will allow us easily update jQuery to the latest version which is planned for the near future. Putting it on hold for now. Thank you for understanding. |
Closing this PR for now, as it is planned to proceed updating the jQuery-migrate. |
Hi @jordanvector, thank you for your contribution! |
Description (*)
Removes jQuery Migrate,
Updates Jquery validate method from event.handle to event.dispatch
Builds upon #25847
Related Pull Requests
https://github.com/magento/partners-magento2ee/pull/587
Fixed Issues (if relevant)
Fixes #21406 : remove jQuery Migrate
Manual testing scenarios (*)
None
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)