{"action":"opened","number":106,"pull_request":{"url":"https://api.github.com/repos/greencommons/commons/pulls/106","id":101530631,"html_url":"https://github.com/greencommons/commons/pull/106","diff_url":"https://github.com/greencommons/commons/pull/106.diff","patch_url":"https://github.com/greencommons/commons/pull/106.patch","issue_url":"https://api.github.com/repos/greencommons/commons/issues/106","number":106,"state":"open","locked":false,"title":"Setup ES indices for Groups and Lists","user":{"login":"T-Dnzt","id":2647689,"avatar_url":"https://avatars.githubusercontent.com/u/2647689?v=3","gravatar_id":"","url":"https://api.github.com/users/T-Dnzt","html_url":"https://github.com/T-Dnzt","followers_url":"https://api.github.com/users/T-Dnzt/followers","following_url":"https://api.github.com/users/T-Dnzt/following{/other_user}","gists_url":"https://api.github.com/users/T-Dnzt/gists{/gist_id}","starred_url":"https://api.github.com/users/T-Dnzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T-Dnzt/subscriptions","organizations_url":"https://api.github.com/users/T-Dnzt/orgs","repos_url":"https://api.github.com/users/T-Dnzt/repos","events_url":"https://api.github.com/users/T-Dnzt/events{/privacy}","received_events_url":"https://api.github.com/users/T-Dnzt/received_events","type":"User","site_admin":false},"body":"Related issue: #98 \r\n\r\n> Taking the search term entered and searching across Group, Resource, and List to begin with. The search page should return a list of all items combined together.\r\n\r\nThis pull request turns `Group` and `List` into models indexed with ElasticSearch. The logic was extracted from the `Resource` model and moved into a concern (`Indexable`) for easy reuse. \r\n\r\nNew rake tasks were also added to reset/create the indices for the new models (with a fallback if the `Model.import` method fails). \r\n\r\nFinally, the tests checking if a model is correctly indexed on `create` / `delete` were moved into a shared example and included in each of the models mentioned above.","created_at":"2017-01-13T22:46:10Z","updated_at":"2017-01-13T22:46:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/greencommons/commons/pulls/106/commits","review_comments_url":"https://api.github.com/repos/greencommons/commons/pulls/106/comments","review_comment_url":"https://api.github.com/repos/greencommons/commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/greencommons/commons/issues/106/comments","statuses_url":"https://api.github.com/repos/greencommons/commons/statuses/215c7abf20e2b963f01bfb3385b04470e2571ea8","head":{"label":"greencommons:df-index-all-entities","ref":"df-index-all-entities","sha":"215c7abf20e2b963f01bfb3385b04470e2571ea8","user":{"login":"greencommons","id":18314434,"avatar_url":"https://avatars.githubusercontent.com/u/18314434?v=3","gravatar_id":"","url":"https://api.github.com/users/greencommons","html_url":"https://github.com/greencommons","followers_url":"https://api.github.com/users/greencommons/followers","following_url":"https://api.github.com/users/greencommons/following{/other_user}","gists_url":"https://api.github.com/users/greencommons/gists{/gist_id}","starred_url":"https://api.github.com/users/greencommons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greencommons/subscriptions","organizations_url":"https://api.github.com/users/greencommons/orgs","repos_url":"https://api.github.com/users/greencommons/repos","events_url":"https://api.github.com/users/greencommons/events{/privacy}","received_events_url":"https://api.github.com/users/greencommons/received_events","type":"Organization","site_admin":false},"repo":{"id":69374875,"name":"commons","full_name":"greencommons/commons","owner":{"login":"greencommons","id":18314434,"avatar_url":"https://avatars.githubusercontent.com/u/18314434?v=3","gravatar_id":"","url":"https://api.github.com/users/greencommons","html_url":"https://github.com/greencommons","followers_url":"https://api.github.com/users/greencommons/followers","following_url":"https://api.github.com/users/greencommons/following{/other_user}","gists_url":"https://api.github.com/users/greencommons/gists{/gist_id}","starred_url":"https://api.github.com/users/greencommons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greencommons/subscriptions","organizations_url":"https://api.github.com/users/greencommons/orgs","repos_url":"https://api.github.com/users/greencommons/repos","events_url":"https://api.github.com/users/greencommons/events{/privacy}","received_events_url":"https://api.github.com/users/greencommons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/greencommons/commons","description":null,"fork":false,"url":"https://api.github.com/repos/greencommons/commons","forks_url":"https://api.github.com/repos/greencommons/commons/forks","keys_url":"https://api.github.com/repos/greencommons/commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/greencommons/commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/greencommons/commons/teams","hooks_url":"https://api.github.com/repos/greencommons/commons/hooks","issue_events_url":"https://api.github.com/repos/greencommons/commons/issues/events{/number}","events_url":"https://api.github.com/repos/greencommons/commons/events","assignees_url":"https://api.github.com/repos/greencommons/commons/assignees{/user}","branches_url":"https://api.github.com/repos/greencommons/commons/branches{/branch}","tags_url":"https://api.github.com/repos/greencommons/commons/tags","blobs_url":"https://api.github.com/repos/greencommons/commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/greencommons/commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/greencommons/commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/greencommons/commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/greencommons/commons/statuses/{sha}","languages_url":"https://api.github.com/repos/greencommons/commons/languages","stargazers_url":"https://api.github.com/repos/greencommons/commons/stargazers","contributors_url":"https://api.github.com/repos/greencommons/commons/contributors","subscribers_url":"https://api.github.com/repos/greencommons/commons/subscribers","subscription_url":"https://api.github.com/repos/greencommons/commons/subscription","commits_url":"https://api.github.com/repos/greencommons/commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/greencommons/commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/greencommons/commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/greencommons/commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/greencommons/commons/contents/{+path}","compare_url":"https://api.github.com/repos/greencommons/commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/greencommons/commons/merges","archive_url":"https://api.github.com/repos/greencommons/commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/greencommons/commons/downloads","issues_url":"https://api.github.com/repos/greencommons/commons/issues{/number}","pulls_url":"https://api.github.com/repos/greencommons/commons/pulls{/number}","milestones_url":"https://api.github.com/repos/greencommons/commons/milestones{/number}","notifications_url":"https://api.github.com/repos/greencommons/commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/greencommons/commons/labels{/name}","releases_url":"https://api.github.com/repos/greencommons/commons/releases{/id}","deployments_url":"https://api.github.com/repos/greencommons/commons/deployments","created_at":"2016-09-27T16:07:48Z","updated_at":"2016-12-02T22:59:42Z","pushed_at":"2017-01-13T22:43:32Z","git_url":"git://github.com/greencommons/commons.git","ssh_url":"git@github.com:greencommons/commons.git","clone_url":"https://github.com/greencommons/commons.git","svn_url":"https://github.com/greencommons/commons","homepage":"http://greencommons.herokuapp.com","size":532,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":13,"forks":1,"open_issues":13,"watchers":2,"default_branch":"master"}},"base":{"label":"greencommons:master","ref":"master","sha":"ae603e2949e743d917367f732f513c71b8f559b3","user":{"login":"greencommons","id":18314434,"avatar_url":"https://avatars.githubusercontent.com/u/18314434?v=3","gravatar_id":"","url":"https://api.github.com/users/greencommons","html_url":"https://github.com/greencommons","followers_url":"https://api.github.com/users/greencommons/followers","following_url":"https://api.github.com/users/greencommons/following{/other_user}","gists_url":"https://api.github.com/users/greencommons/gists{/gist_id}","starred_url":"https://api.github.com/users/greencommons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greencommons/subscriptions","organizations_url":"https://api.github.com/users/greencommons/orgs","repos_url":"https://api.github.com/users/greencommons/repos","events_url":"https://api.github.com/users/greencommons/events{/privacy}","received_events_url":"https://api.github.com/users/greencommons/received_events","type":"Organization","site_admin":false},"repo":{"id":69374875,"name":"commons","full_name":"greencommons/commons","owner":{"login":"greencommons","id":18314434,"avatar_url":"https://avatars.githubusercontent.com/u/18314434?v=3","gravatar_id":"","url":"https://api.github.com/users/greencommons","html_url":"https://github.com/greencommons","followers_url":"https://api.github.com/users/greencommons/followers","following_url":"https://api.github.com/users/greencommons/following{/other_user}","gists_url":"https://api.github.com/users/greencommons/gists{/gist_id}","starred_url":"https://api.github.com/users/greencommons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greencommons/subscriptions","organizations_url":"https://api.github.com/users/greencommons/orgs","repos_url":"https://api.github.com/users/greencommons/repos","events_url":"https://api.github.com/users/greencommons/events{/privacy}","received_events_url":"https://api.github.com/users/greencommons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/greencommons/commons","description":null,"fork":false,"url":"https://api.github.com/repos/greencommons/commons","forks_url":"https://api.github.com/repos/greencommons/commons/forks","keys_url":"https://api.github.com/repos/greencommons/commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/greencommons/commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/greencommons/commons/teams","hooks_url":"https://api.github.com/repos/greencommons/commons/hooks","issue_events_url":"https://api.github.com/repos/greencommons/commons/issues/events{/number}","events_url":"https://api.github.com/repos/greencommons/commons/events","assignees_url":"https://api.github.com/repos/greencommons/commons/assignees{/user}","branches_url":"https://api.github.com/repos/greencommons/commons/branches{/branch}","tags_url":"https://api.github.com/repos/greencommons/commons/tags","blobs_url":"https://api.github.com/repos/greencommons/commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/greencommons/commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/greencommons/commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/greencommons/commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/greencommons/commons/statuses/{sha}","languages_url":"https://api.github.com/repos/greencommons/commons/languages","stargazers_url":"https://api.github.com/repos/greencommons/commons/stargazers","contributors_url":"https://api.github.com/repos/greencommons/commons/contributors","subscribers_url":"https://api.github.com/repos/greencommons/commons/subscribers","subscription_url":"https://api.github.com/repos/greencommons/commons/subscription","commits_url":"https://api.github.com/repos/greencommons/commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/greencommons/commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/greencommons/commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/greencommons/commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/greencommons/commons/contents/{+path}","compare_url":"https://api.github.com/repos/greencommons/commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/greencommons/commons/merges","archive_url":"https://api.github.com/repos/greencommons/commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/greencommons/commons/downloads","issues_url":"https://api.github.com/repos/greencommons/commons/issues{/number}","pulls_url":"https://api.github.com/repos/greencommons/commons/pulls{/number}","milestones_url":"https://api.github.com/repos/greencommons/commons/milestones{/number}","notifications_url":"https://api.github.com/repos/greencommons/commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/greencommons/commons/labels{/name}","releases_url":"https://api.github.com/repos/greencommons/commons/releases{/id}","deployments_url":"https://api.github.com/repos/greencommons/commons/deployments","created_at":"2016-09-27T16:07:48Z","updated_at":"2016-12-02T22:59:42Z","pushed_at":"2017-01-13T22:43:32Z","git_url":"git://github.com/greencommons/commons.git","ssh_url":"git@github.com:greencommons/commons.git","clone_url":"https://github.com/greencommons/commons.git","svn_url":"https://github.com/greencommons/commons","homepage":"http://greencommons.herokuapp.com","size":532,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":13,"forks":1,"open_issues":13,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/greencommons/commons/pulls/106"},"html":{"href":"https://github.com/greencommons/commons/pull/106"},"issue":{"href":"https://api.github.com/repos/greencommons/commons/issues/106"},"comments":{"href":"https://api.github.com/repos/greencommons/commons/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/greencommons/commons/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/greencommons/commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/greencommons/commons/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/greencommons/commons/statuses/215c7abf20e2b963f01bfb3385b04470e2571ea8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":111,"deletions":40,"changed_files":10}}
{"actor":{"display_login":"T-Dnzt"}}