Page MenuHomePhabricator

Investigate why Page and Reference Previews interfere when footnote comes right behind link on English Beta Wikipedia
Closed, DeclinedPublic2 Story Points

Description

Motivation
Sometimes, when I hover over a footnote indicator, coming from an internal link, nothing happens. Although the page popup of the internal link opens and closes appropriately, it seems to interfere with the call of the reference preview

Screenshot showing the described situation

AcceptanceCriteria

  • It is clear what leads to the footnotes sometimes not showing

Notes

  • It seems like reference previews are shown wrongly, only if you come from an internal link --> Is this a timing issue?
  • Before checking this task again we should make sure that T215420 is done and merged.
  • It should also be tested if this bug turns up in production ( e.g. one of the group0 wikis )

Event Timeline

Lea_WMDE created this task.Jan 25 2019, 1:58 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 25 2019, 1:58 PM
Lea_WMDE added subscribers: WMDE-Fisch, thiemowmde.

Moving @thiemowmde 's comment here

This might be related to T214710#4914267, or might become much less of a problem after T214710 is solved. Let's make sure the fix is merged before we test this again.

Lea_WMDE renamed this task from Page and Reference Previews interfere when footnote comes right behind link to Investigate why Page and Reference Previews interfere when footnote comes right behind link.Jan 29 2019, 1:47 PM
Lea_WMDE triaged this task as Normal priority.
Lea_WMDE updated the task description. (Show Details)
Lea_WMDE set the point value for this task to 8.
Lea_WMDE moved this task from In preparation to Ready for pickup on the Reference Previews board.
jkroll added a subscriber: jkroll.Feb 1 2019, 5:58 PM

I tried to reproduce this, without success so far. Is there anything specific I need to do or do we have a page where it reliably happens? Or does it seem to happen only randomly?

If you go to: https://en.wikipedia.beta.wmflabs.org/wiki/Dog
then hover over the first link "carnivorous" and from there straight to the footnote indicators coming after it, you should see the described behavior.

The best idea I have so far is the ABANDON_END_DELAY, that defaults to 300 ms, and is used in a single place in the code: https://phabricator.wikimedia.org/diffusion/EPOP/browse/master/src/actions.js$266. I tried to set this to 1, and the issue seems to disappear.

Unfortunately, we can not just change this delay because this will have a bad effect for users: all popups will disappear very quickly, much quicker than wanted.

By the way, I can reproduce the issue on a page that contains a single link with a regular page preview. All I need to do is to quickly move the mouse over the link so it just briefly touches the link, leaves it, and quickly move it back on the link. If I can do this with said 300 ms, no popup will be shown.

By the way, I can reproduce the issue on a page that contains a single link with a regular page preview. All I need to do is to quickly move the mouse over the link so it just briefly touches the link, leaves it, and quickly move it back on the link. If I can do this with said 300 ms, no popup will be shown.

I can reproduce the behavior you describe above and this also seems to be an issue for the page preview popups. So it's nothing specific to our code. - But: I still seem to have issues with reference popups even if it seems the 300ms should have passed. - See the attached video. (e.g. at 00:24 )

Some findings from my latest tests around this bug:

  • I can reproduce the this quite easy on en.wp.beta and even on different pages/parts there [1] [2] [3]
  • I can't reproduce it on de.wp.beta [4] [5]
  • I can't reproduce it locally even with the imported pages

[1] https://en.wikipedia.beta.wmflabs.org/wiki/Dog#cite_ref-2 (& the link before )
[2] https://en.wikipedia.beta.wmflabs.org/wiki/Dog#cite_note-6 (& the link before )
[3] https://en.wikipedia.beta.wmflabs.org/wiki/Cat#cite_ref-6 (& the link before )
[4] https://de.wikipedia.beta.wmflabs.org/wiki/Ref_vorschau_tests#cite_ref-eins_1-2 (& the link before )
[5] https://de.wikipedia.beta.wmflabs.org/wiki/MozartReferenzTest#cite_ref-1 (& the link before )

Change 488098 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/Popups@master] Fix action reducer forgetting *all* duplicate dwell actions

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

@WMDE-Fisch, I can confirm this observation.

The error descriptions we collected so far are so different, I believe we are looking at at least two different issues here. More specifically: I suggest to split the issue I described (quickly hovering the same link does not show a popup) off to a new ticket, along with the patch I uploaded.

Lea_WMDE changed the task status from Open to Stalled.Feb 6 2019, 1:01 PM

Per retro we are setting the ticket on stalled, to be rechecking the bug once we deployed to group0. @WMDE-Fisch is going to add some more info on bugs to be split up.

WMDE-Fisch removed a project: Patch-For-Review.

@WMDE-Fisch, I can confirm this observation.

The error descriptions we collected so far are so different, I believe we are looking at at least two different issues here. More specifically: I suggest to split the issue I described (quickly hovering the same link does not show a popup) off to a new ticket, along with the patch I uploaded.

I created a separate ticket for the issue of quickly hovering links T215420: Change delay for appearance of ReferencePreviews to 150ms

WMDE-Fisch updated the task description. (Show Details)
WMDE-Fisch moved this task from Ready for pickup to Doing on the Reference Previews board.
WMDE-Fisch added a subscriber: Andrew-WMDE.

Tried to reproduce the issue on https://test.wikipedia.org/wiki/Dog, see the link to carnivore with the following refrences in the first paragraph similar to the same page on the English beta Wikipedia.

I could not reproduce it there. @thiemowmde @Andrew-WMDE could you please try as well?

WMDE-Fisch changed the point value for this task from 8 to 2.Mar 20 2019, 1:27 PM
WMDE-Fisch moved this task from Backlog to Review on the WMDE-QWERTY-Season-Sprint-2019-03-20 board.

I tried to reproduce the issue on German Wikipedia and again failed to do so. This remains an English Beta Wikipedia mystery. I suggest to close this ticket for now or rephrase it to "{old title} on English Beta Wikipedia" and leave it alone ;-). @Lea_WMDE

Lea_WMDE renamed this task from Investigate why Page and Reference Previews interfere when footnote comes right behind link to Investigate why Page and Reference Previews interfere when footnote comes right behind link on English Beta Wikipedia.Wed, Apr 17, 1:15 PM
Lea_WMDE closed this task as Declined.
Lea_WMDE moved this task from Demo to Done on the WMDE-QWERTY-Sprint-2019-04-03 board.

Declined because it only appears on en beta wikipedia