{"action":"created","comment":{"url":"https://api.github.com/repos/tobami/codespeed/pulls/comments/90116777","pull_request_review_id":10641045,"id":90116777,"diff_hunk":"@@ -731,3 +739,239 @@ def add_json_results(request):\n     logger.debug(\"add_json_results: completed\")\n \n     return HttpResponse(\"All result data saved successfully\", status=202)\n+\n+\n+def django_has_content_type():\n+    return (django.VERSION[0] > 1 or\n+            (django.VERSION[0] == 1 and django.VERSION[1] >= 6))\n+\n+\n+def validate_results_request(data):","path":"codespeed/views.py","position":37,"original_position":37,"commit_id":"7affd83c9c0e9ce4c266e9b383474c165962b64e","original_commit_id":"7affd83c9c0e9ce4c266e9b383474c165962b64e","user":{"login":"tobami","id":216485,"avatar_url":"https://avatars.githubusercontent.com/u/216485?v=3","gravatar_id":"","url":"https://api.github.com/users/tobami","html_url":"https://github.com/tobami","followers_url":"https://api.github.com/users/tobami/followers","following_url":"https://api.github.com/users/tobami/following{/other_user}","gists_url":"https://api.github.com/users/tobami/gists{/gist_id}","starred_url":"https://api.github.com/users/tobami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobami/subscriptions","organizations_url":"https://api.github.com/users/tobami/orgs","repos_url":"https://api.github.com/users/tobami/repos","events_url":"https://api.github.com/users/tobami/events{/privacy}","received_events_url":"https://api.github.com/users/tobami/received_events","type":"User","site_admin":false},"body":"This function could go into a separate `validators.py` module.","created_at":"2016-11-29T21:22:22Z","updated_at":"2016-11-29T21:48:45Z","html_url":"https://github.com/tobami/codespeed/pull/209#discussion_r90116777","pull_request_url":"https://api.github.com/repos/tobami/codespeed/pulls/209","_links":{"self":{"href":"https://api.github.com/repos/tobami/codespeed/pulls/comments/90116777"},"html":{"href":"https://github.com/tobami/codespeed/pull/209#discussion_r90116777"},"pull_request":{"href":"https://api.github.com/repos/tobami/codespeed/pulls/209"}}},"pull_request":{"url":"https://api.github.com/repos/tobami/codespeed/pulls/209","id":95698249,"html_url":"https://github.com/tobami/codespeed/pull/209","diff_url":"https://github.com/tobami/codespeed/pull/209.diff","patch_url":"https://github.com/tobami/codespeed/pull/209.patch","issue_url":"https://api.github.com/repos/tobami/codespeed/issues/209","number":209,"state":"open","locked":false,"title":"Add the 'makeimage' service","user":{"login":"catalin-manciu","id":17458050,"avatar_url":"https://avatars.githubusercontent.com/u/17458050?v=3","gravatar_id":"","url":"https://api.github.com/users/catalin-manciu","html_url":"https://github.com/catalin-manciu","followers_url":"https://api.github.com/users/catalin-manciu/followers","following_url":"https://api.github.com/users/catalin-manciu/following{/other_user}","gists_url":"https://api.github.com/users/catalin-manciu/gists{/gist_id}","starred_url":"https://api.github.com/users/catalin-manciu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catalin-manciu/subscriptions","organizations_url":"https://api.github.com/users/catalin-manciu/orgs","repos_url":"https://api.github.com/users/catalin-manciu/repos","events_url":"https://api.github.com/users/catalin-manciu/events{/privacy}","received_events_url":"https://api.github.com/users/catalin-manciu/received_events","type":"User","site_admin":false},"body":"This adds a service for generating chart images based on the latest\r\nbenchmark results using the matplotlib module.\r\nThe URL for this service is /sample_project/makeimage/.\r\nThe image can be directly embedded in any HTML document using\r\n<img src=\"host_name/sample_project/makeimage/?...> or simply accessed\r\nusing the same URL.\r\n\r\nThe mandatory GET params are:\r\nenv -\tthe environment's name\r\nproj -\tthe project's name\r\nbranch -the branch's name\r\nexe -\tthe executable's name\r\nben -\tthe benchmark's name\r\nThe following params are optional:\r\nrevs -\tpositive integer, number of results the image will display.\r\n\trevs=10 is the implicit value representing that the latest 10\r\n\tresults will be displayed on the chart\r\nrelative - if '1' or 'yes', instead of displaying absolute values,\r\n\tthe first value from the series is used as a baseline and\r\n\tthe chart will display percentual increments from that baseline\r\nbase_commit - specifies a commit name to be used as a baseline instead\r\n\tof the first value of the series\r\nbase_env - the environment's name to be used for the base_commit instead\r\n\tof env\r\nbase_proj - the project's name to be used for the base_commit instead\r\n\tof proj\r\nbase_exe - the executable's name to be use for the base_commit instead of\r\n\texe","created_at":"2016-11-29T14:05:49Z","updated_at":"2016-11-29T21:48:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09337f0ad85b345db5c37d10f82e17f5c77a1840","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tobami/codespeed/pulls/209/commits","review_comments_url":"https://api.github.com/repos/tobami/codespeed/pulls/209/comments","review_comment_url":"https://api.github.com/repos/tobami/codespeed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tobami/codespeed/issues/209/comments","statuses_url":"https://api.github.com/repos/tobami/codespeed/statuses/7affd83c9c0e9ce4c266e9b383474c165962b64e","head":{"label":"catalin-manciu:image_gen_api","ref":"image_gen_api","sha":"7affd83c9c0e9ce4c266e9b383474c165962b64e","user":{"login":"catalin-manciu","id":17458050,"avatar_url":"https://avatars.githubusercontent.com/u/17458050?v=3","gravatar_id":"","url":"https://api.github.com/users/catalin-manciu","html_url":"https://github.com/catalin-manciu","followers_url":"https://api.github.com/users/catalin-manciu/followers","following_url":"https://api.github.com/users/catalin-manciu/following{/other_user}","gists_url":"https://api.github.com/users/catalin-manciu/gists{/gist_id}","starred_url":"https://api.github.com/users/catalin-manciu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catalin-manciu/subscriptions","organizations_url":"https://api.github.com/users/catalin-manciu/orgs","repos_url":"https://api.github.com/users/catalin-manciu/repos","events_url":"https://api.github.com/users/catalin-manciu/events{/privacy}","received_events_url":"https://api.github.com/users/catalin-manciu/received_events","type":"User","site_admin":false},"repo":{"id":74576563,"name":"codespeed","full_name":"catalin-manciu/codespeed","owner":{"login":"catalin-manciu","id":17458050,"avatar_url":"https://avatars.githubusercontent.com/u/17458050?v=3","gravatar_id":"","url":"https://api.github.com/users/catalin-manciu","html_url":"https://github.com/catalin-manciu","followers_url":"https://api.github.com/users/catalin-manciu/followers","following_url":"https://api.github.com/users/catalin-manciu/following{/other_user}","gists_url":"https://api.github.com/users/catalin-manciu/gists{/gist_id}","starred_url":"https://api.github.com/users/catalin-manciu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catalin-manciu/subscriptions","organizations_url":"https://api.github.com/users/catalin-manciu/orgs","repos_url":"https://api.github.com/users/catalin-manciu/repos","events_url":"https://api.github.com/users/catalin-manciu/events{/privacy}","received_events_url":"https://api.github.com/users/catalin-manciu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/catalin-manciu/codespeed","description":"A web application to monitor and analyze the performance of your code","fork":true,"url":"https://api.github.com/repos/catalin-manciu/codespeed","forks_url":"https://api.github.com/repos/catalin-manciu/codespeed/forks","keys_url":"https://api.github.com/repos/catalin-manciu/codespeed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/catalin-manciu/codespeed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/catalin-manciu/codespeed/teams","hooks_url":"https://api.github.com/repos/catalin-manciu/codespeed/hooks","issue_events_url":"https://api.github.com/repos/catalin-manciu/codespeed/issues/events{/number}","events_url":"https://api.github.com/repos/catalin-manciu/codespeed/events","assignees_url":"https://api.github.com/repos/catalin-manciu/codespeed/assignees{/user}","branches_url":"https://api.github.com/repos/catalin-manciu/codespeed/branches{/branch}","tags_url":"https://api.github.com/repos/catalin-manciu/codespeed/tags","blobs_url":"https://api.github.com/repos/catalin-manciu/codespeed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/catalin-manciu/codespeed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/catalin-manciu/codespeed/git/refs{/sha}","trees_url":"https://api.github.com/repos/catalin-manciu/codespeed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/catalin-manciu/codespeed/statuses/{sha}","languages_url":"https://api.github.com/repos/catalin-manciu/codespeed/languages","stargazers_url":"https://api.github.com/repos/catalin-manciu/codespeed/stargazers","contributors_url":"https://api.github.com/repos/catalin-manciu/codespeed/contributors","subscribers_url":"https://api.github.com/repos/catalin-manciu/codespeed/subscribers","subscription_url":"https://api.github.com/repos/catalin-manciu/codespeed/subscription","commits_url":"https://api.github.com/repos/catalin-manciu/codespeed/commits{/sha}","git_commits_url":"https://api.github.com/repos/catalin-manciu/codespeed/git/commits{/sha}","comments_url":"https://api.github.com/repos/catalin-manciu/codespeed/comments{/number}","issue_comment_url":"https://api.github.com/repos/catalin-manciu/codespeed/issues/comments{/number}","contents_url":"https://api.github.com/repos/catalin-manciu/codespeed/contents/{+path}","compare_url":"https://api.github.com/repos/catalin-manciu/codespeed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/catalin-manciu/codespeed/merges","archive_url":"https://api.github.com/repos/catalin-manciu/codespeed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/catalin-manciu/codespeed/downloads","issues_url":"https://api.github.com/repos/catalin-manciu/codespeed/issues{/number}","pulls_url":"https://api.github.com/repos/catalin-manciu/codespeed/pulls{/number}","milestones_url":"https://api.github.com/repos/catalin-manciu/codespeed/milestones{/number}","notifications_url":"https://api.github.com/repos/catalin-manciu/codespeed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/catalin-manciu/codespeed/labels{/name}","releases_url":"https://api.github.com/repos/catalin-manciu/codespeed/releases{/id}","deployments_url":"https://api.github.com/repos/catalin-manciu/codespeed/deployments","created_at":"2016-11-23T12:52:40Z","updated_at":"2016-11-23T12:52:41Z","pushed_at":"2016-11-29T14:04:22Z","git_url":"git://github.com/catalin-manciu/codespeed.git","ssh_url":"git@github.com:catalin-manciu/codespeed.git","clone_url":"https://github.com/catalin-manciu/codespeed.git","svn_url":"https://github.com/catalin-manciu/codespeed","homepage":"","size":2487,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tobami:master","ref":"master","sha":"9b7e94b951be8b28326fb30197a62336118fe09c","user":{"login":"tobami","id":216485,"avatar_url":"https://avatars.githubusercontent.com/u/216485?v=3","gravatar_id":"","url":"https://api.github.com/users/tobami","html_url":"https://github.com/tobami","followers_url":"https://api.github.com/users/tobami/followers","following_url":"https://api.github.com/users/tobami/following{/other_user}","gists_url":"https://api.github.com/users/tobami/gists{/gist_id}","starred_url":"https://api.github.com/users/tobami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobami/subscriptions","organizations_url":"https://api.github.com/users/tobami/orgs","repos_url":"https://api.github.com/users/tobami/repos","events_url":"https://api.github.com/users/tobami/events{/privacy}","received_events_url":"https://api.github.com/users/tobami/received_events","type":"User","site_admin":false},"repo":{"id":548251,"name":"codespeed","full_name":"tobami/codespeed","owner":{"login":"tobami","id":216485,"avatar_url":"https://avatars.githubusercontent.com/u/216485?v=3","gravatar_id":"","url":"https://api.github.com/users/tobami","html_url":"https://github.com/tobami","followers_url":"https://api.github.com/users/tobami/followers","following_url":"https://api.github.com/users/tobami/following{/other_user}","gists_url":"https://api.github.com/users/tobami/gists{/gist_id}","starred_url":"https://api.github.com/users/tobami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobami/subscriptions","organizations_url":"https://api.github.com/users/tobami/orgs","repos_url":"https://api.github.com/users/tobami/repos","events_url":"https://api.github.com/users/tobami/events{/privacy}","received_events_url":"https://api.github.com/users/tobami/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tobami/codespeed","description":"A web application to monitor and analyze the performance of your code","fork":false,"url":"https://api.github.com/repos/tobami/codespeed","forks_url":"https://api.github.com/repos/tobami/codespeed/forks","keys_url":"https://api.github.com/repos/tobami/codespeed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tobami/codespeed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tobami/codespeed/teams","hooks_url":"https://api.github.com/repos/tobami/codespeed/hooks","issue_events_url":"https://api.github.com/repos/tobami/codespeed/issues/events{/number}","events_url":"https://api.github.com/repos/tobami/codespeed/events","assignees_url":"https://api.github.com/repos/tobami/codespeed/assignees{/user}","branches_url":"https://api.github.com/repos/tobami/codespeed/branches{/branch}","tags_url":"https://api.github.com/repos/tobami/codespeed/tags","blobs_url":"https://api.github.com/repos/tobami/codespeed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tobami/codespeed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tobami/codespeed/git/refs{/sha}","trees_url":"https://api.github.com/repos/tobami/codespeed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tobami/codespeed/statuses/{sha}","languages_url":"https://api.github.com/repos/tobami/codespeed/languages","stargazers_url":"https://api.github.com/repos/tobami/codespeed/stargazers","contributors_url":"https://api.github.com/repos/tobami/codespeed/contributors","subscribers_url":"https://api.github.com/repos/tobami/codespeed/subscribers","subscription_url":"https://api.github.com/repos/tobami/codespeed/subscription","commits_url":"https://api.github.com/repos/tobami/codespeed/commits{/sha}","git_commits_url":"https://api.github.com/repos/tobami/codespeed/git/commits{/sha}","comments_url":"https://api.github.com/repos/tobami/codespeed/comments{/number}","issue_comment_url":"https://api.github.com/repos/tobami/codespeed/issues/comments{/number}","contents_url":"https://api.github.com/repos/tobami/codespeed/contents/{+path}","compare_url":"https://api.github.com/repos/tobami/codespeed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tobami/codespeed/merges","archive_url":"https://api.github.com/repos/tobami/codespeed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tobami/codespeed/downloads","issues_url":"https://api.github.com/repos/tobami/codespeed/issues{/number}","pulls_url":"https://api.github.com/repos/tobami/codespeed/pulls{/number}","milestones_url":"https://api.github.com/repos/tobami/codespeed/milestones{/number}","notifications_url":"https://api.github.com/repos/tobami/codespeed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tobami/codespeed/labels{/name}","releases_url":"https://api.github.com/repos/tobami/codespeed/releases{/id}","deployments_url":"https://api.github.com/repos/tobami/codespeed/deployments","created_at":"2010-03-05T10:41:56Z","updated_at":"2016-11-26T06:03:02Z","pushed_at":"2016-11-29T14:05:49Z","git_url":"git://github.com/tobami/codespeed.git","ssh_url":"git@github.com:tobami/codespeed.git","clone_url":"https://github.com/tobami/codespeed.git","svn_url":"https://github.com/tobami/codespeed","homepage":"","size":3095,"stargazers_count":364,"watchers_count":364,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":70,"mirror_url":null,"open_issues_count":44,"forks":70,"open_issues":44,"watchers":364,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tobami/codespeed/pulls/209"},"html":{"href":"https://github.com/tobami/codespeed/pull/209"},"issue":{"href":"https://api.github.com/repos/tobami/codespeed/issues/209"},"comments":{"href":"https://api.github.com/repos/tobami/codespeed/issues/209/comments"},"review_comments":{"href":"https://api.github.com/repos/tobami/codespeed/pulls/209/comments"},"review_comment":{"href":"https://api.github.com/repos/tobami/codespeed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tobami/codespeed/pulls/209/commits"},"statuses":{"href":"https://api.github.com/repos/tobami/codespeed/statuses/7affd83c9c0e9ce4c266e9b383474c165962b64e"}}}}
{"actor":{"display_login":"tobami"}}