Closed Bug 1137675 Opened 11 years ago Closed 11 years ago

Unable to unclassify a classified job

Categories

(Tree Management :: Treeherder: API, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mailme.rakeshg, Assigned: mailme.rakeshg)

References

Details

Attachments

(1 file)

54 bytes, text/x-github-pull-request
camd
: review+
Details | Review
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 Build ID: 20150224133805 Steps to reproduce: I ) Classify and unclassify a job , it won't be displayed in "only classified mode" II) On page relaod, unclassified job shows up in "only classified mode" Actual results: Unclassfying a classified job makes it visible in "only classified mode" This is fixed in Bug 1113396. https://bugzilla.mozilla.org/show_bug.cgi?id=1113396 Now on reloading page, the above unclassified job shows up in "only classified mode". Expected results: Job failure classification should be assigned "1" to make it unclassified job. This is fixed in Bug 1113396. In the backend, while deleting classification, job classification is assigned a value "null" which doesn't make it an unclassified job. https://github.com/mozilla/treeherder-service/blob/master/treeherder/webapp/api/note.py#L73 so, on reloading page, it shows up in "only classified mode" which displays jobs which are not classified ( since it is marked as "not an unclassified job"). https://github.com/mozilla/treeherder-service/blob/master/treeherder/webapp/api/note.py#L73
Blocks: 1137425, 1113396
Summary: unclassified jobs displayed in only " classified mode " on page reload → Unable to unclassify a classified job
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file patch
Attachment #8571474 - Flags: review?(cdawson)
Attachment #8571474 - Flags: feedback?(wlachance)
Comment on attachment 8571474 [details] [review] patch Leaving as a ? to I remember to merge it. But looks good once you fix up the commit message.
Attachment #8571474 - Flags: review?(cdawson) → review+
Comment on attachment 8571474 [details] [review] patch Actually not sure of the sql syntax myself, but if it's good enough for Cam, it's good enough for me.
Attachment #8571474 - Flags: feedback?(wlachance)
Assignee: nobody → mailme.rakeshg
Status: NEW → RESOLVED
Closed: 11 years ago
Priority: -- → P2
Resolution: --- → FIXED
No longer blocks: 1137425
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: