Open
Bug 1401518
Opened 7 years ago
Updated 3 years ago
Running "Add new jobs" without a decision task doesn't revert menu entry
Categories
(Tree Management :: Treeherder, enhancement, P3)
Tree Management
Treeherder
Tracking
(Not tracked)
REOPENED
People
(Reporter: whimboo, Unassigned)
References
Details
Attachments
(3 files, 1 obsolete file)
If you select "Add new jobs" while the build doesn't have a decision task yet, a warning is printed. But it also changes the menu entry to "Hide runnable jobs", which is wrong. Instead it should keep "Add new jobs" until there is actually something to display, and nothing errors out.
Comment 1•7 years ago
|
||
This is actually a Treeherder bug. Just a simple mistake in the UI. Should be easy to fix.
Component: Scheduler → Treeherder
Priority: -- → P2
Product: Taskcluster → Tree Management
Version: unspecified → ---
Updated•7 years ago
|
Component: Treeherder → Treeherder: Job Triggering & Cancellation
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Assignee: nobody → tojonmz
Status: NEW → ASSIGNED
Comment 3•7 years ago
|
||
Comment on attachment 8939039 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3077
For review at your leisure :) It seems to be working ok in local testing.
Attachment #8939039 -
Flags: review?(cdawson)
Comment 4•7 years ago
|
||
Comment on attachment 8939039 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3077
Just a couple nits, but worth fixing as we move forward with es6 syntax. Thanks!
Attachment #8939039 -
Flags: review?(cdawson) → review-
Comment 5•7 years ago
|
||
Comment on attachment 8939039 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3077
Ok, tweakage done :)
Attachment #8939039 -
Flags: review- → review?(cdawson)
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment on attachment 8945529 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3169
Bugzilla PR Linker linked this because I happened to mention the bug number in the commit, but it really isn't related. So marking this 'obsolete' to not confuse things.
Attachment #8945529 -
Attachment is obsolete: true
Comment 8•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/d41c3181737a6fc3aa9b8863cae70e7f21b3c189
Bug 1401518 - Make Add new jobs menu require a decision task
Comment 9•7 years ago
|
||
Thanks Jon!
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Attachment #8939039 -
Flags: review?(cdawson) → review+
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/8e4c7db6c50e0f1432d6c79d039a178b511b7d8d
Revert "Bug 1401518 - Make Add new jobs menu require a decision task" (#3186)
This reverts commit d41c3181737a6fc3aa9b8863cae70e7f21b3c189.
Updated•7 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 12•7 years ago
|
||
Sorry I had to revert this for causing bug 1435023.
Comment 13•7 years ago
|
||
I have a prelim fix for the revert that may work. I'll open a separate PR for it.
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
Comment on attachment 8947640 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3187
This is a prelim WIP PR with a console print I still need to change. The tweak appears to quiet the new Angular 1.6 'Possibly unhandled rejection' errors to the console. The other change, appears to reduce the hits on the retrieve endpoint from 21 to 2 on initial page load, in my local instance. However I fear we'd still end up with lots of retrieve endpoint hits on prod, so I am somewhat unconvinced this is a solution.
Attachment #8947640 -
Flags: review?(cdawson)
Comment 16•7 years ago
|
||
I have a PR that should be landing somewhat soon that will change this code from angular to React. Could we table this PR until then, since the approach and logic will change a bit?
Nevertheless, I think we should make sure that this check for whether the menu item is enabled and what the tooltip should be needs to not make an API call to the server. So that might need a new function on ``resultsets_store.js`` or elsewhere to examine the decision task and just see if it exists and any characteristics that we can glean from it to determine the state of that menu item. Otherwise we're making API calls for some people that won't even be clicking that menu.
I hope to have Bug 1401518 landed within a week or so and then this will MOSTLY be React code. I'd be happy to chat on Vidyo and give you a primer on how that code will work. But I think you'll find it much less confusing than AngularJS is, tbh. Things are much more encapsulated.
Clearing the review for now.
Updated•7 years ago
|
Attachment #8947640 -
Flags: review?(cdawson)
Comment 17•7 years ago
|
||
10-4, sounds good.
Comment 18•7 years ago
|
||
(In reply to Cameron Dawson [:camd] from comment #16)
> I hope to have Bug 1401518 landed within a week or so and then this will
> MOSTLY be React code.
I noticed the bug number above is referencing this bug, rather than the one being landed :) This bug has languished a bit. If you want me to close my completed PR and someone can Reactify my changes in a new PR, or something, let me know.
Flags: needinfo?(cdawson)
Comment 19•7 years ago
|
||
Rats. Sorry about my wrong bug number. I meant to reference bug 1434677. The new React code has landed now.
Yeah, we can probably close that PR. I can do that. If you're still up for doing this, you may give it a shot. I find the React code MUCH more straightforward, tbh. I'd be happy to help coach you on it, if you like. Otherwise we could wait for someone else to address this.
This change would now happen in /ui/job-view/PushActionMenu.jsx.
Flags: needinfo?(cdawson)
Comment 20•7 years ago
|
||
For now I'll unassign myself then, feel free to harvest any logic out of my old PR. It has all the various workflows and corresponding tooltip dialogues covered.
Assignee: tojonmz → nobody
Comment 21•6 years ago
|
||
I can confirm this still happens. I think this fix should be accompanied by a notification that you need a decision task to add new jobs.
Updated•6 years ago
|
Priority: P2 → P3
Assignee | ||
Updated•3 years ago
|
Component: Treeherder: Job Triggering & Cancellation → TreeHerder
You need to log in
before you can comment on or make changes to this bug.
Description
•