{"action":"created","comment":{"url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/comments/25940120","id":25940120,"diff_hunk":"@@ -0,0 +1,31 @@\n+class RemoteSearchFormSerializer < ActiveModel::Serializer\n+  self.root = false\n+\n+  attributes :sort, :query\n+\n+  def sort\n+    'registered_name'\n+  end\n+\n+  def query\n+    {\n+      'filtered' => {\n+        'filter' => {\n+          'in' => {\n+            'other_advice_methods' => remote_advice_method_ids\n+          }\n+        }\n+      }\n+    }\n+  end\n+\n+  private\n+\n+  def remote_advice_method_ids","path":"app/serializers/remote_search_form_serializer.rb","position":24,"original_position":24,"commit_id":"11bcb4af304917c82911131cf2b0143911041c87","original_commit_id":"b6edb3718f73f973cdfcc7aea040b285c5ed985d","user":{"login":"esbel","id":106796,"avatar_url":"https://avatars.githubusercontent.com/u/106796?v=3","gravatar_id":"","url":"https://api.github.com/users/esbel","html_url":"https://github.com/esbel","followers_url":"https://api.github.com/users/esbel/followers","following_url":"https://api.github.com/users/esbel/following{/other_user}","gists_url":"https://api.github.com/users/esbel/gists{/gist_id}","starred_url":"https://api.github.com/users/esbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esbel/subscriptions","organizations_url":"https://api.github.com/users/esbel/orgs","repos_url":"https://api.github.com/users/esbel/repos","events_url":"https://api.github.com/users/esbel/events{/privacy}","received_events_url":"https://api.github.com/users/esbel/received_events","type":"User","site_admin":false},"body":"so we agreed on adding TELEPHONE / ONLINE constants in OtherAdviceMethod","created_at":"2015-03-06T11:49:48Z","updated_at":"2015-03-06T11:49:48Z","html_url":"https://github.com/moneyadviceservice/rad_consumer/pull/37#discussion_r25940120","pull_request_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/comments/25940120"},"html":{"href":"https://github.com/moneyadviceservice/rad_consumer/pull/37#discussion_r25940120"},"pull_request":{"href":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/37","id":30633537,"html_url":"https://github.com/moneyadviceservice/rad_consumer/pull/37","diff_url":"https://github.com/moneyadviceservice/rad_consumer/pull/37.diff","patch_url":"https://github.com/moneyadviceservice/rad_consumer/pull/37.patch","issue_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/issues/37","number":37,"state":"open","locked":false,"title":"#5725 Search for remote advisory","user":{"login":"esbel","id":106796,"avatar_url":"https://avatars.githubusercontent.com/u/106796?v=3","gravatar_id":"","url":"https://api.github.com/users/esbel","html_url":"https://github.com/esbel","followers_url":"https://api.github.com/users/esbel/followers","following_url":"https://api.github.com/users/esbel/following{/other_user}","gists_url":"https://api.github.com/users/esbel/gists{/gist_id}","starred_url":"https://api.github.com/users/esbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esbel/subscriptions","organizations_url":"https://api.github.com/users/esbel/orgs","repos_url":"https://api.github.com/users/esbel/repos","events_url":"https://api.github.com/users/esbel/events{/privacy}","received_events_url":"https://api.github.com/users/esbel/received_events","type":"User","site_admin":false},"body":"Scenario#2 for #5725:\r\n\r\n\r\nScenario: Selecting online advice\r\nGiven that I am on the RAD landing page\r\nWhen I submit a search selecting online advice\r\nThen I am shown FIRMS and SUBSIDIARIES that provide advice online\r\nAnd they are ordered alphabetically, (A-Z)\r\n \r\nOther scenarios will follow.","created_at":"2015-03-06T10:13:28Z","updated_at":"2015-03-06T11:49:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f924fc1447e1f0d3ec9d59014b36caac0a0727f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/37/commits","review_comments_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/37/comments","review_comment_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/issues/37/comments","statuses_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/statuses/11bcb4af304917c82911131cf2b0143911041c87","head":{"label":"moneyadviceservice:search-for-remote-advisory","ref":"search-for-remote-advisory","sha":"11bcb4af304917c82911131cf2b0143911041c87","user":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"repo":{"id":30410520,"name":"rad_consumer","full_name":"moneyadviceservice/rad_consumer","owner":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moneyadviceservice/rad_consumer","description":"Consumer search for the Retirement Adviser Directory","fork":false,"url":"https://api.github.com/repos/moneyadviceservice/rad_consumer","forks_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/forks","keys_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/teams","hooks_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/hooks","issue_events_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/issues/events{/number}","events_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/events","assignees_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/assignees{/user}","branches_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/branches{/branch}","tags_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/tags","blobs_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/git/refs{/sha}","trees_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/statuses/{sha}","languages_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/languages","stargazers_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/stargazers","contributors_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/contributors","subscribers_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/subscribers","subscription_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/subscription","commits_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/commits{/sha}","git_commits_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/git/commits{/sha}","comments_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/comments{/number}","issue_comment_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/issues/comments{/number}","contents_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/contents/{+path}","compare_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/merges","archive_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/downloads","issues_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/issues{/number}","pulls_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls{/number}","milestones_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/milestones{/number}","notifications_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/labels{/name}","releases_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/releases{/id}","created_at":"2015-02-06T12:08:20Z","updated_at":"2015-03-06T10:30:10Z","pushed_at":"2015-03-06T11:27:09Z","git_url":"git://github.com/moneyadviceservice/rad_consumer.git","ssh_url":"git@github.com:moneyadviceservice/rad_consumer.git","clone_url":"https://github.com/moneyadviceservice/rad_consumer.git","svn_url":"https://github.com/moneyadviceservice/rad_consumer","homepage":null,"size":1264,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"moneyadviceservice:master","ref":"master","sha":"842bbac18b347c20bd5b95fcf712f676809afd15","user":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"repo":{"id":30410520,"name":"rad_consumer","full_name":"moneyadviceservice/rad_consumer","owner":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moneyadviceservice/rad_consumer","description":"Consumer search for the Retirement Adviser Directory","fork":false,"url":"https://api.github.com/repos/moneyadviceservice/rad_consumer","forks_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/forks","keys_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/teams","hooks_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/hooks","issue_events_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/issues/events{/number}","events_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/events","assignees_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/assignees{/user}","branches_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/branches{/branch}","tags_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/tags","blobs_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/git/refs{/sha}","trees_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/statuses/{sha}","languages_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/languages","stargazers_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/stargazers","contributors_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/contributors","subscribers_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/subscribers","subscription_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/subscription","commits_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/commits{/sha}","git_commits_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/git/commits{/sha}","comments_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/comments{/number}","issue_comment_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/issues/comments{/number}","contents_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/contents/{+path}","compare_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/merges","archive_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/downloads","issues_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/issues{/number}","pulls_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls{/number}","milestones_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/milestones{/number}","notifications_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/labels{/name}","releases_url":"https://api.github.com/repos/moneyadviceservice/rad_consumer/releases{/id}","created_at":"2015-02-06T12:08:20Z","updated_at":"2015-03-06T10:30:10Z","pushed_at":"2015-03-06T11:27:09Z","git_url":"git://github.com/moneyadviceservice/rad_consumer.git","ssh_url":"git@github.com:moneyadviceservice/rad_consumer.git","clone_url":"https://github.com/moneyadviceservice/rad_consumer.git","svn_url":"https://github.com/moneyadviceservice/rad_consumer","homepage":null,"size":1264,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/37"},"html":{"href":"https://github.com/moneyadviceservice/rad_consumer/pull/37"},"issue":{"href":"https://api.github.com/repos/moneyadviceservice/rad_consumer/issues/37"},"comments":{"href":"https://api.github.com/repos/moneyadviceservice/rad_consumer/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moneyadviceservice/rad_consumer/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/moneyadviceservice/rad_consumer/statuses/11bcb4af304917c82911131cf2b0143911041c87"}}}}