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)

enhancement

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.
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 → ---
Component: Treeherder → Treeherder: Job Triggering & Cancellation
Assignee: nobody → tojonmz
Status: NEW → ASSIGNED
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 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 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 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
Thanks Jon!
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Attachment #8939039 - Flags: review?(cdawson) → review+
Depends on: 1435023
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.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Sorry I had to revert this for causing bug 1435023.
I have a prelim fix for the revert that may work. I'll open a separate PR for it.
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)
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.
Attachment #8947640 - Flags: review?(cdawson)
10-4, sounds good.
(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)
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)
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
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.
Priority: P2 → P3
Component: Treeherder: Job Triggering & Cancellation → TreeHerder
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: