Closed
Bug 1321798
Opened 8 years ago
Closed 8 years ago
Rewrite autoclassification UI for better performance and maintainability
Categories
(Tree Management :: Treeherder, defect)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jgraham, Assigned: jgraham)
References
Details
Attachments
(1 file)
The current autoclassification UI is slow and buggy enough that sheriffs are reluctant to use it. At the same time, the "giant blob of code" design is hard to understand and maintain. This rewrite will focus on the following things:
* Make the get/put operations a single HTTP request rather than multiple requests (later the GET can probably be merged with the general job details endpoint request).
* Reorganise the code into a set of angular 1.5 components.
* Experiment with workflow improvements to draw attention to only the lines that require specific input, and that make it easy to verify correctness of the autoclassifier or bug suggestions in other cases.
Assignee | ||
Comment 1•8 years ago
|
||
The current version of this code is running at http://treeherder-prototype.herokuapp.com
Comment 2•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8827922 -
Flags: review?(wlachance)
Attachment #8827922 -
Flags: review?(cdawson)
Comment 3•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
Left some feedback on the PR (only on the frontend stuff). As requested, I didn't take a look at the backend.
Attachment #8827922 -
Flags: review?(wlachance)
Updated•8 years ago
|
Assignee: nobody → james
Comment 4•8 years ago
|
||
James and I are due to go over his PR when he gets back from PTO. Before we do that, though, James would you please rebase this on latest master? I'm going to clear the review flag for now. Please reassign when you get back and have it rebased.
Thanks! Looking forward to going over this with you. :)
Updated•8 years ago
|
Attachment #8827922 -
Flags: review?(cdawson)
Comment 5•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
This all looks pretty reasonable to me. Nice to have it broken up a bit into the components. I made a few comments.
Attachment #8827922 -
Flags: feedback+
Assignee | ||
Comment 6•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
Rebased onto latest master, initial comments addressed, and migrations rewritten to use raw SQL (I will try deploying on -prototype and see how it goes).
Attachment #8827922 -
Flags: review?(wlachance)
Assignee | ||
Comment 7•8 years ago
|
||
Deploy onto -prototype went pretty well I think.
Assignee | ||
Updated•8 years ago
|
Attachment #8827922 -
Flags: review?(emorley)
Comment 8•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
See PR for requested changes.
Attachment #8827922 -
Flags: review?(wlachance)
Comment 9•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
I've left the first round of review comments on the PR :-)
I'm really keen to keep this PR as small as possible (particularly given we discussed the problems of large PRs at the time of #1414 and agreed to be more strict about them in the future), so if any of the pieces of this can be split out as earlier separate PRs, that would be really helpful for us reviewing.
Attachment #8827922 -
Flags: review?(emorley)
Assignee | ||
Updated•8 years ago
|
Attachment #8827922 -
Flags: review?(wlachance)
Attachment #8827922 -
Flags: review?(emorley)
Comment 10•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
Could you rebase this on top of master first?
Attachment #8827922 -
Flags: review?(wlachance)
Comment 11•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
Pending rebase after merge of bug 1339510 / bug 1339506.
Attachment #8827922 -
Flags: review?(emorley)
Assignee | ||
Updated•8 years ago
|
Attachment #8827922 -
Flags: review?(wlachance)
Attachment #8827922 -
Flags: review?(emorley)
Comment 12•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
I've only skim read briefly this cycle (reached my saturation point now due to the size of the PR unfortunately), but the production-affecting parts (migrations/celery tasks/settings.py etc) seem ok.
Attachment #8827922 -
Flags: review?(emorley) → feedback+
Comment 13•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
Travis is failing and again this doesn't seem to be a pull request against master.
If I'm missing something and there's a specific way that you want me to look at these PR's, please let me know. But as it is I'm not sure how to review these.
Attachment #8827922 -
Flags: review?(wlachance)
Assignee | ||
Updated•8 years ago
|
Attachment #8827922 -
Flags: review?(wlachance)
Attachment #8827922 -
Flags: review?(cdawson)
Comment 14•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
I am happy for this to land as long as the nits I pointed out in the review are fixed (though of course the other parts will need to land again first).
Attachment #8827922 -
Flags: review?(wlachance) → review+
Comment 15•8 years ago
|
||
Comment on attachment 8827922 [details] [review]
[treeherder] mozilla:autoclassify_frontend_rewrite > mozilla:master
This all looks pretty reasonable. I really like the new organization. And thanks heaps for adding more comments so some of the logic is easier to follow.
Attachment #8827922 -
Flags: review?(cdawson) → review+
Comment 16•8 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/8e56de8590f9a085d2e77ba2279f243dfdbad1a5
Bug 1321798 - Rewrite the autoclassification UI (#2089)
This rewrite is intended to address the numerous problems that prevented
the old autoclassify UI from recieving wide adoption, and makes the
following changes:
* Moves the code to use angular 1.5 components, for maintainability
* Reduces the number of HTTP requests to one GET / one POST (associated
with the TextLogError objects), for performance.
* Adds the concept of a selection so that operations can be performed on
multiple lines at once
* Reorganises the panel a bit to fit better with the rest of the
treeherder UI.
* Removes the "Ignore Others" action, which, though occasionally helpful,
was based on an unreliable heuristic.
* Reduces the number of unhelpful bug suggestions displayed by default
where there are many, and ensures that the most plausible suggestions
are shown first.
* Adds keybindings for all operations, so that it is possible to use the
autoclassify panel without touching the mouse.
* Adds basic heuristics for which option to select by default.
Blocks: 1347454
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•