{"action":"created","comment":{"url":"https://api.github.com/repos/Wikidata/SQID/pulls/comments/67338104","id":67338104,"diff_hunk":"@@ -62,6 +62,17 @@ angular.module('util').factory('wikidataapi', ['util', '$q', function(util, $q)\n \t\t});\n \t};\n \n+\tvar searchEntities = function(str, lang='en') {\n+\t\tvar url = 'https://www.wikidata.org/w/api.php?action=wbsearchentities&format=json&language=en&uselang=' + lang + '&type=item&continue=0&search=' + str + '&callback=JSON_CALLBACK';\n+\t\treturn util.jsonpRequest(url).then(function(response){\n+\t\t\tif (!response.search){\n+\t\t\t\tconsole.log(\"response was empty\");","path":"src/app/util/wikidataapi.service.js","position":8,"original_position":8,"commit_id":"cbd83b0df664731d6fcab88f1d9015a3a9bd79c0","original_commit_id":"cbd83b0df664731d6fcab88f1d9015a3a9bd79c0","user":{"login":"mkroetzsch","id":110881,"avatar_url":"https://avatars.githubusercontent.com/u/110881?v=3","gravatar_id":"","url":"https://api.github.com/users/mkroetzsch","html_url":"https://github.com/mkroetzsch","followers_url":"https://api.github.com/users/mkroetzsch/followers","following_url":"https://api.github.com/users/mkroetzsch/following{/other_user}","gists_url":"https://api.github.com/users/mkroetzsch/gists{/gist_id}","starred_url":"https://api.github.com/users/mkroetzsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkroetzsch/subscriptions","organizations_url":"https://api.github.com/users/mkroetzsch/orgs","repos_url":"https://api.github.com/users/mkroetzsch/repos","events_url":"https://api.github.com/users/mkroetzsch/events{/privacy}","received_events_url":"https://api.github.com/users/mkroetzsch/received_events","type":"User","site_admin":false},"body":"What's the point in logging this? Maybe a leftover from debugging?","created_at":"2016-06-16T12:51:57Z","updated_at":"2016-06-16T12:51:57Z","html_url":"https://github.com/Wikidata/SQID/pull/86#discussion_r67338104","pull_request_url":"https://api.github.com/repos/Wikidata/SQID/pulls/86","_links":{"self":{"href":"https://api.github.com/repos/Wikidata/SQID/pulls/comments/67338104"},"html":{"href":"https://github.com/Wikidata/SQID/pull/86#discussion_r67338104"},"pull_request":{"href":"https://api.github.com/repos/Wikidata/SQID/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/Wikidata/SQID/pulls/86","id":73933483,"html_url":"https://github.com/Wikidata/SQID/pull/86","diff_url":"https://github.com/Wikidata/SQID/pull/86.diff","patch_url":"https://github.com/Wikidata/SQID/pull/86.patch","issue_url":"https://api.github.com/repos/Wikidata/SQID/issues/86","number":86,"state":"open","locked":false,"title":"Search field","user":{"login":"guenthermi","id":6599259,"avatar_url":"https://avatars.githubusercontent.com/u/6599259?v=3","gravatar_id":"","url":"https://api.github.com/users/guenthermi","html_url":"https://github.com/guenthermi","followers_url":"https://api.github.com/users/guenthermi/followers","following_url":"https://api.github.com/users/guenthermi/following{/other_user}","gists_url":"https://api.github.com/users/guenthermi/gists{/gist_id}","starred_url":"https://api.github.com/users/guenthermi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guenthermi/subscriptions","organizations_url":"https://api.github.com/users/guenthermi/orgs","repos_url":"https://api.github.com/users/guenthermi/repos","events_url":"https://api.github.com/users/guenthermi/events{/privacy}","received_events_url":"https://api.github.com/users/guenthermi/received_events","type":"User","site_admin":false},"body":"This adds a search field to the headline of the page to find arbitrary Wikidata Items. #37","created_at":"2016-06-15T15:31:49Z","updated_at":"2016-06-16T12:51:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bc6df452e48d1eea4406af7714db7e7fb4c464a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikidata/SQID/pulls/86/commits","review_comments_url":"https://api.github.com/repos/Wikidata/SQID/pulls/86/comments","review_comment_url":"https://api.github.com/repos/Wikidata/SQID/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikidata/SQID/issues/86/comments","statuses_url":"https://api.github.com/repos/Wikidata/SQID/statuses/cbd83b0df664731d6fcab88f1d9015a3a9bd79c0","head":{"label":"Wikidata:searchField","ref":"searchField","sha":"cbd83b0df664731d6fcab88f1d9015a3a9bd79c0","user":{"login":"Wikidata","id":2691628,"avatar_url":"https://avatars.githubusercontent.com/u/2691628?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikidata","html_url":"https://github.com/Wikidata","followers_url":"https://api.github.com/users/Wikidata/followers","following_url":"https://api.github.com/users/Wikidata/following{/other_user}","gists_url":"https://api.github.com/users/Wikidata/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikidata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikidata/subscriptions","organizations_url":"https://api.github.com/users/Wikidata/orgs","repos_url":"https://api.github.com/users/Wikidata/repos","events_url":"https://api.github.com/users/Wikidata/events{/privacy}","received_events_url":"https://api.github.com/users/Wikidata/received_events","type":"Organization","site_admin":false},"repo":{"id":51021617,"name":"SQID","full_name":"Wikidata/SQID","owner":{"login":"Wikidata","id":2691628,"avatar_url":"https://avatars.githubusercontent.com/u/2691628?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikidata","html_url":"https://github.com/Wikidata","followers_url":"https://api.github.com/users/Wikidata/followers","following_url":"https://api.github.com/users/Wikidata/following{/other_user}","gists_url":"https://api.github.com/users/Wikidata/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikidata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikidata/subscriptions","organizations_url":"https://api.github.com/users/Wikidata/orgs","repos_url":"https://api.github.com/users/Wikidata/repos","events_url":"https://api.github.com/users/Wikidata/events{/privacy}","received_events_url":"https://api.github.com/users/Wikidata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikidata/SQID","description":"A tool to analyse, browse and query Wikidata","fork":false,"url":"https://api.github.com/repos/Wikidata/SQID","forks_url":"https://api.github.com/repos/Wikidata/SQID/forks","keys_url":"https://api.github.com/repos/Wikidata/SQID/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikidata/SQID/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikidata/SQID/teams","hooks_url":"https://api.github.com/repos/Wikidata/SQID/hooks","issue_events_url":"https://api.github.com/repos/Wikidata/SQID/issues/events{/number}","events_url":"https://api.github.com/repos/Wikidata/SQID/events","assignees_url":"https://api.github.com/repos/Wikidata/SQID/assignees{/user}","branches_url":"https://api.github.com/repos/Wikidata/SQID/branches{/branch}","tags_url":"https://api.github.com/repos/Wikidata/SQID/tags","blobs_url":"https://api.github.com/repos/Wikidata/SQID/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikidata/SQID/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikidata/SQID/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikidata/SQID/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikidata/SQID/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikidata/SQID/languages","stargazers_url":"https://api.github.com/repos/Wikidata/SQID/stargazers","contributors_url":"https://api.github.com/repos/Wikidata/SQID/contributors","subscribers_url":"https://api.github.com/repos/Wikidata/SQID/subscribers","subscription_url":"https://api.github.com/repos/Wikidata/SQID/subscription","commits_url":"https://api.github.com/repos/Wikidata/SQID/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikidata/SQID/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikidata/SQID/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikidata/SQID/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikidata/SQID/contents/{+path}","compare_url":"https://api.github.com/repos/Wikidata/SQID/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikidata/SQID/merges","archive_url":"https://api.github.com/repos/Wikidata/SQID/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikidata/SQID/downloads","issues_url":"https://api.github.com/repos/Wikidata/SQID/issues{/number}","pulls_url":"https://api.github.com/repos/Wikidata/SQID/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikidata/SQID/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikidata/SQID/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikidata/SQID/labels{/name}","releases_url":"https://api.github.com/repos/Wikidata/SQID/releases{/id}","deployments_url":"https://api.github.com/repos/Wikidata/SQID/deployments","created_at":"2016-02-03T18:39:37Z","updated_at":"2016-06-15T04:35:30Z","pushed_at":"2016-06-16T08:35:10Z","git_url":"git://github.com/Wikidata/SQID.git","ssh_url":"git@github.com:Wikidata/SQID.git","clone_url":"https://github.com/Wikidata/SQID.git","svn_url":"https://github.com/Wikidata/SQID","homepage":"http://tools.wmflabs.org/sqid/","size":43999,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":23,"forks":3,"open_issues":23,"watchers":12,"default_branch":"master"}},"base":{"label":"Wikidata:master","ref":"master","sha":"0eda631a3ad3d3f3c59f790a1a548329b52077f3","user":{"login":"Wikidata","id":2691628,"avatar_url":"https://avatars.githubusercontent.com/u/2691628?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikidata","html_url":"https://github.com/Wikidata","followers_url":"https://api.github.com/users/Wikidata/followers","following_url":"https://api.github.com/users/Wikidata/following{/other_user}","gists_url":"https://api.github.com/users/Wikidata/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikidata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikidata/subscriptions","organizations_url":"https://api.github.com/users/Wikidata/orgs","repos_url":"https://api.github.com/users/Wikidata/repos","events_url":"https://api.github.com/users/Wikidata/events{/privacy}","received_events_url":"https://api.github.com/users/Wikidata/received_events","type":"Organization","site_admin":false},"repo":{"id":51021617,"name":"SQID","full_name":"Wikidata/SQID","owner":{"login":"Wikidata","id":2691628,"avatar_url":"https://avatars.githubusercontent.com/u/2691628?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikidata","html_url":"https://github.com/Wikidata","followers_url":"https://api.github.com/users/Wikidata/followers","following_url":"https://api.github.com/users/Wikidata/following{/other_user}","gists_url":"https://api.github.com/users/Wikidata/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikidata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikidata/subscriptions","organizations_url":"https://api.github.com/users/Wikidata/orgs","repos_url":"https://api.github.com/users/Wikidata/repos","events_url":"https://api.github.com/users/Wikidata/events{/privacy}","received_events_url":"https://api.github.com/users/Wikidata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikidata/SQID","description":"A tool to analyse, browse and query Wikidata","fork":false,"url":"https://api.github.com/repos/Wikidata/SQID","forks_url":"https://api.github.com/repos/Wikidata/SQID/forks","keys_url":"https://api.github.com/repos/Wikidata/SQID/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikidata/SQID/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikidata/SQID/teams","hooks_url":"https://api.github.com/repos/Wikidata/SQID/hooks","issue_events_url":"https://api.github.com/repos/Wikidata/SQID/issues/events{/number}","events_url":"https://api.github.com/repos/Wikidata/SQID/events","assignees_url":"https://api.github.com/repos/Wikidata/SQID/assignees{/user}","branches_url":"https://api.github.com/repos/Wikidata/SQID/branches{/branch}","tags_url":"https://api.github.com/repos/Wikidata/SQID/tags","blobs_url":"https://api.github.com/repos/Wikidata/SQID/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikidata/SQID/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikidata/SQID/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikidata/SQID/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikidata/SQID/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikidata/SQID/languages","stargazers_url":"https://api.github.com/repos/Wikidata/SQID/stargazers","contributors_url":"https://api.github.com/repos/Wikidata/SQID/contributors","subscribers_url":"https://api.github.com/repos/Wikidata/SQID/subscribers","subscription_url":"https://api.github.com/repos/Wikidata/SQID/subscription","commits_url":"https://api.github.com/repos/Wikidata/SQID/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikidata/SQID/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikidata/SQID/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikidata/SQID/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikidata/SQID/contents/{+path}","compare_url":"https://api.github.com/repos/Wikidata/SQID/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikidata/SQID/merges","archive_url":"https://api.github.com/repos/Wikidata/SQID/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikidata/SQID/downloads","issues_url":"https://api.github.com/repos/Wikidata/SQID/issues{/number}","pulls_url":"https://api.github.com/repos/Wikidata/SQID/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikidata/SQID/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikidata/SQID/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikidata/SQID/labels{/name}","releases_url":"https://api.github.com/repos/Wikidata/SQID/releases{/id}","deployments_url":"https://api.github.com/repos/Wikidata/SQID/deployments","created_at":"2016-02-03T18:39:37Z","updated_at":"2016-06-15T04:35:30Z","pushed_at":"2016-06-16T08:35:10Z","git_url":"git://github.com/Wikidata/SQID.git","ssh_url":"git@github.com:Wikidata/SQID.git","clone_url":"https://github.com/Wikidata/SQID.git","svn_url":"https://github.com/Wikidata/SQID","homepage":"http://tools.wmflabs.org/sqid/","size":43999,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":23,"forks":3,"open_issues":23,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikidata/SQID/pulls/86"},"html":{"href":"https://github.com/Wikidata/SQID/pull/86"},"issue":{"href":"https://api.github.com/repos/Wikidata/SQID/issues/86"},"comments":{"href":"https://api.github.com/repos/Wikidata/SQID/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikidata/SQID/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikidata/SQID/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikidata/SQID/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/Wikidata/SQID/statuses/cbd83b0df664731d6fcab88f1d9015a3a9bd79c0"}}}}
{"actor":{"display_login":"mkroetzsch"}}