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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgraham, Assigned: jgraham)

References

Details

Attachments

(3 files)

No description provided.
Attachment #8763562 - Flags: review?(emorley)
Blocks: 1211414
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+
Assignee: nobody → james
No longer blocks: 1280907
Blocks: 1281044
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
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 → ---
Flags: needinfo?(james)
Attachment #8764204 - Flags: review?(emorley)
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+
Blocks: 1281180
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
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Blocks: 1285923
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: