{"action":"created","comment":{"url":"https://api.github.com/repos/NatLibFi/Annif/pulls/comments/143468245","pull_request_review_id":67983369,"id":143468245,"diff_hunk":"@@ -54,9 +55,24 @@ def listprojects():\n \n     REST equivalent: GET /projects/\n     \"\"\"\n-    projs = es.search(index=INDEX_NAME)['hits']\n-    print(projs)\n-    pass\n+\n+    doc = {\n+            'size': 1000,\n+            'query': {\n+                'match_all': {}\n+                }\n+            }\n+    results = es.search(index=annif.config['INDEX_NAME'], doc_type='project',\n+            body=doc)\n+    projects = [x['_source'] for x in results['hits']['hits']]\n+    for p in projects:\n+        print(p)\n+\n+    print(projects)\n+    report = cat.indices()  # This queries different indices and returns","path":"annif/annif.py","position":34,"original_position":34,"commit_id":"84433aa99fc7e4de036f8403433ad825d11edd68","original_commit_id":"84433aa99fc7e4de036f8403433ad825d11edd68","user":{"login":"tvirolai","id":8817150,"avatar_url":"https://avatars3.githubusercontent.com/u/8817150?v=4","gravatar_id":"","url":"https://api.github.com/users/tvirolai","html_url":"https://github.com/tvirolai","followers_url":"https://api.github.com/users/tvirolai/followers","following_url":"https://api.github.com/users/tvirolai/following{/other_user}","gists_url":"https://api.github.com/users/tvirolai/gists{/gist_id}","starred_url":"https://api.github.com/users/tvirolai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvirolai/subscriptions","organizations_url":"https://api.github.com/users/tvirolai/orgs","repos_url":"https://api.github.com/users/tvirolai/repos","events_url":"https://api.github.com/users/tvirolai/events{/privacy}","received_events_url":"https://api.github.com/users/tvirolai/received_events","type":"User","site_admin":false},"body":"Not really, same thing applies here. I'll do another commit to remove these before merging.","created_at":"2017-10-09T13:32:18Z","updated_at":"2017-10-09T13:32:18Z","html_url":"https://github.com/NatLibFi/Annif/pull/25#discussion_r143468245","pull_request_url":"https://api.github.com/repos/NatLibFi/Annif/pulls/25","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/NatLibFi/Annif/pulls/comments/143468245"},"html":{"href":"https://github.com/NatLibFi/Annif/pull/25#discussion_r143468245"},"pull_request":{"href":"https://api.github.com/repos/NatLibFi/Annif/pulls/25"}},"in_reply_to_id":143464834},"pull_request":{"url":"https://api.github.com/repos/NatLibFi/Annif/pulls/25","id":145449499,"html_url":"https://github.com/NatLibFi/Annif/pull/25","diff_url":"https://github.com/NatLibFi/Annif/pull/25.diff","patch_url":"https://github.com/NatLibFi/Annif/pull/25.patch","issue_url":"https://api.github.com/repos/NatLibFi/Annif/issues/25","number":25,"state":"open","locked":false,"title":"Issue3","user":{"login":"tvirolai","id":8817150,"avatar_url":"https://avatars3.githubusercontent.com/u/8817150?v=4","gravatar_id":"","url":"https://api.github.com/users/tvirolai","html_url":"https://github.com/tvirolai","followers_url":"https://api.github.com/users/tvirolai/followers","following_url":"https://api.github.com/users/tvirolai/following{/other_user}","gists_url":"https://api.github.com/users/tvirolai/gists{/gist_id}","starred_url":"https://api.github.com/users/tvirolai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvirolai/subscriptions","organizations_url":"https://api.github.com/users/tvirolai/orgs","repos_url":"https://api.github.com/users/tvirolai/repos","events_url":"https://api.github.com/users/tvirolai/events{/privacy}","received_events_url":"https://api.github.com/users/tvirolai/received_events","type":"User","site_admin":false},"body":"Basic implementation for create-project and drop-project.","created_at":"2017-10-09T13:11:55Z","updated_at":"2017-10-09T13:32:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d80d3bc2d4c8afdc11b1ccfd8eba13ad452da8a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/NatLibFi/Annif/pulls/25/commits","review_comments_url":"https://api.github.com/repos/NatLibFi/Annif/pulls/25/comments","review_comment_url":"https://api.github.com/repos/NatLibFi/Annif/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NatLibFi/Annif/issues/25/comments","statuses_url":"https://api.github.com/repos/NatLibFi/Annif/statuses/84433aa99fc7e4de036f8403433ad825d11edd68","head":{"label":"NatLibFi:issue3","ref":"issue3","sha":"84433aa99fc7e4de036f8403433ad825d11edd68","user":{"login":"NatLibFi","id":7656207,"avatar_url":"https://avatars2.githubusercontent.com/u/7656207?v=4","gravatar_id":"","url":"https://api.github.com/users/NatLibFi","html_url":"https://github.com/NatLibFi","followers_url":"https://api.github.com/users/NatLibFi/followers","following_url":"https://api.github.com/users/NatLibFi/following{/other_user}","gists_url":"https://api.github.com/users/NatLibFi/gists{/gist_id}","starred_url":"https://api.github.com/users/NatLibFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NatLibFi/subscriptions","organizations_url":"https://api.github.com/users/NatLibFi/orgs","repos_url":"https://api.github.com/users/NatLibFi/repos","events_url":"https://api.github.com/users/NatLibFi/events{/privacy}","received_events_url":"https://api.github.com/users/NatLibFi/received_events","type":"Organization","site_admin":false},"repo":{"id":100936800,"name":"Annif","full_name":"NatLibFi/Annif","owner":{"login":"NatLibFi","id":7656207,"avatar_url":"https://avatars2.githubusercontent.com/u/7656207?v=4","gravatar_id":"","url":"https://api.github.com/users/NatLibFi","html_url":"https://github.com/NatLibFi","followers_url":"https://api.github.com/users/NatLibFi/followers","following_url":"https://api.github.com/users/NatLibFi/following{/other_user}","gists_url":"https://api.github.com/users/NatLibFi/gists{/gist_id}","starred_url":"https://api.github.com/users/NatLibFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NatLibFi/subscriptions","organizations_url":"https://api.github.com/users/NatLibFi/orgs","repos_url":"https://api.github.com/users/NatLibFi/repos","events_url":"https://api.github.com/users/NatLibFi/events{/privacy}","received_events_url":"https://api.github.com/users/NatLibFi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NatLibFi/Annif","description":"Annif is a statistical automated indexing tool for libraries, archives and museums. This repository is used for developing a production version of the system, based on ideas from the initial prototype.","fork":false,"url":"https://api.github.com/repos/NatLibFi/Annif","forks_url":"https://api.github.com/repos/NatLibFi/Annif/forks","keys_url":"https://api.github.com/repos/NatLibFi/Annif/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NatLibFi/Annif/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NatLibFi/Annif/teams","hooks_url":"https://api.github.com/repos/NatLibFi/Annif/hooks","issue_events_url":"https://api.github.com/repos/NatLibFi/Annif/issues/events{/number}","events_url":"https://api.github.com/repos/NatLibFi/Annif/events","assignees_url":"https://api.github.com/repos/NatLibFi/Annif/assignees{/user}","branches_url":"https://api.github.com/repos/NatLibFi/Annif/branches{/branch}","tags_url":"https://api.github.com/repos/NatLibFi/Annif/tags","blobs_url":"https://api.github.com/repos/NatLibFi/Annif/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NatLibFi/Annif/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NatLibFi/Annif/git/refs{/sha}","trees_url":"https://api.github.com/repos/NatLibFi/Annif/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NatLibFi/Annif/statuses/{sha}","languages_url":"https://api.github.com/repos/NatLibFi/Annif/languages","stargazers_url":"https://api.github.com/repos/NatLibFi/Annif/stargazers","contributors_url":"https://api.github.com/repos/NatLibFi/Annif/contributors","subscribers_url":"https://api.github.com/repos/NatLibFi/Annif/subscribers","subscription_url":"https://api.github.com/repos/NatLibFi/Annif/subscription","commits_url":"https://api.github.com/repos/NatLibFi/Annif/commits{/sha}","git_commits_url":"https://api.github.com/repos/NatLibFi/Annif/git/commits{/sha}","comments_url":"https://api.github.com/repos/NatLibFi/Annif/comments{/number}","issue_comment_url":"https://api.github.com/repos/NatLibFi/Annif/issues/comments{/number}","contents_url":"https://api.github.com/repos/NatLibFi/Annif/contents/{+path}","compare_url":"https://api.github.com/repos/NatLibFi/Annif/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NatLibFi/Annif/merges","archive_url":"https://api.github.com/repos/NatLibFi/Annif/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NatLibFi/Annif/downloads","issues_url":"https://api.github.com/repos/NatLibFi/Annif/issues{/number}","pulls_url":"https://api.github.com/repos/NatLibFi/Annif/pulls{/number}","milestones_url":"https://api.github.com/repos/NatLibFi/Annif/milestones{/number}","notifications_url":"https://api.github.com/repos/NatLibFi/Annif/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NatLibFi/Annif/labels{/name}","releases_url":"https://api.github.com/repos/NatLibFi/Annif/releases{/id}","deployments_url":"https://api.github.com/repos/NatLibFi/Annif/deployments","created_at":"2017-08-21T09:36:52Z","updated_at":"2017-10-05T09:12:56Z","pushed_at":"2017-10-09T13:11:56Z","git_url":"git://github.com/NatLibFi/Annif.git","ssh_url":"git@github.com:NatLibFi/Annif.git","clone_url":"https://github.com/NatLibFi/Annif.git","svn_url":"https://github.com/NatLibFi/Annif","homepage":"http://annif.org","size":62,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":0,"default_branch":"master"}},"base":{"label":"NatLibFi:master","ref":"master","sha":"c233805f21cd9574de2e08d1474fe7b99156bf41","user":{"login":"NatLibFi","id":7656207,"avatar_url":"https://avatars2.githubusercontent.com/u/7656207?v=4","gravatar_id":"","url":"https://api.github.com/users/NatLibFi","html_url":"https://github.com/NatLibFi","followers_url":"https://api.github.com/users/NatLibFi/followers","following_url":"https://api.github.com/users/NatLibFi/following{/other_user}","gists_url":"https://api.github.com/users/NatLibFi/gists{/gist_id}","starred_url":"https://api.github.com/users/NatLibFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NatLibFi/subscriptions","organizations_url":"https://api.github.com/users/NatLibFi/orgs","repos_url":"https://api.github.com/users/NatLibFi/repos","events_url":"https://api.github.com/users/NatLibFi/events{/privacy}","received_events_url":"https://api.github.com/users/NatLibFi/received_events","type":"Organization","site_admin":false},"repo":{"id":100936800,"name":"Annif","full_name":"NatLibFi/Annif","owner":{"login":"NatLibFi","id":7656207,"avatar_url":"https://avatars2.githubusercontent.com/u/7656207?v=4","gravatar_id":"","url":"https://api.github.com/users/NatLibFi","html_url":"https://github.com/NatLibFi","followers_url":"https://api.github.com/users/NatLibFi/followers","following_url":"https://api.github.com/users/NatLibFi/following{/other_user}","gists_url":"https://api.github.com/users/NatLibFi/gists{/gist_id}","starred_url":"https://api.github.com/users/NatLibFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NatLibFi/subscriptions","organizations_url":"https://api.github.com/users/NatLibFi/orgs","repos_url":"https://api.github.com/users/NatLibFi/repos","events_url":"https://api.github.com/users/NatLibFi/events{/privacy}","received_events_url":"https://api.github.com/users/NatLibFi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NatLibFi/Annif","description":"Annif is a statistical automated indexing tool for libraries, archives and museums. This repository is used for developing a production version of the system, based on ideas from the initial prototype.","fork":false,"url":"https://api.github.com/repos/NatLibFi/Annif","forks_url":"https://api.github.com/repos/NatLibFi/Annif/forks","keys_url":"https://api.github.com/repos/NatLibFi/Annif/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NatLibFi/Annif/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NatLibFi/Annif/teams","hooks_url":"https://api.github.com/repos/NatLibFi/Annif/hooks","issue_events_url":"https://api.github.com/repos/NatLibFi/Annif/issues/events{/number}","events_url":"https://api.github.com/repos/NatLibFi/Annif/events","assignees_url":"https://api.github.com/repos/NatLibFi/Annif/assignees{/user}","branches_url":"https://api.github.com/repos/NatLibFi/Annif/branches{/branch}","tags_url":"https://api.github.com/repos/NatLibFi/Annif/tags","blobs_url":"https://api.github.com/repos/NatLibFi/Annif/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NatLibFi/Annif/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NatLibFi/Annif/git/refs{/sha}","trees_url":"https://api.github.com/repos/NatLibFi/Annif/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NatLibFi/Annif/statuses/{sha}","languages_url":"https://api.github.com/repos/NatLibFi/Annif/languages","stargazers_url":"https://api.github.com/repos/NatLibFi/Annif/stargazers","contributors_url":"https://api.github.com/repos/NatLibFi/Annif/contributors","subscribers_url":"https://api.github.com/repos/NatLibFi/Annif/subscribers","subscription_url":"https://api.github.com/repos/NatLibFi/Annif/subscription","commits_url":"https://api.github.com/repos/NatLibFi/Annif/commits{/sha}","git_commits_url":"https://api.github.com/repos/NatLibFi/Annif/git/commits{/sha}","comments_url":"https://api.github.com/repos/NatLibFi/Annif/comments{/number}","issue_comment_url":"https://api.github.com/repos/NatLibFi/Annif/issues/comments{/number}","contents_url":"https://api.github.com/repos/NatLibFi/Annif/contents/{+path}","compare_url":"https://api.github.com/repos/NatLibFi/Annif/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NatLibFi/Annif/merges","archive_url":"https://api.github.com/repos/NatLibFi/Annif/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NatLibFi/Annif/downloads","issues_url":"https://api.github.com/repos/NatLibFi/Annif/issues{/number}","pulls_url":"https://api.github.com/repos/NatLibFi/Annif/pulls{/number}","milestones_url":"https://api.github.com/repos/NatLibFi/Annif/milestones{/number}","notifications_url":"https://api.github.com/repos/NatLibFi/Annif/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NatLibFi/Annif/labels{/name}","releases_url":"https://api.github.com/repos/NatLibFi/Annif/releases{/id}","deployments_url":"https://api.github.com/repos/NatLibFi/Annif/deployments","created_at":"2017-08-21T09:36:52Z","updated_at":"2017-10-05T09:12:56Z","pushed_at":"2017-10-09T13:11:56Z","git_url":"git://github.com/NatLibFi/Annif.git","ssh_url":"git@github.com:NatLibFi/Annif.git","clone_url":"https://github.com/NatLibFi/Annif.git","svn_url":"https://github.com/NatLibFi/Annif","homepage":"http://annif.org","size":62,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NatLibFi/Annif/pulls/25"},"html":{"href":"https://github.com/NatLibFi/Annif/pull/25"},"issue":{"href":"https://api.github.com/repos/NatLibFi/Annif/issues/25"},"comments":{"href":"https://api.github.com/repos/NatLibFi/Annif/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/NatLibFi/Annif/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/NatLibFi/Annif/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NatLibFi/Annif/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/NatLibFi/Annif/statuses/84433aa99fc7e4de036f8403433ad825d11edd68"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"tvirolai"}}