Closed Bug 1507808 Opened 6 years ago Closed 6 years ago

Bug suggestions always reloaded for specific job

Categories

(Tree Management :: Treeherder: Frontend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aryx, Assigned: camd)

References

Details

Attachments

(1 file)

Flags: needinfo?(cdawson)
This bug got filed before this bug report and would be a suggestion: bug 1507658 - related?
Thanks for the info. I can reproduce locally. Working on a solution.
Assignee: nobody → cdawson
Status: NEW → ASSIGNED
Flags: needinfo?(cdawson)
From the PR: This was happening because the specific job in question was the newest job on that page. And we poll for any jobs modified >= the timestamp of the latest job. So each poll, that job was always returned. That's not a problem, except that in ``DetailsPanel`` we were checking if we should reload the details panel by object (``oldjob !== newjob``) instead of the values that we care about. This fixes it so that we just check the things that would change in the job: ``state``, ``result``, ``failure_classification_id``. So the details will only reload if any of those fields change, which is the correct thing to do.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Blocks: 1492273
Depends on: 1510240
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: