Closed Bug 1030627 Opened 10 years ago Closed 10 years ago

Unable to copy failure line text from the log viewer

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: jfrench)

References

()

Details

In TBPL, I often find myself copying failure lines from the brief log viewer, in order to paste a quick summary in a bug.

This isn't possible on:
https://treeherder.mozilla.org/ui/logviewer.html#?job_id=182281&repo=mozilla-inbound

ie: Try and copy the failure lines.

(Ideally please can we solve this without using flash? :-))
Priority: -- → P3
I see the same thing. It looks like you can copy but only if you start outside the box boundary while copying the entire page text.

Since each line inside that right hand failure block appears to function as a button, the change will make each line a 'drag-selectable' button. If everyone is ok with that heuristic.

If we wanted to cue the user visually we could remove the btn class entirely, I believe here
https://github.com/mozilla/treeherder-ui/blob/master/webapp/app/partials/lvLogSteps.html#L8

Or perhaps we could do some variant of the .btn class just for that log block, preserving all its existing css styles, color, etc, but omitting:

-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;

To make it selectable.

I'm happy to poke around if there's agreement to fix it, whichever option is preferred.
Jeads has confirmed on IRC this is something we'd like fixed, so assigning myself, whichever of the two solutions above we arrive at.
Assignee: nobody → tojonmz
It turned out to be a bit more involved (for me), but I've got everything working per Ed's needs. We are wrapping the failure text so it is now readable, they are still buttons, they are selectable, and will copy paste with preserved carriage returns from Firefox. Chrome is all the same - except it's not preserving the carriage returns during copy - the pull-left class on those elements kills them on Chrome for some reason. I will look into that more.
We've opened a PR to evaluate the current implementation
https://github.com/mozilla/treeherder-ui/pull/93
Camd has merged the PR and kindly pushed to dev
http://treeherder-dev.allizom.org

Ed, can you check it out and confirm it's working for you ok? If so I'll mark it fixed.
Status: NEW → ASSIGNED
(Setting needinfo flag on me to add this to my queue; if you have a question that needs a response - it will make sure I don't miss it :-))
Flags: needinfo?(emorley)
lgtm, thank you :-)
Flags: needinfo?(emorley)
Thanks Ed, will do. Marking resolved fixed.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.