Open Bug 1072940 Opened 10 years ago Updated 10 months ago

Remove failure classification of "not classified"

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: RyanVM, Unassigned)

Details

Attachments

(1 file)

Priority: P2 → P3
Priority: P3 → P4
Given bug 1146491 and this bug, should we just get rid of "not classified" as a classification option? I've never used it in the three years of using Treeherder.
Flags: needinfo?(emorley)
Yeah let's remove it :-)
Flags: needinfo?(emorley)
Component: Treeherder → Treeherder: Log Parsing & Classification
Mentor: cdawson
Keywords: good-first-bug
Priority: P4 → P3
Summary: Annotating a failure with the "not classified" option doesn't star the job → Remove failure classification of "not classified"
Whiteboard: py
Whiteboard: py → [lang=py]
Flags: needinfo?(ryanvm) → needinfo?(emorley)
There are more places that need adjusting:
https://github.com/mozilla/treeherder/search?utf8=%E2%9C%93&q=%22not+classified%22&type=
Flags: needinfo?(emorley)
Hi Can I work on this? if no one else is doing it.
Can you please review the patch?
Flags: needinfo?(ryanvm)
Just as before, no. Redirecting to Ed like last time.
Flags: needinfo?(ryanvm) → needinfo?(emorley)
For mentored bugs, if the PR is ready for review, ask for review from the mentor via the "details" link on the attachment above :-)

(For non-mentored bugs, use the "suggested reviewers" feature inside the "details" section)
Flags: needinfo?(emorley)
(In reply to Farhan from comment #7)
> Hi Can I work on this? if no one else is doing it.

Generally if the bug has recent activity from someone else (such as the open PR in this bug from only 10 days ago), then it is being worked on by someone, so you'll be best off looking at another bug.
Assignee: nobody → dyex719
Status: NEW → ASSIGNED
Attachment #8920163 - Flags: review?(emorley)
Comment on attachment 8920163 [details] [review]
[treeherder] Dyex719:Dyex719-patch-2 > mozilla:master

Cameron is mentoring this bug (see the "Mentor" field and the inline bug change history)
Attachment #8920163 - Flags: review?(emorley) → review?(cdawson)
After taking a look at the PR, this is not going to be as simple as removing "not classified" from the list of possible classifications.  We COULD do that, but I'm leaning against it.

If we remove "not classified" from the possible failure classifications, we'll need an expensive migration.  The ``job.failure_classification_id`` field in the DB is "Not Null" so we can't use the value of "Null" for "not classified" without changing the schema.

So our two options would be:

1. Change the schema to allow nulls on ``job.failure_classification``.  Do an update query to modify all the values of "1" in that field to be null.  Then modify the UI to leave the field null on ingestion and only set it when we classify.

2. Leave the schema as-is and just don't allow the user to choose "not classified" as an option when classifying.  

I think we should take approach 2 for a few reasons:

1. We wouldn't have to do an expensive db migration and change all the back-end code.
2. The changes would be only on the front-end and remove the workflow option of "classifying" a job as "not classified".  Instead, you'd just delete the classification and it would go back to the value of "1" being "not classified"
3. The existing filtering for "Unstarred Only" relies on a failure_classification_id of "1" and the filter code would be more complicated to look for null.  Not that bad, but a hassle.

So, let's go that way.  Just remove it as an option in the pinboard dropdown select for the classification when the user goes to classify a job and be done with it.

Here's where we populate that select: https://github.com/mozilla/treeherder/blob/51dc3cc938234c441c6b95a9715ac0daf5f03f9c/ui/partials/main/thPinboardPanel.html#L47-L49

You might create a separate ``$scope`` array that's used for that list which omits the "not classified" option.
Comment on attachment 8920163 [details] [review]
[treeherder] Dyex719:Dyex719-patch-2 > mozilla:master

Please see comment above on the approach I'd rather we take on this.  Thanks for your work on this!  :)
Attachment #8920163 - Flags: review?(cdawson) → review-
Unassigning for inactivity. If you'd still like to work on it, let us know :-)
Assignee: dyex719 → nobody
Status: ASSIGNED → NEW
Can I be assigned this if no one is working on this?
Hi I wanted to work on this bug if no one has assigned this bug.

Hi, can I take this up? Can someone please guide me on how/where to get started on this?

Hi , Can I work on this bug now? Please also guide me how to proceed with this.

What should I do to fix this issue? Please provide the details.
I would like to fix it.

@camd
We can add the $scope here https://github.com/mozilla/treeherder/blob/master/ui/job-view/App.jsx#L98
and do the required filtering.
Shall I go on to proceed to solve this issue this way?

Component: Treeherder: Log Parsing & Classification → TreeHerder

Hello. I would like to work on it. How can I get started?

Flags: needinfo?(ryanvm)

Hello Venkatesh, Cam is gone from here and this not a good bug for people new to Treeherder (see comment 13).

Flags: needinfo?(ryanvm)
Keywords: good-first-bug
Whiteboard: [lang=py]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: