After marking duplicate, bug link doesn't have title= (tooltip)

Bug #502882 reported by Matthew Paul Thomas
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Confirmed
Low
Unassigned

Bug Description

1. Mark a bug report as a duplicate.
2. Mouse over the "Duplicate of _bug XYZ_" link that appears in the box in the top right.

What happens: Nothing.
What should happen: A tooltip appears showing the summary of the linked bug report.

Reloading the page fixes the problem. So, the bug link that's inserted after the XHR is not quite the same as the bug link that's included when generating the page from scratch.

See also bug 759348 which talks about the missing ability to change your mind about the duplicate nature without doing a full page reload.

Deryck Hodge (deryck)
Changed in malone:
status: New → Triaged
importance: Undecided → High
tags: added: bug-page ui
Revision history for this message
Curtis Hovey (sinzui) wrote :

Tooltips were removed from bug links because they are too costly to calculate. We are waiting on a AJAX feature that provides a tooltip on over.

Revision history for this message
Deryck Hodge (deryck) wrote :

I did take a look myself at fixing this as a drive-by while working on other duplicate issues, but fixing this requires firing off an API request to get the duplicate's title, and that's a few more lines of code and callbacks than I want to introduce alongside my other current changes.

Like Curtis notes, this bug doesn't exactly apply anymore since we need a general AJAX-based "add tooltip titles to bug numbers" solution now, but I still think we need to be mindful that this has to happen after changing the DOM when marking a bug as a duplicate. So we should keep this bug open. I will, however, downgrade the priority since it requires other work to be done first.

Cheers,
deryck

Deryck Hodge (deryck)
Changed in malone:
importance: High → Low
tags: added: duplicate-handling
description: updated
Revision history for this message
William Grant (wgrant) wrote :

As mentioned earlier, bug links in general no longer have tooltips.

Changed in launchpad:
status: Triaged → Invalid
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I don't know what you mean by "in general". Bug links in bug descriptions (such as in this very bug report!), bug comments, duplicate lists, and statically-generated duplicate markings all have tooltips. Dynamically-generated duplicate markings are, as far as I can tell, the odd one out.

Judging by the source code, the on-demand title= generation that Curtis and Deryck were discussing has been implemented. That should make this bug much easier to fix. Instead of the duplicate-marking script having to reimplement fmt:link client-side, all it should need to do is add class="bug-link" to the link when creating it. The existing bug-link-handling script will then take care of generating the tooltip. Right?

Changed in launchpad:
status: Invalid → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.