Closed
Bug 1511282
Opened 6 years ago
Closed 5 years ago
Bugfiler throws some uncaught js errors
Categories
(Tree Management :: Treeherder: Frontend, enhancement)
Tree Management
Treeherder: Frontend
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: KWierso, Assigned: KWierso)
Details
Attachments
(1 file)
The bugfiler throws a couple jr errors that don't get caught anywhere: Upon opening the bugfiler for a test failure that doesn't get mozbuild metadata automatically (happens more and more often these days, see bug 1354791), if you click the "Find Product" button without entering any search terms, an error will be thrown because `firstRequest.data is undefined` (error gets obscured on production, something like `r is undefined` iirc). Second, upon opening the bugfiler for a test failure that doesn't get mozbuild metadata automatically, if you click the "Submit Bug" button with no product selected, a js error will be thrown (`_this$state2 is undefined`), and you won't see the TH notify() saying you need to select a product before submitting the bug, as it won't trigger the notification because of that error. First problem's easy to fix, just make sure firstRequest.data is defined before trying to do more work with it. Second problem is more confusing to me. I think there's some race condition where not all of the parts of this.state have been defined at the point where the submitFiler() function is triggered. I'm not entirely sure what can be done about that. Maybe I can instead disable the Submit button until a product is selected (and add a tooltip to the disabled Submit button explaining that)? That might be easier than re-working the whole thing to make sure everything's in place before we try to submit the bug without the product selected. Thoughts, Cam?
Flags: needinfo?(cdawson)
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Comment on attachment 9028873 [details] [review] Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/4330 This seems to fix the immediate problems for me, though I'd really prefer a better solution to the submit button's brokenness. I just don't know react well enough to do that without some hand holding. :)
Attachment #9028873 -
Flags: review?(cdawson)
Comment 3•5 years ago
|
||
Comment on attachment 9028873 [details] [review] Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/4330 Just asking for a couple small changes.
Flags: needinfo?(cdawson)
Attachment #9028873 -
Flags: review?(cdawson) → review-
Assignee | ||
Comment 4•5 years ago
|
||
Comment on attachment 9028873 [details] [review] Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/4330 Comments addressed. Thanks for looking at this!
Attachment #9028873 -
Flags: review- → review?(cdawson)
Updated•5 years ago
|
Attachment #9028873 -
Flags: review?(cdawson) → review+
Comment 5•5 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/7f320cb93ff01676d4d2d9ec89b875e2ca438d79 Bug 1511282 - Catch some errors in the bugfiler so it doesn't break in some cases (#4330)
Updated•5 years ago
|
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•