{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/comments/45264708","id":45264708,"diff_hunk":"@@ -64,3 +69,18 @@ def status(request):\n     Show the status of the API\n     \"\"\"\n     return HttpResponse(json.dumps({'status': 'ok'}), content_type='application/json', status=200)\n+\n+\n+@api_view(['POST'])\n+def institution_detail(request):\n+    if not es:\n+        return HttpResponse('No connection to elastic search', status=500)\n+    query = request.data.get('query')\n+    res = es.search(index=settings.ELASTIC_INST_INDEX, body=query or {})","path":"api/webview/views.py","position":26,"original_position":26,"commit_id":"dde1da7f65a53c746f31eb030dec66d3fd99ef35","original_commit_id":"dde1da7f65a53c746f31eb030dec66d3fd99ef35","user":{"login":"fabianvf","id":2431974,"avatar_url":"https://avatars.githubusercontent.com/u/2431974?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianvf","html_url":"https://github.com/fabianvf","followers_url":"https://api.github.com/users/fabianvf/followers","following_url":"https://api.github.com/users/fabianvf/following{/other_user}","gists_url":"https://api.github.com/users/fabianvf/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianvf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianvf/subscriptions","organizations_url":"https://api.github.com/users/fabianvf/orgs","repos_url":"https://api.github.com/users/fabianvf/repos","events_url":"https://api.github.com/users/fabianvf/events{/privacy}","received_events_url":"https://api.github.com/users/fabianvf/received_events","type":"User","site_admin":false},"body":"get rid of the `or {}` (see above)","created_at":"2015-11-18T21:42:04Z","updated_at":"2015-11-18T21:42:04Z","html_url":"https://github.com/CenterForOpenScience/scrapi/pull/408#discussion_r45264708","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/408","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/comments/45264708"},"html":{"href":"https://github.com/CenterForOpenScience/scrapi/pull/408#discussion_r45264708"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/408"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/408","id":50027684,"html_url":"https://github.com/CenterForOpenScience/scrapi/pull/408","diff_url":"https://github.com/CenterForOpenScience/scrapi/pull/408.diff","patch_url":"https://github.com/CenterForOpenScience/scrapi/pull/408.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/issues/408","number":408,"state":"open","locked":false,"title":"Institutions","user":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-07T04:00:36Z","updated_at":"2015-11-18T21:42:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72931f70e419ebe1d7cee0396ad519d4d8897b9a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/408/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/408/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/issues/408/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/statuses/dde1da7f65a53c746f31eb030dec66d3fd99ef35","head":{"label":"hmoco:develop","ref":"develop","sha":"dde1da7f65a53c746f31eb030dec66d3fd99ef35","user":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"repo":{"id":45721703,"name":"scrapi","full_name":"hmoco/scrapi","owner":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hmoco/scrapi","description":"A data processing pipeline that schedules and runs content harvesters, normalizes their data, and outputs that normalized data to a variety of output streams. This is part of the SHARE project, and will be used to create a free and open dataset of research (meta)data. Data collected can be explored at https://osf.io/share/, and viewed at https://osf.io/api/v1/share/search/. Developer docs can be viewed at https://osf.io/wur56/wiki","fork":true,"url":"https://api.github.com/repos/hmoco/scrapi","forks_url":"https://api.github.com/repos/hmoco/scrapi/forks","keys_url":"https://api.github.com/repos/hmoco/scrapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmoco/scrapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmoco/scrapi/teams","hooks_url":"https://api.github.com/repos/hmoco/scrapi/hooks","issue_events_url":"https://api.github.com/repos/hmoco/scrapi/issues/events{/number}","events_url":"https://api.github.com/repos/hmoco/scrapi/events","assignees_url":"https://api.github.com/repos/hmoco/scrapi/assignees{/user}","branches_url":"https://api.github.com/repos/hmoco/scrapi/branches{/branch}","tags_url":"https://api.github.com/repos/hmoco/scrapi/tags","blobs_url":"https://api.github.com/repos/hmoco/scrapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmoco/scrapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmoco/scrapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmoco/scrapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmoco/scrapi/statuses/{sha}","languages_url":"https://api.github.com/repos/hmoco/scrapi/languages","stargazers_url":"https://api.github.com/repos/hmoco/scrapi/stargazers","contributors_url":"https://api.github.com/repos/hmoco/scrapi/contributors","subscribers_url":"https://api.github.com/repos/hmoco/scrapi/subscribers","subscription_url":"https://api.github.com/repos/hmoco/scrapi/subscription","commits_url":"https://api.github.com/repos/hmoco/scrapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmoco/scrapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmoco/scrapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmoco/scrapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmoco/scrapi/contents/{+path}","compare_url":"https://api.github.com/repos/hmoco/scrapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmoco/scrapi/merges","archive_url":"https://api.github.com/repos/hmoco/scrapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmoco/scrapi/downloads","issues_url":"https://api.github.com/repos/hmoco/scrapi/issues{/number}","pulls_url":"https://api.github.com/repos/hmoco/scrapi/pulls{/number}","milestones_url":"https://api.github.com/repos/hmoco/scrapi/milestones{/number}","notifications_url":"https://api.github.com/repos/hmoco/scrapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmoco/scrapi/labels{/name}","releases_url":"https://api.github.com/repos/hmoco/scrapi/releases{/id}","created_at":"2015-11-07T03:56:11Z","updated_at":"2015-11-07T03:56:14Z","pushed_at":"2015-11-18T20:48:38Z","git_url":"git://github.com/hmoco/scrapi.git","ssh_url":"git@github.com:hmoco/scrapi.git","clone_url":"https://github.com/hmoco/scrapi.git","svn_url":"https://github.com/hmoco/scrapi","homepage":"","size":32554,"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":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"535eb670d13cf68f4033e68704a3bd62866a24bc","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":21210102,"name":"scrapi","full_name":"CenterForOpenScience/scrapi","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/scrapi","description":"A data processing pipeline that schedules and runs content harvesters, normalizes their data, and outputs that normalized data to a variety of output streams. This is part of the SHARE project, and will be used to create a free and open dataset of research (meta)data. Data collected can be explored at https://osf.io/share/, and viewed at https://osf.io/api/v1/share/search/. Developer docs can be viewed at https://osf.io/wur56/wiki","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/scrapi","forks_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/scrapi/releases{/id}","created_at":"2014-06-25T16:21:08Z","updated_at":"2015-11-17T15:51:36Z","pushed_at":"2015-11-18T21:28:13Z","git_url":"git://github.com/CenterForOpenScience/scrapi.git","ssh_url":"git@github.com:CenterForOpenScience/scrapi.git","clone_url":"https://github.com/CenterForOpenScience/scrapi.git","svn_url":"https://github.com/CenterForOpenScience/scrapi","homepage":"","size":35180,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":34,"forks":36,"open_issues":34,"watchers":14,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/408"},"html":{"href":"https://github.com/CenterForOpenScience/scrapi/pull/408"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/scrapi/issues/408"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/scrapi/issues/408/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/408/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/scrapi/pulls/408/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/scrapi/statuses/dde1da7f65a53c746f31eb030dec66d3fd99ef35"}}}}