Closed
Bug 1045602
Opened 10 years ago
Closed 8 years ago
The page title for individual revisions should include details (port bug 1020919 to treeherder)
Categories
(Tree Management :: Treeherder, defect, P4)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Paolo, Assigned: KWierso)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
When viewing an individual revisions, the page title should display the revision number, followed by the main bug number from bug 1045600 when available. The job count summaries would also be useful as part of the details. This can be considered even for other views, showing details from the first row. This is especially useful with "side tabs" add-ons that provide more space for reading the title.
Comment 1•10 years ago
|
||
Is the solution used by TBPL's recent bug 1020919 something that sounds reasonable?
Blocks: treeherder-sheriff-transition
Priority: -- → P3
Reporter | ||
Comment 2•10 years ago
|
||
(In reply to Ed Morley [:edmorley] from comment #1) > Is the solution used by TBPL's recent bug 1020919 something that sounds > reasonable? Yeah, the format used there looks good! The revision number could still be included at the end to distinguish different pushes of slightly different patches, but I don't think it's a requirement.
Comment 3•10 years ago
|
||
(In reply to :Paolo Amadini from comment #2) > Yeah, the format used there looks good! The revision number could still be > included at the end to distinguish different pushes of slightly different > patches, but I don't think it's a requirement. I think people are unlikely to remember the SHA for each push, and I think in this instance less is more. However we can always tweak in the future, but for now let's just not regress bug 1020919 in the switch from TBPL to treeherder (porting bug 1020919 would be a blocker for switching; enhancing it a feature request for later etc).
Summary: The page title for individual revisions should include details → The page title for individual revisions should include details (port bug 1020919 to treeherder)
Updated•10 years ago
|
Priority: P3 → P2
Updated•10 years ago
|
Updated•10 years ago
|
Priority: P2 → P3
Updated•10 years ago
|
Keywords: regression
Updated•9 years ago
|
Priority: P3 → P4
Updated•9 years ago
|
No longer blocks: treeherder-dev-transition
Comment 5•9 years ago
|
||
TBPL's implementation of deriving a sensible tab title is at: https://hg.mozilla.org/webtools/tbpl/file/8aff676182f9/js/UserInterface.js#l232 The Treeherder title is set here: https://github.com/mozilla/treeherder/blob/5afdae3a9df466496dedb2022e61f4d9b4d971c0/ui/js/controllers/main.js#L24
Assignee | ||
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Comment on attachment 8626742 [details] [review] PR 683 Thank you for looking at this :-)
Attachment #8626742 -
Flags: review?(emorley) → feedback+
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8626742 [details] [review] PR 683 Think this is ready for a final review. Nesting has been reduced. The console.log calls have been removed. It fetches the commit info from the datamodel, not via page scraping. (I also fixed a thing that annoyed me where the title would show "undefined" for a bit right as the page is loading before the repo name is loaded (for both specific revisions and the general repo view).)
Attachment #8626742 -
Flags: review?(emorley)
Comment 9•9 years ago
|
||
Just as a heads up, I'm not going to be able to finish the review before next week - since it's going to take a bit longer to remind myself about the PR since it's been 3 weeks since the last review request. Will give it a spin next week and hopefully we can get it landed shortly after :-)
Assignee | ||
Comment 11•9 years ago
|
||
I went ahead and added the percent complete that was requested in bug 1188027 in this PR. Unsure what the best arrangement of the items in the title should be. It's currently "[0] 5% - Bug Title".
Comment 12•9 years ago
|
||
Comment on attachment 8626742 [details] [review] PR 683 Almost there - looking good so far :-)
Attachment #8626742 -
Flags: review?(emorley) → review-
Assignee | ||
Comment 14•8 years ago
|
||
Comment on attachment 8626742 [details] [review] PR 683 And, 10 months later, I think this is done for real. :) The first thing this PR does is make it so the page title won't display "undefined" temporarily as the page is loading (repoName takes a while to get populated, apparently). Instead, we'll just show "Treeherder" since that seems more accurate. If we're looking at a single push ("revision" is a parameter in the URL), we try to parse the top commit message from that push. We strip out things like multi-line commits (only take the first one), trychooser syntax, junk messages from mercurial queues, whitespace and punctuation. We do this for every commit in the push until we actually get something usable, at which point we break the loop. If none of the commits are usable (the only commit is trychooser syntax), we go back to just showing the repo name. We cut off the title at 70 characters so it doesn't get too long. We also return the completed percentage of jobs for the push so it can be included in the title. There's a few ways the title will show depending on what we're looking at: If we're looking at a single push and a usable commit message is found, the title will end up like this: X% - [Y] repo: Commit If we're looking at a single push and no usable commit message is found, the title will be: X% - [Y] repo If we're looking at more than a single push, the title will be: [Y] repo Where X is the percentage of jobs completed out of all jobs in the push, Y is the unstarred failure count for the entire view, "repo" is the name of the repository, and "Commit" is the parsed commit message. I've toyed with the idea of changing out "100%" completed with the word "DONE" or something, but I guess that could go to a followup if that's desired. Don't know what everyone's preference for indicating a finished push would be. (Maybe we can color the favicon differently when viewing completed pushes or something?)
Attachment #8626742 -
Flags: review- → review?(emorley)
Updated•8 years ago
|
Attachment #8626742 -
Flags: review?(emorley)
Assignee | ||
Comment 15•8 years ago
|
||
Comment on attachment 8626742 [details] [review] PR 683 Everything should have just worked the way it was, since `undefined` is falsey. Changed that return value from `false` to `[false,false]` to make it less magical, though. :)
Attachment #8626742 -
Flags: review?(emorley)
Updated•8 years ago
|
Attachment #8626742 -
Flags: review?(emorley) → review+
Comment 16•8 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/7b93f5d2030835db1895b60269e28947e181e8b2 Bug 1045602 - Port TBPL's feature to add a single revision's details to the page title (#683) * Bug 1045602 - Port TBPL's feature to add a single revision's details to the page title r=emorley
Assignee | ||
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 17•8 years ago
|
||
Wes I don't suppose you could file a bug for: 21:45 <philor> nice, the tab title for a DONTBUILD rev is NaN% - [0] :-)
Assignee | ||
Comment 18•8 years ago
|
||
(In reply to Ed Morley [:emorley] from comment #17) > Wes I don't suppose you could file a bug for: > > 21:45 <philor> nice, the tab title for a DONTBUILD rev is NaN% - [0] > > :-) I actually couldn't reproduce that when I tested last night.
Comment 19•8 years ago
|
||
Yeah, it's actually "Open a DONTBUILD rev; click 'Add new Jobs'" which is probably rare enough behavior to ignore.
Comment hidden (typo) |
Updated•8 years ago
|
Updated•8 years ago
|
Attachment #8761829 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•