{"action":"created","comment":{"url":"https://api.github.com/repos/assemblymade/coderwall/pulls/comments/22422667","id":22422667,"diff_hunk":"@@ -164,18 +164,18 @@ def geocode_location(location)\n     Rails.cache.fetch(\"geocoded_location_of_#{location}\") { User.where('LOWER(city) = ?', location.downcase).map { |u| [u.lat, u.lng] }.first || [0.0, 0.0] }\n   end\n \n-  def get_jobs_for(chosen_location, tag, page)\n+  def get_jobs_for(chosen_location, tag, page, q = nil, remote_allowed = false, fulltime = false)","path":"app/controllers/opportunities_controller.rb","position":33,"original_position":33,"commit_id":"8659d4f2984ed9548efd363323409fe7b27ff61b","original_commit_id":"8659d4f2984ed9548efd363323409fe7b27ff61b","user":{"login":"seuros","id":2394703,"avatar_url":"https://avatars.githubusercontent.com/u/2394703?v=3","gravatar_id":"","url":"https://api.github.com/users/seuros","html_url":"https://github.com/seuros","followers_url":"https://api.github.com/users/seuros/followers","following_url":"https://api.github.com/users/seuros/following{/other_user}","gists_url":"https://api.github.com/users/seuros/gists{/gist_id}","starred_url":"https://api.github.com/users/seuros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seuros/subscriptions","organizations_url":"https://api.github.com/users/seuros/orgs","repos_url":"https://api.github.com/users/seuros/repos","events_url":"https://api.github.com/users/seuros/events{/privacy}","received_events_url":"https://api.github.com/users/seuros/received_events","type":"User","site_admin":false},"body":"could we use query instead ? The code should be clear. The param can stay as it is.","created_at":"2015-01-02T21:00:20Z","updated_at":"2015-01-02T21:00:20Z","html_url":"https://github.com/assemblymade/coderwall/pull/281#discussion_r22422667","pull_request_url":"https://api.github.com/repos/assemblymade/coderwall/pulls/281","_links":{"self":{"href":"https://api.github.com/repos/assemblymade/coderwall/pulls/comments/22422667"},"html":{"href":"https://github.com/assemblymade/coderwall/pull/281#discussion_r22422667"},"pull_request":{"href":"https://api.github.com/repos/assemblymade/coderwall/pulls/281"}}},"pull_request":{"url":"https://api.github.com/repos/assemblymade/coderwall/pulls/281","id":26764290,"html_url":"https://github.com/assemblymade/coderwall/pull/281","diff_url":"https://github.com/assemblymade/coderwall/pull/281.diff","patch_url":"https://github.com/assemblymade/coderwall/pull/281.patch","issue_url":"https://api.github.com/repos/assemblymade/coderwall/issues/281","number":281,"state":"open","locked":false,"title":"Feature/jobs filtering re-design","user":{"login":"dorilla","id":1843695,"avatar_url":"https://avatars.githubusercontent.com/u/1843695?v=3","gravatar_id":"","url":"https://api.github.com/users/dorilla","html_url":"https://github.com/dorilla","followers_url":"https://api.github.com/users/dorilla/followers","following_url":"https://api.github.com/users/dorilla/following{/other_user}","gists_url":"https://api.github.com/users/dorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/dorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorilla/subscriptions","organizations_url":"https://api.github.com/users/dorilla/orgs","repos_url":"https://api.github.com/users/dorilla/repos","events_url":"https://api.github.com/users/dorilla/events{/privacy}","received_events_url":"https://api.github.com/users/dorilla/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-02T17:41:27Z","updated_at":"2015-01-02T21:00:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5b0866bfcb512d73d90f66e34cc837ac7c4c6e0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/assemblymade/coderwall/pulls/281/commits","review_comments_url":"https://api.github.com/repos/assemblymade/coderwall/pulls/281/comments","review_comment_url":"https://api.github.com/repos/assemblymade/coderwall/pulls/comments/{number}","comments_url":"https://api.github.com/repos/assemblymade/coderwall/issues/281/comments","statuses_url":"https://api.github.com/repos/assemblymade/coderwall/statuses/8659d4f2984ed9548efd363323409fe7b27ff61b","head":{"label":"dorilla:feature/jobs-filtering","ref":"feature/jobs-filtering","sha":"8659d4f2984ed9548efd363323409fe7b27ff61b","user":{"login":"dorilla","id":1843695,"avatar_url":"https://avatars.githubusercontent.com/u/1843695?v=3","gravatar_id":"","url":"https://api.github.com/users/dorilla","html_url":"https://github.com/dorilla","followers_url":"https://api.github.com/users/dorilla/followers","following_url":"https://api.github.com/users/dorilla/following{/other_user}","gists_url":"https://api.github.com/users/dorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/dorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorilla/subscriptions","organizations_url":"https://api.github.com/users/dorilla/orgs","repos_url":"https://api.github.com/users/dorilla/repos","events_url":"https://api.github.com/users/dorilla/events{/privacy}","received_events_url":"https://api.github.com/users/dorilla/received_events","type":"User","site_admin":false},"repo":{"id":28660221,"name":"coderwall","full_name":"dorilla/coderwall","owner":{"login":"dorilla","id":1843695,"avatar_url":"https://avatars.githubusercontent.com/u/1843695?v=3","gravatar_id":"","url":"https://api.github.com/users/dorilla","html_url":"https://github.com/dorilla","followers_url":"https://api.github.com/users/dorilla/followers","following_url":"https://api.github.com/users/dorilla/following{/other_user}","gists_url":"https://api.github.com/users/dorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/dorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorilla/subscriptions","organizations_url":"https://api.github.com/users/dorilla/orgs","repos_url":"https://api.github.com/users/dorilla/repos","events_url":"https://api.github.com/users/dorilla/events{/privacy}","received_events_url":"https://api.github.com/users/dorilla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dorilla/coderwall","description":"Professional network for software engineers","fork":true,"url":"https://api.github.com/repos/dorilla/coderwall","forks_url":"https://api.github.com/repos/dorilla/coderwall/forks","keys_url":"https://api.github.com/repos/dorilla/coderwall/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dorilla/coderwall/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dorilla/coderwall/teams","hooks_url":"https://api.github.com/repos/dorilla/coderwall/hooks","issue_events_url":"https://api.github.com/repos/dorilla/coderwall/issues/events{/number}","events_url":"https://api.github.com/repos/dorilla/coderwall/events","assignees_url":"https://api.github.com/repos/dorilla/coderwall/assignees{/user}","branches_url":"https://api.github.com/repos/dorilla/coderwall/branches{/branch}","tags_url":"https://api.github.com/repos/dorilla/coderwall/tags","blobs_url":"https://api.github.com/repos/dorilla/coderwall/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dorilla/coderwall/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dorilla/coderwall/git/refs{/sha}","trees_url":"https://api.github.com/repos/dorilla/coderwall/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dorilla/coderwall/statuses/{sha}","languages_url":"https://api.github.com/repos/dorilla/coderwall/languages","stargazers_url":"https://api.github.com/repos/dorilla/coderwall/stargazers","contributors_url":"https://api.github.com/repos/dorilla/coderwall/contributors","subscribers_url":"https://api.github.com/repos/dorilla/coderwall/subscribers","subscription_url":"https://api.github.com/repos/dorilla/coderwall/subscription","commits_url":"https://api.github.com/repos/dorilla/coderwall/commits{/sha}","git_commits_url":"https://api.github.com/repos/dorilla/coderwall/git/commits{/sha}","comments_url":"https://api.github.com/repos/dorilla/coderwall/comments{/number}","issue_comment_url":"https://api.github.com/repos/dorilla/coderwall/issues/comments/{number}","contents_url":"https://api.github.com/repos/dorilla/coderwall/contents/{+path}","compare_url":"https://api.github.com/repos/dorilla/coderwall/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dorilla/coderwall/merges","archive_url":"https://api.github.com/repos/dorilla/coderwall/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dorilla/coderwall/downloads","issues_url":"https://api.github.com/repos/dorilla/coderwall/issues{/number}","pulls_url":"https://api.github.com/repos/dorilla/coderwall/pulls{/number}","milestones_url":"https://api.github.com/repos/dorilla/coderwall/milestones{/number}","notifications_url":"https://api.github.com/repos/dorilla/coderwall/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dorilla/coderwall/labels{/name}","releases_url":"https://api.github.com/repos/dorilla/coderwall/releases{/id}","created_at":"2014-12-31T07:58:04Z","updated_at":"2014-12-31T07:58:06Z","pushed_at":"2015-01-02T20:29:30Z","git_url":"git://github.com/dorilla/coderwall.git","ssh_url":"git@github.com:dorilla/coderwall.git","clone_url":"https://github.com/dorilla/coderwall.git","svn_url":"https://github.com/dorilla/coderwall","homepage":"https://coderwall.com/","size":49084,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"assemblymade:master","ref":"master","sha":"7f642ec9c9160d19b590406353d80aeec14cb423","user":{"login":"assemblymade","id":4935815,"avatar_url":"https://avatars.githubusercontent.com/u/4935815?v=3","gravatar_id":"","url":"https://api.github.com/users/assemblymade","html_url":"https://github.com/assemblymade","followers_url":"https://api.github.com/users/assemblymade/followers","following_url":"https://api.github.com/users/assemblymade/following{/other_user}","gists_url":"https://api.github.com/users/assemblymade/gists{/gist_id}","starred_url":"https://api.github.com/users/assemblymade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assemblymade/subscriptions","organizations_url":"https://api.github.com/users/assemblymade/orgs","repos_url":"https://api.github.com/users/assemblymade/repos","events_url":"https://api.github.com/users/assemblymade/events{/privacy}","received_events_url":"https://api.github.com/users/assemblymade/received_events","type":"Organization","site_admin":false},"repo":{"id":16923370,"name":"coderwall","full_name":"assemblymade/coderwall","owner":{"login":"assemblymade","id":4935815,"avatar_url":"https://avatars.githubusercontent.com/u/4935815?v=3","gravatar_id":"","url":"https://api.github.com/users/assemblymade","html_url":"https://github.com/assemblymade","followers_url":"https://api.github.com/users/assemblymade/followers","following_url":"https://api.github.com/users/assemblymade/following{/other_user}","gists_url":"https://api.github.com/users/assemblymade/gists{/gist_id}","starred_url":"https://api.github.com/users/assemblymade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assemblymade/subscriptions","organizations_url":"https://api.github.com/users/assemblymade/orgs","repos_url":"https://api.github.com/users/assemblymade/repos","events_url":"https://api.github.com/users/assemblymade/events{/privacy}","received_events_url":"https://api.github.com/users/assemblymade/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/assemblymade/coderwall","description":"Professional network for software engineers","fork":false,"url":"https://api.github.com/repos/assemblymade/coderwall","forks_url":"https://api.github.com/repos/assemblymade/coderwall/forks","keys_url":"https://api.github.com/repos/assemblymade/coderwall/keys{/key_id}","collaborators_url":"https://api.github.com/repos/assemblymade/coderwall/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/assemblymade/coderwall/teams","hooks_url":"https://api.github.com/repos/assemblymade/coderwall/hooks","issue_events_url":"https://api.github.com/repos/assemblymade/coderwall/issues/events{/number}","events_url":"https://api.github.com/repos/assemblymade/coderwall/events","assignees_url":"https://api.github.com/repos/assemblymade/coderwall/assignees{/user}","branches_url":"https://api.github.com/repos/assemblymade/coderwall/branches{/branch}","tags_url":"https://api.github.com/repos/assemblymade/coderwall/tags","blobs_url":"https://api.github.com/repos/assemblymade/coderwall/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/assemblymade/coderwall/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/assemblymade/coderwall/git/refs{/sha}","trees_url":"https://api.github.com/repos/assemblymade/coderwall/git/trees{/sha}","statuses_url":"https://api.github.com/repos/assemblymade/coderwall/statuses/{sha}","languages_url":"https://api.github.com/repos/assemblymade/coderwall/languages","stargazers_url":"https://api.github.com/repos/assemblymade/coderwall/stargazers","contributors_url":"https://api.github.com/repos/assemblymade/coderwall/contributors","subscribers_url":"https://api.github.com/repos/assemblymade/coderwall/subscribers","subscription_url":"https://api.github.com/repos/assemblymade/coderwall/subscription","commits_url":"https://api.github.com/repos/assemblymade/coderwall/commits{/sha}","git_commits_url":"https://api.github.com/repos/assemblymade/coderwall/git/commits{/sha}","comments_url":"https://api.github.com/repos/assemblymade/coderwall/comments{/number}","issue_comment_url":"https://api.github.com/repos/assemblymade/coderwall/issues/comments/{number}","contents_url":"https://api.github.com/repos/assemblymade/coderwall/contents/{+path}","compare_url":"https://api.github.com/repos/assemblymade/coderwall/compare/{base}...{head}","merges_url":"https://api.github.com/repos/assemblymade/coderwall/merges","archive_url":"https://api.github.com/repos/assemblymade/coderwall/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/assemblymade/coderwall/downloads","issues_url":"https://api.github.com/repos/assemblymade/coderwall/issues{/number}","pulls_url":"https://api.github.com/repos/assemblymade/coderwall/pulls{/number}","milestones_url":"https://api.github.com/repos/assemblymade/coderwall/milestones{/number}","notifications_url":"https://api.github.com/repos/assemblymade/coderwall/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/assemblymade/coderwall/labels{/name}","releases_url":"https://api.github.com/repos/assemblymade/coderwall/releases{/id}","created_at":"2014-02-17T19:09:29Z","updated_at":"2015-01-02T17:39:07Z","pushed_at":"2015-01-02T17:39:06Z","git_url":"git://github.com/assemblymade/coderwall.git","ssh_url":"git@github.com:assemblymade/coderwall.git","clone_url":"https://github.com/assemblymade/coderwall.git","svn_url":"https://github.com/assemblymade/coderwall","homepage":"https://coderwall.com/","size":49084,"stargazers_count":647,"watchers_count":647,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":220,"mirror_url":null,"open_issues_count":3,"forks":220,"open_issues":3,"watchers":647,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/assemblymade/coderwall/pulls/281"},"html":{"href":"https://github.com/assemblymade/coderwall/pull/281"},"issue":{"href":"https://api.github.com/repos/assemblymade/coderwall/issues/281"},"comments":{"href":"https://api.github.com/repos/assemblymade/coderwall/issues/281/comments"},"review_comments":{"href":"https://api.github.com/repos/assemblymade/coderwall/pulls/281/comments"},"review_comment":{"href":"https://api.github.com/repos/assemblymade/coderwall/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/assemblymade/coderwall/pulls/281/commits"},"statuses":{"href":"https://api.github.com/repos/assemblymade/coderwall/statuses/8659d4f2984ed9548efd363323409fe7b27ff61b"}}}}