{"action":"created","comment":{"url":"https://api.github.com/repos/mysociety/remit/pulls/comments/53621259","id":53621259,"diff_hunk":"@@ -10,16 +10,18 @@\n         <dl class=\"dl-horizontal\">\n             <dt>Study details</dt>\n             <dd>\n-                <a href=\"/search?methodology=cohort%20study\"><%= study.study_type.name %></a>\n+                <%= link_to study.study_type.name, search_path(study_type: study.study_type.name.downcase) %>","path":"app/views/shared/_list_of_things.html.erb","position":5,"original_position":5,"commit_id":"fa1a7acd084eb21743d817dbd12f644794692a34","original_commit_id":"fa1a7acd084eb21743d817dbd12f644794692a34","user":{"login":"stevenday","id":663700,"avatar_url":"https://avatars.githubusercontent.com/u/663700?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenday","html_url":"https://github.com/stevenday","followers_url":"https://api.github.com/users/stevenday/followers","following_url":"https://api.github.com/users/stevenday/following{/other_user}","gists_url":"https://api.github.com/users/stevenday/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenday/subscriptions","organizations_url":"https://api.github.com/users/stevenday/orgs","repos_url":"https://api.github.com/users/stevenday/repos","events_url":"https://api.github.com/users/stevenday/events{/privacy}","received_events_url":"https://api.github.com/users/stevenday/received_events","type":"User","site_admin":false},"body":"Since the search SQL does down-casing anyway, I think it would be nicer to leave this in the original capitalisation, for when we set titles from it and suchlike","created_at":"2016-02-22T13:04:58Z","updated_at":"2016-02-22T13:04:58Z","html_url":"https://github.com/mysociety/remit/pull/119#discussion_r53621259","pull_request_url":"https://api.github.com/repos/mysociety/remit/pulls/119","_links":{"self":{"href":"https://api.github.com/repos/mysociety/remit/pulls/comments/53621259"},"html":{"href":"https://github.com/mysociety/remit/pull/119#discussion_r53621259"},"pull_request":{"href":"https://api.github.com/repos/mysociety/remit/pulls/119"}}},"pull_request":{"url":"https://api.github.com/repos/mysociety/remit/pulls/119","id":60156662,"html_url":"https://github.com/mysociety/remit/pull/119","diff_url":"https://github.com/mysociety/remit/pull/119.diff","patch_url":"https://github.com/mysociety/remit/pull/119.patch","issue_url":"https://api.github.com/repos/mysociety/remit/issues/119","number":119,"state":"open","locked":false,"title":"Dashboard Searching/Filtering","user":{"login":"davea","id":4776,"avatar_url":"https://avatars.githubusercontent.com/u/4776?v=3","gravatar_id":"","url":"https://api.github.com/users/davea","html_url":"https://github.com/davea","followers_url":"https://api.github.com/users/davea/followers","following_url":"https://api.github.com/users/davea/following{/other_user}","gists_url":"https://api.github.com/users/davea/gists{/gist_id}","starred_url":"https://api.github.com/users/davea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davea/subscriptions","organizations_url":"https://api.github.com/users/davea/orgs","repos_url":"https://api.github.com/users/davea/repos","events_url":"https://api.github.com/users/davea/events{/privacy}","received_events_url":"https://api.github.com/users/davea/received_events","type":"User","site_admin":false},"body":"This PR:\r\n\r\n - Wires up the ordering dropdown and filters on the right-hand side of study lists (e.g. homepage, search page, user study dashboard)\r\n - Allows the search field in the header to be used for searching by PI name, study title, country or topic\r\n - Also generates proper links to search page in study detail header and search result entries\r\n\r\nFor #1","created_at":"2016-02-22T11:05:53Z","updated_at":"2016-02-22T13:04:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"721a7d89c9ffbc17473dc5d6e01da6e604e39a1b","assignee":{"login":"stevenday","id":663700,"avatar_url":"https://avatars.githubusercontent.com/u/663700?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenday","html_url":"https://github.com/stevenday","followers_url":"https://api.github.com/users/stevenday/followers","following_url":"https://api.github.com/users/stevenday/following{/other_user}","gists_url":"https://api.github.com/users/stevenday/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenday/subscriptions","organizations_url":"https://api.github.com/users/stevenday/orgs","repos_url":"https://api.github.com/users/stevenday/repos","events_url":"https://api.github.com/users/stevenday/events{/privacy}","received_events_url":"https://api.github.com/users/stevenday/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mysociety/remit/pulls/119/commits","review_comments_url":"https://api.github.com/repos/mysociety/remit/pulls/119/comments","review_comment_url":"https://api.github.com/repos/mysociety/remit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mysociety/remit/issues/119/comments","statuses_url":"https://api.github.com/repos/mysociety/remit/statuses/fa1a7acd084eb21743d817dbd12f644794692a34","head":{"label":"mysociety:issues/1-dashboard-searching-filtering","ref":"issues/1-dashboard-searching-filtering","sha":"fa1a7acd084eb21743d817dbd12f644794692a34","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":48167850,"name":"remit","full_name":"mysociety/remit","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/remit","description":"Research Management Information Tool (ReMIT) for Médecins Sans Frontieres' Manson Unit","fork":false,"url":"https://api.github.com/repos/mysociety/remit","forks_url":"https://api.github.com/repos/mysociety/remit/forks","keys_url":"https://api.github.com/repos/mysociety/remit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/remit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/remit/teams","hooks_url":"https://api.github.com/repos/mysociety/remit/hooks","issue_events_url":"https://api.github.com/repos/mysociety/remit/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/remit/events","assignees_url":"https://api.github.com/repos/mysociety/remit/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/remit/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/remit/tags","blobs_url":"https://api.github.com/repos/mysociety/remit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/remit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/remit/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/remit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/remit/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/remit/languages","stargazers_url":"https://api.github.com/repos/mysociety/remit/stargazers","contributors_url":"https://api.github.com/repos/mysociety/remit/contributors","subscribers_url":"https://api.github.com/repos/mysociety/remit/subscribers","subscription_url":"https://api.github.com/repos/mysociety/remit/subscription","commits_url":"https://api.github.com/repos/mysociety/remit/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/remit/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/remit/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/remit/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/remit/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/remit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/remit/merges","archive_url":"https://api.github.com/repos/mysociety/remit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/remit/downloads","issues_url":"https://api.github.com/repos/mysociety/remit/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/remit/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/remit/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/remit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/remit/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/remit/releases{/id}","deployments_url":"https://api.github.com/repos/mysociety/remit/deployments","created_at":"2015-12-17T10:23:31Z","updated_at":"2016-01-11T16:28:48Z","pushed_at":"2016-02-22T12:32:44Z","git_url":"git://github.com/mysociety/remit.git","ssh_url":"git@github.com:mysociety/remit.git","clone_url":"https://github.com/mysociety/remit.git","svn_url":"https://github.com/mysociety/remit","homepage":null,"size":541,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":38,"forks":0,"open_issues":38,"watchers":0,"default_branch":"master"}},"base":{"label":"mysociety:master","ref":"master","sha":"fd8b088af6017a4c2cb633a30467fbdeff8d673b","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":48167850,"name":"remit","full_name":"mysociety/remit","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/remit","description":"Research Management Information Tool (ReMIT) for Médecins Sans Frontieres' Manson Unit","fork":false,"url":"https://api.github.com/repos/mysociety/remit","forks_url":"https://api.github.com/repos/mysociety/remit/forks","keys_url":"https://api.github.com/repos/mysociety/remit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/remit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/remit/teams","hooks_url":"https://api.github.com/repos/mysociety/remit/hooks","issue_events_url":"https://api.github.com/repos/mysociety/remit/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/remit/events","assignees_url":"https://api.github.com/repos/mysociety/remit/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/remit/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/remit/tags","blobs_url":"https://api.github.com/repos/mysociety/remit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/remit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/remit/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/remit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/remit/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/remit/languages","stargazers_url":"https://api.github.com/repos/mysociety/remit/stargazers","contributors_url":"https://api.github.com/repos/mysociety/remit/contributors","subscribers_url":"https://api.github.com/repos/mysociety/remit/subscribers","subscription_url":"https://api.github.com/repos/mysociety/remit/subscription","commits_url":"https://api.github.com/repos/mysociety/remit/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/remit/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/remit/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/remit/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/remit/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/remit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/remit/merges","archive_url":"https://api.github.com/repos/mysociety/remit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/remit/downloads","issues_url":"https://api.github.com/repos/mysociety/remit/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/remit/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/remit/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/remit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/remit/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/remit/releases{/id}","deployments_url":"https://api.github.com/repos/mysociety/remit/deployments","created_at":"2015-12-17T10:23:31Z","updated_at":"2016-01-11T16:28:48Z","pushed_at":"2016-02-22T12:32:44Z","git_url":"git://github.com/mysociety/remit.git","ssh_url":"git@github.com:mysociety/remit.git","clone_url":"https://github.com/mysociety/remit.git","svn_url":"https://github.com/mysociety/remit","homepage":null,"size":541,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":38,"forks":0,"open_issues":38,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mysociety/remit/pulls/119"},"html":{"href":"https://github.com/mysociety/remit/pull/119"},"issue":{"href":"https://api.github.com/repos/mysociety/remit/issues/119"},"comments":{"href":"https://api.github.com/repos/mysociety/remit/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/mysociety/remit/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/mysociety/remit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mysociety/remit/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/mysociety/remit/statuses/fa1a7acd084eb21743d817dbd12f644794692a34"}}}}