-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
build(deps): use jquery v2.2.4 to unblock jquery-ui v1.14.1 upgrade #11109
base: main
Are you sure you want to change the base?
build(deps): use jquery v2.2.4 to unblock jquery-ui v1.14.1 upgrade #11109
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11109 +/- ##
=======================================
Coverage 49.25% 49.25%
=======================================
Files 78 78
Lines 22418 22418
Branches 5372 5372
=======================================
Hits 11043 11043
Misses 10019 10019
Partials 1356 1356 ☔ View full report in Codecov by Sentry. |
@@ -104,7 +107,6 @@ function buildjQueryUi() { | |||
"./node_modules/jquery-ui/ui/position.js", | |||
"./node_modules/jquery-ui/ui/keycode.js", | |||
"./node_modules/jquery-ui/ui/unique-id.js", | |||
"./node_modules/jquery-ui/ui/safe-active-element.js", |
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.
NB: safe-active-element.js
was removed from jquery-ui
in jquery/jquery-ui@bb49bd7 (released in v1.14.0).
From local testing: Edit: subsequent testing uncovered a compatibility problem related to the preferences panel. |
92053af
to
315ca55
Compare
Note: I have only manually tested the nutrition autosuggest functionality so far (it's the main affected component I'm aware of and familiar with), but I think this pull request is ready for review. |
I'm encountering a JavaScript error when attempting to close the preferences-edit panel using a build from fd7fb7f. It seems likely that the |
fd7fb7f
to
935e7e0
Compare
@jayaddison thanks for working on this ! |
Thank you so much @jayaddison ! I'll do my best to test the PR locally. |
What's the best way to have the gulpfile.ts changes applied in the dev containers? (ideally without running "make dev") I tried "make front_npm_update", "make front_build" followed by "make restart" but I still have jquery ui 1.13.3 I also tried docker compose up -d --build frontend
|
There may be a better way, but so far I have been running |
Thanks @jayaddison . I did that, but after I'm missing jquery, the file http://static.openfoodfacts.localhost/js/dist/jquery.js does not exist for some reason on my dev environment. |
d606852
to
84c593e
Compare
84c593e
to
345d0a5
Compare
Happy New Year - and also, my apologies for the force pushes after PR approval. I wouldn't usually do that, but because I included the contents of branch #10970 in this one originally (so that they would both get merged together), I've been rebasing this branch to follow the rebases on that one (otherwise I worry that the commit history could get confused). Anyway: I'll re-test this again later today (the behaviour shouldn't have changed since last time, but there's no harm in re-checking). |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
Bumps the jquery group with 1 update in the / directory: [jquery-ui](https://github.com/jquery/jquery-ui). Updates `jquery-ui` from 1.13.3 to 1.14.1 - [Release notes](https://github.com/jquery/jquery-ui/releases) - [Commits](jquery/jquery-ui@1.13.3...1.14.1) --- updated-dependencies: - dependency-name: jquery-ui dependency-type: direct:production update-type: version-update:semver-minor dependency-group: jquery ... Signed-off-by: dependabot[bot] <[email protected]>
Relates-to commit 10e12e9. [skip ci]
(cherry picked from commit 92053af) Conflicts: gulpfile.ts
345d0a5
to
9e1ec6e
Compare
Quality Gate passedIssues Measures |
What
The
jquery-ui
upgrade suggested in #10970 is incompatible withjquery
versions earlier than v2.2.0 as it lacks a fix that was applied for jquery/jquery#2466In our
package-lock.json
file, it appears that we usejquery
v3.7.1 -- but in fact we copy a vendored copy from thefoundation
UI framework, during thegulpfile.ts
copyJs
function.I believe that
jquery
v2.2.0+ is compatible -- and have tested this locally. Compatibility was restored by jquery/jquery@bf591fb because it ensures that auniqueSort
function (as used byjquery-ui
) is available injquery
.Related issue(s) and discussion
Edit: cleanup pull request description.