Closed Bug 1498835 Opened 6 years ago Closed 6 years ago

Tier 3 is hard to select

Categories

(Tree Management :: Treeherder: Frontend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KWierso, Assigned: camd)

References

Details

Attachments

(1 file)

Steps to reproduce:
1) Load https://treeherder.mozilla.org/#/jobs?repo=try&revision=955a7fd1a807357faa79336b16418c41541be24e
This is a try push with 36 or so tier-3 android web-platform-test jobs.
2) Open the Tiers menu.
3) Click "Tier 3" to show those tier 3 jobs. You'll see the checkbox get checked and immediately uncheck itself.
4) Click "Tier 3" again. This will have the filter bar (and the filters in the URL) show that tiers 1 and 2 are visible. The tier 3 checkbox will again get checked and immediately uncheck itself.
5) Click "Tier 3" again. This will finally check the tier 3 checkbox and it stays checked. The tier-3 android jobs will be shown. The tiers in the filter bar and the filters in the URL bar will disappear like we're back to the default tier selections, even though we aren't.
6) If you reload the page, we're back to the state we were in step 1.

This seems wrong to me.
On my phone, it only took two clicks on the "Tier 3" checkbox to get it to show the tier-3 jobs, but testing on desktop it takes three.
Flags: needinfo?(cdawson)
Whoa!  And the checkboxes for the other two tiers don't display for me, too.  Something's surely broken there.  Working on this now.
Assignee: nobody → cdawson
Status: NEW → ASSIGNED
Flags: needinfo?(cdawson)
This is an interesting bug.  It seems like this must have been here since 9/4/2018 when I re-did the filterModel.  This was a case where I wasn't properly cloning the ``defaults`` object.  We use that object to set the default state of certain filters, but also to compare the current state to see if we should remove the filter param from the URL.  So we ended up modifying the original ``defaults`` object to which we compare to see if we are in the "default" state.  Not sure that makes sense, but doing a deepClone from ``lodash`` is a simple and safe solution.
The part where the "checked" boxes don't display is a nightly bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1498921.  So I'm just fixing the functional problem.
Blocks: 1450033
Status: ASSIGNED → RESOLVED
Closed: 6 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: