Closed Bug 1157149 Opened 9 years ago Closed 8 years ago

The unclassified failure count in the page title should show how many are present with filters applied

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgraham, Assigned: kkrivera)

References

Details

Attachments

(2 files)

When pushing to a twig branch I often only care about a subset of jobs (yes, this is hideously inefficient; that's a separate problem). In this case I use a filter to view only the jobs I'm interested in. Therefore the count of failed jobs in the title bar isn't much use to me at all because it applies to all jobs, not just those matching the filter.
I suspect this would negatively impact sheriffs, since a common case for them might be:
* filter to a certain job type to investigate something
* forget to reset the job & switch to another tab
-> expect the pinned tab to turn blue when new unclassified failures appear

Sheriffs, could you confirm either way?

If it would impact them, perhaps this is something that we could have a toggle on the future prefs page for?
From a quick bugmail scan, I think bug 1031867 has the most pertinent discussion for this.

And yes, I'd prefer that the behavior here be non-default if it's be to made possible.
Is there something that would work for both Sheriffs and everyone else (assuming that I am close to a prototypical non-sheriff in this case, which may not be true). For example if the title became "[6/83] cedar" when a filter was applied.
I typically open filtered views into new tabs if I'm tracking something, so forgetting I'm in a filtered view doesn't happen often. I'm more inclined to agree with comment 0 ("why do n/p not do anything, tab title says there's x unclassified failures showing?")
Ryan/Wes, would having both numbers in the title be ok for you?

eg: "[6/83] cedar"

This would mean the tab title would change colour even if the change in unclassified count was relating to things not visible with the current filter (though this might be useful: if a filter is active, it reminds people that things have happened outside of it, and that they might need to deactivate the filter).
Priority: -- → P3
Summary: Title error count should reflect the current filters → The unclassified failure count in the page title should reflect the currently applied filters
Flags: needinfo?(wkocher)
Flags: needinfo?(ryanvm)
I'd be okay with that.
Flags: needinfo?(wkocher)
Worth a shot
Flags: needinfo?(ryanvm)
Summary: The unclassified failure count in the page title should reflect the currently applied filters → The unclassified failure count in the page title should show how many are present with filters applied
Blocks: 1241325
Assignee: nobody → cdawson
I have a branch I'm working on for this (filtered-unclassified-count).  I'd talked to Wes a bit about it in IRC.  We were going to have the "main" unclassified count (yellow button) reflect unclassified in the selected Tiers of jobs.  (i.e. - if you're only showing tiers 1 and 2, then Tier-3 won't count)  However, if you only select Tier-3, then the count will reflect only Tier-3, etc.

For filtering, I was going to display a second number right next to the button for that count.  Not totally decided yet.  It's still a WIP branch, however.
Status: NEW → ASSIGNED
(In reply to Ed Morley [:emorley] from comment #5)
> Ryan/Wes, would having both numbers in the title be ok for you?
> 
> eg: "[6/83] cedar"

Wouldn't work for me: we're going to have hundreds of unclassified tier-3 jobs with B2G, so title changes resulting in pinned-tab color changes will make pinning to watch for results completely useless. Showing the total number somewhere in the page, but only the filtered number in the title, seems more likely to work out.
(In reply to Phil Ringnalda (:philor) from comment #11)
> (In reply to Ed Morley [:emorley] from comment #5)
> > Ryan/Wes, would having both numbers in the title be ok for you?
> > 
> > eg: "[6/83] cedar"
> 
> Wouldn't work for me: we're going to have hundreds of unclassified tier-3
> jobs with B2G, so title changes resulting in pinned-tab color changes will
> make pinning to watch for results completely useless. Showing the total
> number somewhere in the page, but only the filtered number in the title,
> seems more likely to work out.

Ooh, I like that.
My proposal for having both in the title, was when "filters" just meant eg the quicksearch box - and not tier 3 (which didn't exist).

I agree you wouldn't want tier 3 (if not selected) showing in the title.
Comment on attachment 8712944 [details] [review]
[treeherder] mozilla:unclassified-count-by-tier > mozilla:master

This PR is really just a bug fix so that the counts respect the chosen tiers.  Showing a count that respects all other filters will be another PR.  But this one paves a nice path to getting that number too.
Attachment #8712944 - Flags: review?(emorley)
Attachment #8712944 - Flags: review?(emorley) → review+
Commit pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/16b8b7489ca905b59a2b931ba11fe62657c9cf13
Bug 1157149,1240210 - The unclassified failure count should respect selected tiers of jobs

Keep track of the count of unclassified jobs currently loaded that match the
selected Tier settings.

When an event takes place that could change that value (new jobs loaded, classified
or unclassified) then update that count again.  This uses the unclassified map like
we did before, but re-evaluates it as needed.

This also fixes a bug where the interaction of the Tier dropdown and the Filters panel
didn't interact correctly.

This same technique can be leveraged (in the future) to get a count of unclassified
for the current filter set as well.
Attachment #8799093 - Flags: review?(cdawson)
Comment on attachment 8799093 [details] [review]
[treeherder] kkrivera:Bug-1157149 > mozilla:master

Only marking this r- so far due to a couple requested changes.  Once those are fixed up, this'll be ready to merge.

Please re-r? me on this when it's ready.

Thanks again!
Attachment #8799093 - Flags: review?(cdawson) → review-
Pending PR for this bug
https://github.com/mozilla/treeherder/pull/1908
Attachment #8799093 - Flags: review- → review?(cdawson)
Attachment #8799093 - Flags: review?(cdawson) → review+
Assignee: cdawson → kkrivera
Commit pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/88766c37ab95fe5144d9273fe888db115c7e2a2e
Bug 1157149 - added a secondary count indicating the number of filtered unclassified failures (#1908)
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: