{"action":"created","comment":{"url":"https://api.github.com/repos/dchbx/enroll/pulls/comments/203871027","pull_request_review_id":138823701,"id":203871027,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzg3MTAyNw==","diff_hunk":"@@ -48,9 +48,15 @@ def employer_contribution_for(member)\n   end\n \n   def aptc_amount(member)\n-    if @tax_household.present?\n-      aptc_available_hash = @tax_household.aptc_available_amount_for_enrollment(@member_provider, __getobj__, @elected_aptc)\n-      ((aptc_available_hash[member.applicant_id.to_s].try(:to_f) || 0) * large_family_factor(member)).round(2)\n+    if @tax_household.present? && @tax_household.is_member_aptc_eligible?(member.family_member)\n+      unchecked_eligible_fms = @tax_household.find_aptc_family_members(members.map(&:family_member))\n+      aptc_ratio = ((member.family_member.aptc_benchmark_amount)/@tax_household.total_benchmark_amount(unchecked_eligible_fms))","path":"app/models/unassisted_plan_cost_decorator.rb","position":35,"original_position":35,"commit_id":"5c45371107b8a5d1f7fbb8ebb8f100cffa4c0d1b","original_commit_id":"5c45371107b8a5d1f7fbb8ebb8f100cffa4c0d1b","user":{"login":"saikumar9","id":22556810,"node_id":"MDQ6VXNlcjIyNTU2ODEw","avatar_url":"https://avatars0.githubusercontent.com/u/22556810?v=4","gravatar_id":"","url":"https://api.github.com/users/saikumar9","html_url":"https://github.com/saikumar9","followers_url":"https://api.github.com/users/saikumar9/followers","following_url":"https://api.github.com/users/saikumar9/following{/other_user}","gists_url":"https://api.github.com/users/saikumar9/gists{/gist_id}","starred_url":"https://api.github.com/users/saikumar9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saikumar9/subscriptions","organizations_url":"https://api.github.com/users/saikumar9/orgs","repos_url":"https://api.github.com/users/saikumar9/repos","events_url":"https://api.github.com/users/saikumar9/events{/privacy}","received_events_url":"https://api.github.com/users/saikumar9/received_events","type":"User","site_admin":false},"body":"Finding the right ratio as per business rule(based on benchmark values).","created_at":"2018-07-19T21:03:39Z","updated_at":"2018-07-19T21:23:42Z","html_url":"https://github.com/dchbx/enroll/pull/2187#discussion_r203871027","pull_request_url":"https://api.github.com/repos/dchbx/enroll/pulls/2187","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dchbx/enroll/pulls/comments/203871027"},"html":{"href":"https://github.com/dchbx/enroll/pull/2187#discussion_r203871027"},"pull_request":{"href":"https://api.github.com/repos/dchbx/enroll/pulls/2187"}}},"pull_request":{"url":"https://api.github.com/repos/dchbx/enroll/pulls/2187","id":186945033,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg2OTQ1MDMz","html_url":"https://github.com/dchbx/enroll/pull/2187","diff_url":"https://github.com/dchbx/enroll/pull/2187.diff","patch_url":"https://github.com/dchbx/enroll/pull/2187.patch","issue_url":"https://api.github.com/repos/dchbx/enroll/issues/2187","number":2187,"state":"open","locked":false,"title":"23578: Allocation of APTC based on Bench mark value","user":{"login":"sudhirreddysama","id":29281619,"node_id":"MDQ6VXNlcjI5MjgxNjE5","avatar_url":"https://avatars3.githubusercontent.com/u/29281619?v=4","gravatar_id":"","url":"https://api.github.com/users/sudhirreddysama","html_url":"https://github.com/sudhirreddysama","followers_url":"https://api.github.com/users/sudhirreddysama/followers","following_url":"https://api.github.com/users/sudhirreddysama/following{/other_user}","gists_url":"https://api.github.com/users/sudhirreddysama/gists{/gist_id}","starred_url":"https://api.github.com/users/sudhirreddysama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudhirreddysama/subscriptions","organizations_url":"https://api.github.com/users/sudhirreddysama/orgs","repos_url":"https://api.github.com/users/sudhirreddysama/repos","events_url":"https://api.github.com/users/sudhirreddysama/events{/privacy}","received_events_url":"https://api.github.com/users/sudhirreddysama/received_events","type":"User","site_admin":false},"body":"|Field|Value|\n|-----|-----|\n| Redmine Ticket Number | [23578](https://devops.dchbx.org/redmine/issues/23578) |\n| App-Dev Road Map # | n/a |\n| Start Date | n/a |\n| Due Date | n/a  |\n| App-Dev Priority | UP-2 |\n| Development Story Points | n/a |\n| Peer Review Story Points | n/a |\n| Ticket Author | Yasmin Behi |","created_at":"2018-05-09T14:45:52Z","updated_at":"2018-07-19T21:23:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10cb3b943dd762c88768f6634c3385243c7b9830","assignee":{"login":"saikumar9","id":22556810,"node_id":"MDQ6VXNlcjIyNTU2ODEw","avatar_url":"https://avatars0.githubusercontent.com/u/22556810?v=4","gravatar_id":"","url":"https://api.github.com/users/saikumar9","html_url":"https://github.com/saikumar9","followers_url":"https://api.github.com/users/saikumar9/followers","following_url":"https://api.github.com/users/saikumar9/following{/other_user}","gists_url":"https://api.github.com/users/saikumar9/gists{/gist_id}","starred_url":"https://api.github.com/users/saikumar9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saikumar9/subscriptions","organizations_url":"https://api.github.com/users/saikumar9/orgs","repos_url":"https://api.github.com/users/saikumar9/repos","events_url":"https://api.github.com/users/saikumar9/events{/privacy}","received_events_url":"https://api.github.com/users/saikumar9/received_events","type":"User","site_admin":false},"assignees":[{"login":"saikumar9","id":22556810,"node_id":"MDQ6VXNlcjIyNTU2ODEw","avatar_url":"https://avatars0.githubusercontent.com/u/22556810?v=4","gravatar_id":"","url":"https://api.github.com/users/saikumar9","html_url":"https://github.com/saikumar9","followers_url":"https://api.github.com/users/saikumar9/followers","following_url":"https://api.github.com/users/saikumar9/following{/other_user}","gists_url":"https://api.github.com/users/saikumar9/gists{/gist_id}","starred_url":"https://api.github.com/users/saikumar9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saikumar9/subscriptions","organizations_url":"https://api.github.com/users/saikumar9/orgs","repos_url":"https://api.github.com/users/saikumar9/repos","events_url":"https://api.github.com/users/saikumar9/events{/privacy}","received_events_url":"https://api.github.com/users/saikumar9/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":511705379,"node_id":"MDU6TGFiZWw1MTE3MDUzNzk=","url":"https://api.github.com/repos/dchbx/enroll/labels/Mergeable:%20Yes","name":"Mergeable: Yes","color":"bfdadc","default":false},{"id":442908634,"node_id":"MDU6TGFiZWw0NDI5MDg2MzQ=","url":"https://api.github.com/repos/dchbx/enroll/labels/Priority:%20Normal","name":"Priority: Normal","color":"c5def5","default":false},{"id":442918944,"node_id":"MDU6TGFiZWw0NDI5MTg5NDQ=","url":"https://api.github.com/repos/dchbx/enroll/labels/Status:%20Peer%20Review","name":"Status: Peer Review","color":"FFEF00","default":false},{"id":442931642,"node_id":"MDU6TGFiZWw0NDI5MzE2NDI=","url":"https://api.github.com/repos/dchbx/enroll/labels/Tracker:%20App-Dev_User%20Story","name":"Tracker: App-Dev_User Story","color":"d4c5f9","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dchbx/enroll/pulls/2187/commits","review_comments_url":"https://api.github.com/repos/dchbx/enroll/pulls/2187/comments","review_comment_url":"https://api.github.com/repos/dchbx/enroll/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dchbx/enroll/issues/2187/comments","statuses_url":"https://api.github.com/repos/dchbx/enroll/statuses/5c45371107b8a5d1f7fbb8ebb8f100cffa4c0d1b","head":{"label":"dchbx:App-Dev-User-Story#23578","ref":"App-Dev-User-Story#23578","sha":"5c45371107b8a5d1f7fbb8ebb8f100cffa4c0d1b","user":{"login":"dchbx","id":4580217,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1ODAyMTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4580217?v=4","gravatar_id":"","url":"https://api.github.com/users/dchbx","html_url":"https://github.com/dchbx","followers_url":"https://api.github.com/users/dchbx/followers","following_url":"https://api.github.com/users/dchbx/following{/other_user}","gists_url":"https://api.github.com/users/dchbx/gists{/gist_id}","starred_url":"https://api.github.com/users/dchbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchbx/subscriptions","organizations_url":"https://api.github.com/users/dchbx/orgs","repos_url":"https://api.github.com/users/dchbx/repos","events_url":"https://api.github.com/users/dchbx/events{/privacy}","received_events_url":"https://api.github.com/users/dchbx/received_events","type":"Organization","site_admin":false},"repo":{"id":28518679,"node_id":"MDEwOlJlcG9zaXRvcnkyODUxODY3OQ==","name":"enroll","full_name":"dchbx/enroll","owner":{"login":"dchbx","id":4580217,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1ODAyMTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4580217?v=4","gravatar_id":"","url":"https://api.github.com/users/dchbx","html_url":"https://github.com/dchbx","followers_url":"https://api.github.com/users/dchbx/followers","following_url":"https://api.github.com/users/dchbx/following{/other_user}","gists_url":"https://api.github.com/users/dchbx/gists{/gist_id}","starred_url":"https://api.github.com/users/dchbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchbx/subscriptions","organizations_url":"https://api.github.com/users/dchbx/orgs","repos_url":"https://api.github.com/users/dchbx/repos","events_url":"https://api.github.com/users/dchbx/events{/privacy}","received_events_url":"https://api.github.com/users/dchbx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dchbx/enroll","description":"An ACA-compliant enrollment system for individual and SHOP markets, built on Ruby on Rails, with a Mongo database","fork":false,"url":"https://api.github.com/repos/dchbx/enroll","forks_url":"https://api.github.com/repos/dchbx/enroll/forks","keys_url":"https://api.github.com/repos/dchbx/enroll/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dchbx/enroll/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dchbx/enroll/teams","hooks_url":"https://api.github.com/repos/dchbx/enroll/hooks","issue_events_url":"https://api.github.com/repos/dchbx/enroll/issues/events{/number}","events_url":"https://api.github.com/repos/dchbx/enroll/events","assignees_url":"https://api.github.com/repos/dchbx/enroll/assignees{/user}","branches_url":"https://api.github.com/repos/dchbx/enroll/branches{/branch}","tags_url":"https://api.github.com/repos/dchbx/enroll/tags","blobs_url":"https://api.github.com/repos/dchbx/enroll/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dchbx/enroll/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dchbx/enroll/git/refs{/sha}","trees_url":"https://api.github.com/repos/dchbx/enroll/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dchbx/enroll/statuses/{sha}","languages_url":"https://api.github.com/repos/dchbx/enroll/languages","stargazers_url":"https://api.github.com/repos/dchbx/enroll/stargazers","contributors_url":"https://api.github.com/repos/dchbx/enroll/contributors","subscribers_url":"https://api.github.com/repos/dchbx/enroll/subscribers","subscription_url":"https://api.github.com/repos/dchbx/enroll/subscription","commits_url":"https://api.github.com/repos/dchbx/enroll/commits{/sha}","git_commits_url":"https://api.github.com/repos/dchbx/enroll/git/commits{/sha}","comments_url":"https://api.github.com/repos/dchbx/enroll/comments{/number}","issue_comment_url":"https://api.github.com/repos/dchbx/enroll/issues/comments{/number}","contents_url":"https://api.github.com/repos/dchbx/enroll/contents/{+path}","compare_url":"https://api.github.com/repos/dchbx/enroll/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dchbx/enroll/merges","archive_url":"https://api.github.com/repos/dchbx/enroll/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dchbx/enroll/downloads","issues_url":"https://api.github.com/repos/dchbx/enroll/issues{/number}","pulls_url":"https://api.github.com/repos/dchbx/enroll/pulls{/number}","milestones_url":"https://api.github.com/repos/dchbx/enroll/milestones{/number}","notifications_url":"https://api.github.com/repos/dchbx/enroll/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dchbx/enroll/labels{/name}","releases_url":"https://api.github.com/repos/dchbx/enroll/releases{/id}","deployments_url":"https://api.github.com/repos/dchbx/enroll/deployments","created_at":"2014-12-26T18:59:14Z","updated_at":"2018-07-13T14:08:38Z","pushed_at":"2018-07-19T19:52:55Z","git_url":"git://github.com/dchbx/enroll.git","ssh_url":"git@github.com:dchbx/enroll.git","clone_url":"https://github.com/dchbx/enroll.git","svn_url":"https://github.com/dchbx/enroll","homepage":"https://dchealthlink.com/","size":135028,"stargazers_count":17,"watchers_count":17,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"open_issues_count":371,"license":null,"forks":30,"open_issues":371,"watchers":17,"default_branch":"master"}},"base":{"label":"dchbx:master","ref":"master","sha":"ae15fcaa7063caa7a2fac4fea4ec6fd3c7a53689","user":{"login":"dchbx","id":4580217,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1ODAyMTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4580217?v=4","gravatar_id":"","url":"https://api.github.com/users/dchbx","html_url":"https://github.com/dchbx","followers_url":"https://api.github.com/users/dchbx/followers","following_url":"https://api.github.com/users/dchbx/following{/other_user}","gists_url":"https://api.github.com/users/dchbx/gists{/gist_id}","starred_url":"https://api.github.com/users/dchbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchbx/subscriptions","organizations_url":"https://api.github.com/users/dchbx/orgs","repos_url":"https://api.github.com/users/dchbx/repos","events_url":"https://api.github.com/users/dchbx/events{/privacy}","received_events_url":"https://api.github.com/users/dchbx/received_events","type":"Organization","site_admin":false},"repo":{"id":28518679,"node_id":"MDEwOlJlcG9zaXRvcnkyODUxODY3OQ==","name":"enroll","full_name":"dchbx/enroll","owner":{"login":"dchbx","id":4580217,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1ODAyMTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4580217?v=4","gravatar_id":"","url":"https://api.github.com/users/dchbx","html_url":"https://github.com/dchbx","followers_url":"https://api.github.com/users/dchbx/followers","following_url":"https://api.github.com/users/dchbx/following{/other_user}","gists_url":"https://api.github.com/users/dchbx/gists{/gist_id}","starred_url":"https://api.github.com/users/dchbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchbx/subscriptions","organizations_url":"https://api.github.com/users/dchbx/orgs","repos_url":"https://api.github.com/users/dchbx/repos","events_url":"https://api.github.com/users/dchbx/events{/privacy}","received_events_url":"https://api.github.com/users/dchbx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dchbx/enroll","description":"An ACA-compliant enrollment system for individual and SHOP markets, built on Ruby on Rails, with a Mongo database","fork":false,"url":"https://api.github.com/repos/dchbx/enroll","forks_url":"https://api.github.com/repos/dchbx/enroll/forks","keys_url":"https://api.github.com/repos/dchbx/enroll/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dchbx/enroll/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dchbx/enroll/teams","hooks_url":"https://api.github.com/repos/dchbx/enroll/hooks","issue_events_url":"https://api.github.com/repos/dchbx/enroll/issues/events{/number}","events_url":"https://api.github.com/repos/dchbx/enroll/events","assignees_url":"https://api.github.com/repos/dchbx/enroll/assignees{/user}","branches_url":"https://api.github.com/repos/dchbx/enroll/branches{/branch}","tags_url":"https://api.github.com/repos/dchbx/enroll/tags","blobs_url":"https://api.github.com/repos/dchbx/enroll/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dchbx/enroll/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dchbx/enroll/git/refs{/sha}","trees_url":"https://api.github.com/repos/dchbx/enroll/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dchbx/enroll/statuses/{sha}","languages_url":"https://api.github.com/repos/dchbx/enroll/languages","stargazers_url":"https://api.github.com/repos/dchbx/enroll/stargazers","contributors_url":"https://api.github.com/repos/dchbx/enroll/contributors","subscribers_url":"https://api.github.com/repos/dchbx/enroll/subscribers","subscription_url":"https://api.github.com/repos/dchbx/enroll/subscription","commits_url":"https://api.github.com/repos/dchbx/enroll/commits{/sha}","git_commits_url":"https://api.github.com/repos/dchbx/enroll/git/commits{/sha}","comments_url":"https://api.github.com/repos/dchbx/enroll/comments{/number}","issue_comment_url":"https://api.github.com/repos/dchbx/enroll/issues/comments{/number}","contents_url":"https://api.github.com/repos/dchbx/enroll/contents/{+path}","compare_url":"https://api.github.com/repos/dchbx/enroll/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dchbx/enroll/merges","archive_url":"https://api.github.com/repos/dchbx/enroll/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dchbx/enroll/downloads","issues_url":"https://api.github.com/repos/dchbx/enroll/issues{/number}","pulls_url":"https://api.github.com/repos/dchbx/enroll/pulls{/number}","milestones_url":"https://api.github.com/repos/dchbx/enroll/milestones{/number}","notifications_url":"https://api.github.com/repos/dchbx/enroll/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dchbx/enroll/labels{/name}","releases_url":"https://api.github.com/repos/dchbx/enroll/releases{/id}","deployments_url":"https://api.github.com/repos/dchbx/enroll/deployments","created_at":"2014-12-26T18:59:14Z","updated_at":"2018-07-13T14:08:38Z","pushed_at":"2018-07-19T19:52:55Z","git_url":"git://github.com/dchbx/enroll.git","ssh_url":"git@github.com:dchbx/enroll.git","clone_url":"https://github.com/dchbx/enroll.git","svn_url":"https://github.com/dchbx/enroll","homepage":"https://dchealthlink.com/","size":135028,"stargazers_count":17,"watchers_count":17,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"open_issues_count":371,"license":null,"forks":30,"open_issues":371,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dchbx/enroll/pulls/2187"},"html":{"href":"https://github.com/dchbx/enroll/pull/2187"},"issue":{"href":"https://api.github.com/repos/dchbx/enroll/issues/2187"},"comments":{"href":"https://api.github.com/repos/dchbx/enroll/issues/2187/comments"},"review_comments":{"href":"https://api.github.com/repos/dchbx/enroll/pulls/2187/comments"},"review_comment":{"href":"https://api.github.com/repos/dchbx/enroll/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dchbx/enroll/pulls/2187/commits"},"statuses":{"href":"https://api.github.com/repos/dchbx/enroll/statuses/5c45371107b8a5d1f7fbb8ebb8f100cffa4c0d1b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"saikumar9"}}