Closed
Bug 1280910
Opened 9 years ago
Closed 9 years ago
Stop using HTTP API for looking up bug suggestions
Categories
(Tree Management :: Treeherder: Data Ingestion, defect)
Tree Management
Treeherder: Data Ingestion
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jgraham, Assigned: jgraham)
References
Details
Attachments
(3 files)
No description provided.
Comment 1•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8763562 -
Flags: review?(emorley)
Comment 3•9 years ago
|
||
Comment on attachment 8763562 [details] [review]
[treeherder] mozilla:bug_suggestions_no_http > mozilla:master
I had a branch for this locally, just hadn't gotten as far as opening a PR for it on Saturday after filing bug 1280761.
Looks good :-)
Attachment #8763562 -
Flags: review?(emorley) → review+
Updated•9 years ago
|
Assignee: nobody → james
Comment 4•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/78bd30bb3b5b0e4c3a7fc40f102d809133b7b051
Bug 1280910 - Don't use HTTP API when looking up bug suggestions (#1605)
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 5•9 years ago
|
||
Ah so this is unfortunately causing:
https://rpm.newrelic.com/accounts/677903/applications/14179733/traced_errors/e6f381-e32093fa-3804-11e6-bd66-b82a72d22a14
exceptions:TypeError: datetime.datetime(2016, 6, 21, 8, 54, 16) is not JSON serializable
This appears to be because `model_to_dict()` is triggering Django's lazy fetching of fields not specified in the queryset (perhaps model_to_dict just doesn't play nicely with RawQuerySets too?), and so we're getting the `modified` field from the table (in addition to `status`), when neither were present in the original dict.
Perhaps we should just switch back to the original mapping function?
Status: RESOLVED → REOPENED
Flags: needinfo?(james)
Resolution: FIXED → ---
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(james)
Attachment #8764204 -
Flags: review?(emorley)
Comment 8•9 years ago
|
||
Comment on attachment 8764204 [details] [review]
[treeherder] mozilla:bugscache_fixup > mozilla:master
r+ with the SELECT statement change or else excluding `status` as well.
Attachment #8764204 -
Flags: review?(emorley) → review+
Comment 9•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/bc5c163b1d45c0494bc67fcae16e411826c8fbf1
Bug 1280910 - Don't return modified field for bug suggestions. (#1609)
This is not trivially JSON serializable and is not used, so just
exclude it
Updated•9 years ago
|
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•