{"action":"created","comment":{"url":"https://api.github.com/repos/greencommons/commons/pulls/comments/137640690","pull_request_review_id":61335190,"id":137640690,"diff_hunk":"@@ -25,13 +25,9 @@\n         | Tags\n         span.filters__clear= link_to 'Clear', root_path, class: 'gray-light pull-right'\n     .tags-list\n-      = link_to '#urban sustainability (245)', root_path, class: 'tags-list__tag'\n-      = link_to '#solar energy (148)', root_path, class: 'tags-list__tag'\n-      = link_to '#wind (136)', root_path, class: 'tags-list__tag tags-list__tag--selected'\n-      = link_to '#ocean (136)', root_path, class: 'tags-list__tag tags-list__tag--selected'\n-      = link_to '#solar energy (148)', root_path, class: 'tags-list__tag'\n-      = link_to '#solar (148)', root_path, class: 'tags-list__tag'\n-      .clearfix\n+      - ActsAsTaggableOn::Tag.most_used(10).each do |tag|","path":"app/views/search/_filters.html.slim","position":11,"original_position":11,"commit_id":"e1321263b54e7c6a5114a4f542e822845154606a","original_commit_id":"e1321263b54e7c6a5114a4f542e822845154606a","user":{"login":"nsanta","id":15721,"avatar_url":"https://avatars0.githubusercontent.com/u/15721?v=4","gravatar_id":"","url":"https://api.github.com/users/nsanta","html_url":"https://github.com/nsanta","followers_url":"https://api.github.com/users/nsanta/followers","following_url":"https://api.github.com/users/nsanta/following{/other_user}","gists_url":"https://api.github.com/users/nsanta/gists{/gist_id}","starred_url":"https://api.github.com/users/nsanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsanta/subscriptions","organizations_url":"https://api.github.com/users/nsanta/orgs","repos_url":"https://api.github.com/users/nsanta/repos","events_url":"https://api.github.com/users/nsanta/events{/privacy}","received_events_url":"https://api.github.com/users/nsanta/received_events","type":"User","site_admin":false},"body":"Can we move `ActsAsTaggableOn::Tag.most_used(10)` to the controller. \r\nReason: Any complex (even simple hehe) logic should be on the view.","created_at":"2017-09-07T19:59:04Z","updated_at":"2017-09-07T19:59:04Z","html_url":"https://github.com/greencommons/commons/pull/248#discussion_r137640690","pull_request_url":"https://api.github.com/repos/greencommons/commons/pulls/248","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/greencommons/commons/pulls/comments/137640690"},"html":{"href":"https://github.com/greencommons/commons/pull/248#discussion_r137640690"},"pull_request":{"href":"https://api.github.com/repos/greencommons/commons/pulls/248"}}},"pull_request":{"url":"https://api.github.com/repos/greencommons/commons/pulls/248","id":138487528,"html_url":"https://github.com/greencommons/commons/pull/248","diff_url":"https://github.com/greencommons/commons/pull/248.diff","patch_url":"https://github.com/greencommons/commons/pull/248.patch","issue_url":"https://api.github.com/repos/greencommons/commons/issues/248","number":248,"state":"open","locked":false,"title":"Search by tags","user":{"login":"T-Dnzt","id":2647689,"avatar_url":"https://avatars2.githubusercontent.com/u/2647689?v=4","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":"[Trello Task](https://trello.com/c/tOUulYpo/114-green-commons-enable-searching-by-tag-only)\r\n\r\n# Reason for change\r\n\r\nCurrently, tags are not used in the search process. This needs to be altered in order to have tags as primary matchers.\r\n\r\n# Changes\r\n\r\n- Include tags in the search process\r\n- Update the list of tags in the search filters sidebar\r\n","created_at":"2017-08-30T17:44:19Z","updated_at":"2017-09-07T19:59:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88408b7730a9f159a8c5f0f832eb60ab7092fe25","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/greencommons/commons/pulls/248/commits","review_comments_url":"https://api.github.com/repos/greencommons/commons/pulls/248/comments","review_comment_url":"https://api.github.com/repos/greencommons/commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/greencommons/commons/issues/248/comments","statuses_url":"https://api.github.com/repos/greencommons/commons/statuses/e1321263b54e7c6a5114a4f542e822845154606a","head":{"label":"greencommons:td-searching-by-tag","ref":"td-searching-by-tag","sha":"e1321263b54e7c6a5114a4f542e822845154606a","user":{"login":"greencommons","id":18314434,"avatar_url":"https://avatars1.githubusercontent.com/u/18314434?v=4","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://avatars1.githubusercontent.com/u/18314434?v=4","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-09-07T19:44:51Z","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":3539,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":59,"forks":1,"open_issues":59,"watchers":2,"default_branch":"master"}},"base":{"label":"greencommons:master","ref":"master","sha":"0f69e13aeb890fbba894a743a3cfbd26ae79049f","user":{"login":"greencommons","id":18314434,"avatar_url":"https://avatars1.githubusercontent.com/u/18314434?v=4","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://avatars1.githubusercontent.com/u/18314434?v=4","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-09-07T19:44:51Z","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":3539,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":59,"forks":1,"open_issues":59,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/greencommons/commons/pulls/248"},"html":{"href":"https://github.com/greencommons/commons/pull/248"},"issue":{"href":"https://api.github.com/repos/greencommons/commons/issues/248"},"comments":{"href":"https://api.github.com/repos/greencommons/commons/issues/248/comments"},"review_comments":{"href":"https://api.github.com/repos/greencommons/commons/pulls/248/comments"},"review_comment":{"href":"https://api.github.com/repos/greencommons/commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/greencommons/commons/pulls/248/commits"},"statuses":{"href":"https://api.github.com/repos/greencommons/commons/statuses/e1321263b54e7c6a5114a4f542e822845154606a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"nsanta"}}