{"action":"created","comment":{"url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/comments/44959218","id":44959218,"diff_hunk":"@@ -0,0 +1,83 @@\n+<% content_for(:data_layer) do %>\n+  <script>\n+    dataLayer = [{\n+      'valid': <%= !@result.nil? %>,","path":"app/views/take_whole_pot_calculator/show.html.erb","position":null,"original_position":4,"commit_id":"52532818f4216519d2a07bff30c597838d723a9c","original_commit_id":"d1a10fffcdf82f7ea76e7f65a85c0c54bd7068f9","user":{"login":"stevenwilkin","id":45121,"avatar_url":"https://avatars.githubusercontent.com/u/45121?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenwilkin","html_url":"https://github.com/stevenwilkin","followers_url":"https://api.github.com/users/stevenwilkin/followers","following_url":"https://api.github.com/users/stevenwilkin/following{/other_user}","gists_url":"https://api.github.com/users/stevenwilkin/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenwilkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenwilkin/subscriptions","organizations_url":"https://api.github.com/users/stevenwilkin/orgs","repos_url":"https://api.github.com/users/stevenwilkin/repos","events_url":"https://api.github.com/users/stevenwilkin/events{/privacy}","received_events_url":"https://api.github.com/users/stevenwilkin/received_events","type":"User","site_admin":false},"body":"This is knowledge of [how the calculator works](https://github.com/guidance-guarantee-programme/pension_guidance/blob/take-whole-pot-calculator/app/forms/take_whole_pot_calculator_form.rb#L30)... Could also have `@calculator.valid?`","created_at":"2015-11-16T18:10:26Z","updated_at":"2015-11-16T18:10:26Z","html_url":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/359#discussion_r44959218","pull_request_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/359","_links":{"self":{"href":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/comments/44959218"},"html":{"href":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/359#discussion_r44959218"},"pull_request":{"href":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/359"}}},"pull_request":{"url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/359","id":50833229,"html_url":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/359","diff_url":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/359.diff","patch_url":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/359.patch","issue_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/359","number":359,"state":"open","locked":false,"title":"Take whole pot calculator","user":{"login":"stevenwilkin","id":45121,"avatar_url":"https://avatars.githubusercontent.com/u/45121?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenwilkin","html_url":"https://github.com/stevenwilkin","followers_url":"https://api.github.com/users/stevenwilkin/followers","following_url":"https://api.github.com/users/stevenwilkin/following{/other_user}","gists_url":"https://api.github.com/users/stevenwilkin/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenwilkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenwilkin/subscriptions","organizations_url":"https://api.github.com/users/stevenwilkin/orgs","repos_url":"https://api.github.com/users/stevenwilkin/repos","events_url":"https://api.github.com/users/stevenwilkin/events{/privacy}","received_events_url":"https://api.github.com/users/stevenwilkin/received_events","type":"User","site_admin":false},"body":"This is a combination of #347 and #356 for deployment. These PRs will be closed.","created_at":"2015-11-16T16:36:29Z","updated_at":"2015-11-16T18:10:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"458928a3f5dad5ba8e0c74b93a52dc615952ae99","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/359/commits","review_comments_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/359/comments","review_comment_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/359/comments","statuses_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/statuses/52532818f4216519d2a07bff30c597838d723a9c","head":{"label":"guidance-guarantee-programme:take-whole-pot-calculator","ref":"take-whole-pot-calculator","sha":"52532818f4216519d2a07bff30c597838d723a9c","user":{"login":"guidance-guarantee-programme","id":8751528,"avatar_url":"https://avatars.githubusercontent.com/u/8751528?v=3","gravatar_id":"","url":"https://api.github.com/users/guidance-guarantee-programme","html_url":"https://github.com/guidance-guarantee-programme","followers_url":"https://api.github.com/users/guidance-guarantee-programme/followers","following_url":"https://api.github.com/users/guidance-guarantee-programme/following{/other_user}","gists_url":"https://api.github.com/users/guidance-guarantee-programme/gists{/gist_id}","starred_url":"https://api.github.com/users/guidance-guarantee-programme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guidance-guarantee-programme/subscriptions","organizations_url":"https://api.github.com/users/guidance-guarantee-programme/orgs","repos_url":"https://api.github.com/users/guidance-guarantee-programme/repos","events_url":"https://api.github.com/users/guidance-guarantee-programme/events{/privacy}","received_events_url":"https://api.github.com/users/guidance-guarantee-programme/received_events","type":"Organization","site_admin":false},"repo":{"id":26530409,"name":"pension_guidance","full_name":"guidance-guarantee-programme/pension_guidance","owner":{"login":"guidance-guarantee-programme","id":8751528,"avatar_url":"https://avatars.githubusercontent.com/u/8751528?v=3","gravatar_id":"","url":"https://api.github.com/users/guidance-guarantee-programme","html_url":"https://github.com/guidance-guarantee-programme","followers_url":"https://api.github.com/users/guidance-guarantee-programme/followers","following_url":"https://api.github.com/users/guidance-guarantee-programme/following{/other_user}","gists_url":"https://api.github.com/users/guidance-guarantee-programme/gists{/gist_id}","starred_url":"https://api.github.com/users/guidance-guarantee-programme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guidance-guarantee-programme/subscriptions","organizations_url":"https://api.github.com/users/guidance-guarantee-programme/orgs","repos_url":"https://api.github.com/users/guidance-guarantee-programme/repos","events_url":"https://api.github.com/users/guidance-guarantee-programme/events{/privacy}","received_events_url":"https://api.github.com/users/guidance-guarantee-programme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guidance-guarantee-programme/pension_guidance","description":"Pension guidance from Pension Wise.","fork":false,"url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance","forks_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/forks","keys_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/teams","hooks_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/hooks","issue_events_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/events{/number}","events_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/events","assignees_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/assignees{/user}","branches_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/branches{/branch}","tags_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/tags","blobs_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/git/refs{/sha}","trees_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/statuses/{sha}","languages_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/languages","stargazers_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/stargazers","contributors_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/contributors","subscribers_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/subscribers","subscription_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/subscription","commits_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/commits{/sha}","git_commits_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/git/commits{/sha}","comments_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/comments{/number}","issue_comment_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/comments{/number}","contents_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/contents/{+path}","compare_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/merges","archive_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/downloads","issues_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues{/number}","pulls_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls{/number}","milestones_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/milestones{/number}","notifications_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/labels{/name}","releases_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/releases{/id}","created_at":"2014-11-12T10:16:42Z","updated_at":"2015-08-12T14:57:57Z","pushed_at":"2015-11-16T18:05:31Z","git_url":"git://github.com/guidance-guarantee-programme/pension_guidance.git","ssh_url":"git@github.com:guidance-guarantee-programme/pension_guidance.git","clone_url":"https://github.com/guidance-guarantee-programme/pension_guidance.git","svn_url":"https://github.com/guidance-guarantee-programme/pension_guidance","homepage":"https://www.pensionwise.gov.uk","size":10671,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"guidance-guarantee-programme:master","ref":"master","sha":"37a2c653c71ce5c0df290a6174707b293f66fa03","user":{"login":"guidance-guarantee-programme","id":8751528,"avatar_url":"https://avatars.githubusercontent.com/u/8751528?v=3","gravatar_id":"","url":"https://api.github.com/users/guidance-guarantee-programme","html_url":"https://github.com/guidance-guarantee-programme","followers_url":"https://api.github.com/users/guidance-guarantee-programme/followers","following_url":"https://api.github.com/users/guidance-guarantee-programme/following{/other_user}","gists_url":"https://api.github.com/users/guidance-guarantee-programme/gists{/gist_id}","starred_url":"https://api.github.com/users/guidance-guarantee-programme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guidance-guarantee-programme/subscriptions","organizations_url":"https://api.github.com/users/guidance-guarantee-programme/orgs","repos_url":"https://api.github.com/users/guidance-guarantee-programme/repos","events_url":"https://api.github.com/users/guidance-guarantee-programme/events{/privacy}","received_events_url":"https://api.github.com/users/guidance-guarantee-programme/received_events","type":"Organization","site_admin":false},"repo":{"id":26530409,"name":"pension_guidance","full_name":"guidance-guarantee-programme/pension_guidance","owner":{"login":"guidance-guarantee-programme","id":8751528,"avatar_url":"https://avatars.githubusercontent.com/u/8751528?v=3","gravatar_id":"","url":"https://api.github.com/users/guidance-guarantee-programme","html_url":"https://github.com/guidance-guarantee-programme","followers_url":"https://api.github.com/users/guidance-guarantee-programme/followers","following_url":"https://api.github.com/users/guidance-guarantee-programme/following{/other_user}","gists_url":"https://api.github.com/users/guidance-guarantee-programme/gists{/gist_id}","starred_url":"https://api.github.com/users/guidance-guarantee-programme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guidance-guarantee-programme/subscriptions","organizations_url":"https://api.github.com/users/guidance-guarantee-programme/orgs","repos_url":"https://api.github.com/users/guidance-guarantee-programme/repos","events_url":"https://api.github.com/users/guidance-guarantee-programme/events{/privacy}","received_events_url":"https://api.github.com/users/guidance-guarantee-programme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guidance-guarantee-programme/pension_guidance","description":"Pension guidance from Pension Wise.","fork":false,"url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance","forks_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/forks","keys_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/teams","hooks_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/hooks","issue_events_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/events{/number}","events_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/events","assignees_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/assignees{/user}","branches_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/branches{/branch}","tags_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/tags","blobs_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/git/refs{/sha}","trees_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/statuses/{sha}","languages_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/languages","stargazers_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/stargazers","contributors_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/contributors","subscribers_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/subscribers","subscription_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/subscription","commits_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/commits{/sha}","git_commits_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/git/commits{/sha}","comments_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/comments{/number}","issue_comment_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/comments{/number}","contents_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/contents/{+path}","compare_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/merges","archive_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/downloads","issues_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues{/number}","pulls_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls{/number}","milestones_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/milestones{/number}","notifications_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/labels{/name}","releases_url":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/releases{/id}","created_at":"2014-11-12T10:16:42Z","updated_at":"2015-08-12T14:57:57Z","pushed_at":"2015-11-16T18:05:31Z","git_url":"git://github.com/guidance-guarantee-programme/pension_guidance.git","ssh_url":"git@github.com:guidance-guarantee-programme/pension_guidance.git","clone_url":"https://github.com/guidance-guarantee-programme/pension_guidance.git","svn_url":"https://github.com/guidance-guarantee-programme/pension_guidance","homepage":"https://www.pensionwise.gov.uk","size":10671,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/359"},"html":{"href":"https://github.com/guidance-guarantee-programme/pension_guidance/pull/359"},"issue":{"href":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/359"},"comments":{"href":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/issues/359/comments"},"review_comments":{"href":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/359/comments"},"review_comment":{"href":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/pulls/359/commits"},"statuses":{"href":"https://api.github.com/repos/guidance-guarantee-programme/pension_guidance/statuses/52532818f4216519d2a07bff30c597838d723a9c"}}}}