Page MenuHomePhabricator

Popups should not use deprecated method jQuery.fn.hover()
Closed, ResolvedPublic

Description

This task is about MediaWiki's Popups extension (which is sometimes also called "Page-Previews" or "Hovercards").

The line preview.el.hover( behavior.previewDwell, behavior.previewAbandon ); in the file src/ui/renderer.js causes a warning in the console of your web browser's developer tools:

JQMIGRATE: jQuery.fn.hover() is deprecated

See https://github.com/jquery/jquery-migrate/blob/3.0.1/warnings.md for documentation how to replace it.
For anyone who plans to work on this, https://gerrit.wikimedia.org/r/#/c/381780/ and https://gerrit.wikimedia.org/r/#/c/382196/ are similar merged patches.

Developer notes

The Popups extension uses a build process.
After making your change you'll need to run the following code

npm install
npm run build

and commit the dist folder as part of your patch.

Testing criteria

Test that page previews:

  • appear and disappear normally
  • settings open and close
  • note any strange behavior

note: for this, it's not necessary to go through the entirety of the test cases

Event Timeline

Aklapper added a project: Google-Code-in-2017.

Would someone volunteer to mentor this task in Google-Code-in-2017 ? If so, please see https://www.mediawiki.org/wiki/Google_Code-in/2017 - thanks!

I would like to volunteer as a mentor for this task. Google-Code-in-2017

TheDJ subscribed.

Move to the right popups/preview tag.

@Abhi_hk95: Thanks. For GCI, we welcome experienced community members who are already familiar with our workflows and infrastructure, and who can guide new contributors. I cannot find your activity in Phabricator, on Wikimedia wikis, or in Wikimedia code repositories. If there is, please let us know where to find it. :)

@Aklapper I can mentor this task for GCI. I'll import it.

Change 395651 had a related patch set uploaded (by Albert221; owner: Albert221):
[mediawiki/extensions/Popups@master] Fix $.fn.hover is deprecated

https://gerrit.wikimedia.org/r/395651

Jdlrobson subscribed.

Adding to sprint for visibility. Task is being worked on my Google Code in student.

Change 395651 merged by jenkins-bot:
[mediawiki/extensions/Popups@master] Fix $.fn.hover is deprecated

https://gerrit.wikimedia.org/r/395651

ovasileva triaged this task as Medium priority.Dec 6 2017, 10:26 AM
Jdlrobson moved this task from To Do to Needs QA on the Readers-Web-Kanbanana-Board-Old board.
Jdlrobson removed a project: Patch-For-Review.
Jdlrobson updated the task description. (Show Details)
ovasileva assigned this task to ABorbaWMF.
ovasileva updated the task description. (Show Details)
ovasileva added a subscriber: ABorbaWMF.
ovasileva subscribed.

Resolving based on beta cluster testing from T182399: QA html previews on beta cluster