payload: {"action":"created","comment":{"url":"https://api.github.com/repos/health-connector/enroll/pulls/comments/297371147","pull_request_review_id":254241038,"id":297371147,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5NzM3MTE0Nw==","diff_hunk":"@@ -149,82 +149,83 @@ def newhire_query_expression\n   puts \"Found #{families.size} families in the system\"\n \n   families.each do |family|\n-    count += 1\n-    if count % 100 == 0\n-      puts \"process #{count}\"\n-    end\n+    begin\n+      count += 1\n+      if count % 100 == 0\n+        puts \"process #{count}\"\n+      end\n \n-    active_enrollments = family.active_household.hbx_enrollments.where(sep_query_expression)\n-    next if active_enrollments.blank?\n+      active_enrollments = family.active_household.hbx_enrollments.where(sep_query_expression)\n+      next if active_enrollments.blank?\n \n-    active_enrollments.each do |enrollment|\n-      employer = enrollment.benefit_group.plan_year.employer_profile\n+      active_enrollments.each do |enrollment|\n+        employer = enrollment.employer_profile\n \n-      begin\n-        data = get_plan_details(enrollment, employer)\n+          data = get_plan_details(enrollment, employer)\n \n-        next if enrollment.hbx_enrollment_members.blank?\n+          next if enrollment.hbx_enrollment_members.blank?\n \n-        primary_member = enrollment.hbx_enrollment_members.detect{|member| member == enrollment.subscriber }\n-        primary_member = enrollment.hbx_enrollment_members.first if primary_member.blank?\n+          primary_member = enrollment.hbx_enrollment_members.detect{|member| member == enrollment.subscriber }\n+          primary_member = enrollment.hbx_enrollment_members.first if primary_member.blank?\n \n \n-        data += get_member_details(primary_member, enrollment)\n+          data += get_member_details(primary_member, enrollment)\n \n-        enrollment.hbx_enrollment_members.each do |enrollment_member|\n-          if enrollment_member == primary_member\n-            data\n-          else\n-            data += get_member_details(enrollment_member, enrollment)\n+          enrollment.hbx_enrollment_members.each do |enrollment_member|\n+            if enrollment_member == primary_member\n+              data\n+            else\n+              data += get_member_details(enrollment_member, enrollment)\n+            end\n           end\n-        end\n \n-        csv << data\n-      rescue Exception => e\n-        puts \"bad enrollment #{e.to_s} #{enrollment.hbx_id}\"\n+          csv << data\n       end\n+    rescue Exception => e\n+      puts \"bad enrollment #{e.to_s} #{enrollment.hbx_id}\"\n     end\n   end\n \n   families = Family.where(:\"households.hbx_enrollments\" => {:$elemMatch => newhire_query_expression})\n   puts \"Found #{families.size} families in the system\"\n \n   families.each do |family|\n-    count += 1\n-    if count % 100 == 0\n-      puts \"process #{count}\"\n-    end\n+    begin\n+      count += 1\n+      if count % 100 == 0\n+        puts \"process #{count}\"\n+      end\n \n-    active_enrollments = family.active_household.hbx_enrollments.where(newhire_query_expression)\n-    next if active_enrollments.blank?\n+      active_enrollments = family.active_household.hbx_enrollments.where(newhire_query_expression)\n+      next if active_enrollments.blank?\n \n-    active_enrollments.each do |enrollment|\n-      employer = enrollment.benefit_group.plan_year.employer_profile\n-      next unless enrollment.benefit_group_assignment.census_employee.new_hire_enrollment_period.cover?(enrollment.created_at)\n+      active_enrollments.each do |enrollment|\n+        employer = enrollment.employer_profile\n+        next unless enrollment.benefit_group_assignment.census_employee.new_hire_enrollment_period.cover?(enrollment.created_at)\n \n-      begin\n-        data = get_plan_details(enrollment, employer)\n+        \n+          data = get_plan_details(enrollment, employer)","path":"script/qle_new_hire_report.rb","position":102,"original_position":102,"commit_id":"e348472c9357ddf2677cff1ece50c2af5d0638e4","original_commit_id":"e348472c9357ddf2677cff1ece50c2af5d0638e4","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Layout/IndentationConsistency: Inconsistent indentation detected.","created_at":"2019-06-25T20:08:52Z","updated_at":"2019-06-25T20:08:54Z","html_url":"https://github.com/health-connector/enroll/pull/1710#discussion_r297371147","pull_request_url":"https://api.github.com/repos/health-connector/enroll/pulls/1710","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/health-connector/enroll/pulls/comments/297371147"},"html":{"href":"https://github.com/health-connector/enroll/pull/1710#discussion_r297371147"},"pull_request":{"href":"https://api.github.com/repos/health-connector/enroll/pulls/1710"}}},"pull_request":{"url":"https://api.github.com/repos/health-connector/enroll/pulls/1710","id":291656863,"node_id":"MDExOlB1bGxSZXF1ZXN0MjkxNjU2ODYz","html_url":"https://github.com/health-connector/enroll/pull/1710","diff_url":"https://github.com/health-connector/enroll/pull/1710.diff","patch_url":"https://github.com/health-connector/enroll/pull/1710.patch","issue_url":"https://api.github.com/repos/health-connector/enroll/issues/1710","number":1710,"state":"open","locked":false,"title":"preprod","user":{"login":"sri49","id":19339773,"node_id":"MDQ6VXNlcjE5MzM5Nzcz","avatar_url":"https://avatars1.githubusercontent.com/u/19339773?v=4","gravatar_id":"","url":"https://api.github.com/users/sri49","html_url":"https://github.com/sri49","followers_url":"https://api.github.com/users/sri49/followers","following_url":"https://api.github.com/users/sri49/following{/other_user}","gists_url":"https://api.github.com/users/sri49/gists{/gist_id}","starred_url":"https://api.github.com/users/sri49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sri49/subscriptions","organizations_url":"https://api.github.com/users/sri49/orgs","repos_url":"https://api.github.com/users/sri49/repos","events_url":"https://api.github.com/users/sri49/events{/privacy}","received_events_url":"https://api.github.com/users/sri49/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-06-25T17:24:19Z","updated_at":"2019-06-25T20:08:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"133aa90667508cb7ac2907a2590c6dd6e61f3c91","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/health-connector/enroll/pulls/1710/commits","review_comments_url":"https://api.github.com/repos/health-connector/enroll/pulls/1710/comments","review_comment_url":"https://api.github.com/repos/health-connector/enroll/pulls/comments{/number}","comments_url":"https://api.github.com/repos/health-connector/enroll/issues/1710/comments","statuses_url":"https://api.github.com/repos/health-connector/enroll/statuses/e348472c9357ddf2677cff1ece50c2af5d0638e4","head":{"label":"health-connector:ma_preprod","ref":"ma_preprod","sha":"e348472c9357ddf2677cff1ece50c2af5d0638e4","user":{"login":"health-connector","id":25070367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDcwMzY3","avatar_url":"https://avatars0.githubusercontent.com/u/25070367?v=4","gravatar_id":"","url":"https://api.github.com/users/health-connector","html_url":"https://github.com/health-connector","followers_url":"https://api.github.com/users/health-connector/followers","following_url":"https://api.github.com/users/health-connector/following{/other_user}","gists_url":"https://api.github.com/users/health-connector/gists{/gist_id}","starred_url":"https://api.github.com/users/health-connector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/health-connector/subscriptions","organizations_url":"https://api.github.com/users/health-connector/orgs","repos_url":"https://api.github.com/users/health-connector/repos","events_url":"https://api.github.com/users/health-connector/events{/privacy}","received_events_url":"https://api.github.com/users/health-connector/received_events","type":"Organization","site_admin":false},"repo":{"id":86743454,"node_id":"MDEwOlJlcG9zaXRvcnk4Njc0MzQ1NA==","name":"enroll","full_name":"health-connector/enroll","private":false,"owner":{"login":"health-connector","id":25070367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDcwMzY3","avatar_url":"https://avatars0.githubusercontent.com/u/25070367?v=4","gravatar_id":"","url":"https://api.github.com/users/health-connector","html_url":"https://github.com/health-connector","followers_url":"https://api.github.com/users/health-connector/followers","following_url":"https://api.github.com/users/health-connector/following{/other_user}","gists_url":"https://api.github.com/users/health-connector/gists{/gist_id}","starred_url":"https://api.github.com/users/health-connector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/health-connector/subscriptions","organizations_url":"https://api.github.com/users/health-connector/orgs","repos_url":"https://api.github.com/users/health-connector/repos","events_url":"https://api.github.com/users/health-connector/events{/privacy}","received_events_url":"https://api.github.com/users/health-connector/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/health-connector/enroll","description":"An ACA-compliant enrollment system for individual and SHOP markets, built on Ruby on Rails, with a Mongo database","fork":true,"url":"https://api.github.com/repos/health-connector/enroll","forks_url":"https://api.github.com/repos/health-connector/enroll/forks","keys_url":"https://api.github.com/repos/health-connector/enroll/keys{/key_id}","collaborators_url":"https://api.github.com/repos/health-connector/enroll/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/health-connector/enroll/teams","hooks_url":"https://api.github.com/repos/health-connector/enroll/hooks","issue_events_url":"https://api.github.com/repos/health-connector/enroll/issues/events{/number}","events_url":"https://api.github.com/repos/health-connector/enroll/events","assignees_url":"https://api.github.com/repos/health-connector/enroll/assignees{/user}","branches_url":"https://api.github.com/repos/health-connector/enroll/branches{/branch}","tags_url":"https://api.github.com/repos/health-connector/enroll/tags","blobs_url":"https://api.github.com/repos/health-connector/enroll/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/health-connector/enroll/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/health-connector/enroll/git/refs{/sha}","trees_url":"https://api.github.com/repos/health-connector/enroll/git/trees{/sha}","statuses_url":"https://api.github.com/repos/health-connector/enroll/statuses/{sha}","languages_url":"https://api.github.com/repos/health-connector/enroll/languages","stargazers_url":"https://api.github.com/repos/health-connector/enroll/stargazers","contributors_url":"https://api.github.com/repos/health-connector/enroll/contributors","subscribers_url":"https://api.github.com/repos/health-connector/enroll/subscribers","subscription_url":"https://api.github.com/repos/health-connector/enroll/subscription","commits_url":"https://api.github.com/repos/health-connector/enroll/commits{/sha}","git_commits_url":"https://api.github.com/repos/health-connector/enroll/git/commits{/sha}","comments_url":"https://api.github.com/repos/health-connector/enroll/comments{/number}","issue_comment_url":"https://api.github.com/repos/health-connector/enroll/issues/comments{/number}","contents_url":"https://api.github.com/repos/health-connector/enroll/contents/{+path}","compare_url":"https://api.github.com/repos/health-connector/enroll/compare/{base}...{head}","merges_url":"https://api.github.com/repos/health-connector/enroll/merges","archive_url":"https://api.github.com/repos/health-connector/enroll/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/health-connector/enroll/downloads","issues_url":"https://api.github.com/repos/health-connector/enroll/issues{/number}","pulls_url":"https://api.github.com/repos/health-connector/enroll/pulls{/number}","milestones_url":"https://api.github.com/repos/health-connector/enroll/milestones{/number}","notifications_url":"https://api.github.com/repos/health-connector/enroll/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/health-connector/enroll/labels{/name}","releases_url":"https://api.github.com/repos/health-connector/enroll/releases{/id}","deployments_url":"https://api.github.com/repos/health-connector/enroll/deployments","created_at":"2017-03-30T20:00:23Z","updated_at":"2019-06-19T14:53:08Z","pushed_at":"2019-06-25T20:08:37Z","git_url":"git://github.com/health-connector/enroll.git","ssh_url":"git@github.com:health-connector/enroll.git","clone_url":"https://github.com/health-connector/enroll.git","svn_url":"https://github.com/health-connector/enroll","homepage":"","size":116935,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":113,"license":null,"forks":3,"open_issues":113,"watchers":5,"default_branch":"master"}},"base":{"label":"health-connector:master","ref":"master","sha":"79259501d4f28f25eec86f5485782373c9da9b31","user":{"login":"health-connector","id":25070367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDcwMzY3","avatar_url":"https://avatars0.githubusercontent.com/u/25070367?v=4","gravatar_id":"","url":"https://api.github.com/users/health-connector","html_url":"https://github.com/health-connector","followers_url":"https://api.github.com/users/health-connector/followers","following_url":"https://api.github.com/users/health-connector/following{/other_user}","gists_url":"https://api.github.com/users/health-connector/gists{/gist_id}","starred_url":"https://api.github.com/users/health-connector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/health-connector/subscriptions","organizations_url":"https://api.github.com/users/health-connector/orgs","repos_url":"https://api.github.com/users/health-connector/repos","events_url":"https://api.github.com/users/health-connector/events{/privacy}","received_events_url":"https://api.github.com/users/health-connector/received_events","type":"Organization","site_admin":false},"repo":{"id":86743454,"node_id":"MDEwOlJlcG9zaXRvcnk4Njc0MzQ1NA==","name":"enroll","full_name":"health-connector/enroll","private":false,"owner":{"login":"health-connector","id":25070367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDcwMzY3","avatar_url":"https://avatars0.githubusercontent.com/u/25070367?v=4","gravatar_id":"","url":"https://api.github.com/users/health-connector","html_url":"https://github.com/health-connector","followers_url":"https://api.github.com/users/health-connector/followers","following_url":"https://api.github.com/users/health-connector/following{/other_user}","gists_url":"https://api.github.com/users/health-connector/gists{/gist_id}","starred_url":"https://api.github.com/users/health-connector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/health-connector/subscriptions","organizations_url":"https://api.github.com/users/health-connector/orgs","repos_url":"https://api.github.com/users/health-connector/repos","events_url":"https://api.github.com/users/health-connector/events{/privacy}","received_events_url":"https://api.github.com/users/health-connector/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/health-connector/enroll","description":"An ACA-compliant enrollment system for individual and SHOP markets, built on Ruby on Rails, with a Mongo database","fork":true,"url":"https://api.github.com/repos/health-connector/enroll","forks_url":"https://api.github.com/repos/health-connector/enroll/forks","keys_url":"https://api.github.com/repos/health-connector/enroll/keys{/key_id}","collaborators_url":"https://api.github.com/repos/health-connector/enroll/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/health-connector/enroll/teams","hooks_url":"https://api.github.com/repos/health-connector/enroll/hooks","issue_events_url":"https://api.github.com/repos/health-connector/enroll/issues/events{/number}","events_url":"https://api.github.com/repos/health-connector/enroll/events","assignees_url":"https://api.github.com/repos/health-connector/enroll/assignees{/user}","branches_url":"https://api.github.com/repos/health-connector/enroll/branches{/branch}","tags_url":"https://api.github.com/repos/health-connector/enroll/tags","blobs_url":"https://api.github.com/repos/health-connector/enroll/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/health-connector/enroll/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/health-connector/enroll/git/refs{/sha}","trees_url":"https://api.github.com/repos/health-connector/enroll/git/trees{/sha}","statuses_url":"https://api.github.com/repos/health-connector/enroll/statuses/{sha}","languages_url":"https://api.github.com/repos/health-connector/enroll/languages","stargazers_url":"https://api.github.com/repos/health-connector/enroll/stargazers","contributors_url":"https://api.github.com/repos/health-connector/enroll/contributors","subscribers_url":"https://api.github.com/repos/health-connector/enroll/subscribers","subscription_url":"https://api.github.com/repos/health-connector/enroll/subscription","commits_url":"https://api.github.com/repos/health-connector/enroll/commits{/sha}","git_commits_url":"https://api.github.com/repos/health-connector/enroll/git/commits{/sha}","comments_url":"https://api.github.com/repos/health-connector/enroll/comments{/number}","issue_comment_url":"https://api.github.com/repos/health-connector/enroll/issues/comments{/number}","contents_url":"https://api.github.com/repos/health-connector/enroll/contents/{+path}","compare_url":"https://api.github.com/repos/health-connector/enroll/compare/{base}...{head}","merges_url":"https://api.github.com/repos/health-connector/enroll/merges","archive_url":"https://api.github.com/repos/health-connector/enroll/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/health-connector/enroll/downloads","issues_url":"https://api.github.com/repos/health-connector/enroll/issues{/number}","pulls_url":"https://api.github.com/repos/health-connector/enroll/pulls{/number}","milestones_url":"https://api.github.com/repos/health-connector/enroll/milestones{/number}","notifications_url":"https://api.github.com/repos/health-connector/enroll/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/health-connector/enroll/labels{/name}","releases_url":"https://api.github.com/repos/health-connector/enroll/releases{/id}","deployments_url":"https://api.github.com/repos/health-connector/enroll/deployments","created_at":"2017-03-30T20:00:23Z","updated_at":"2019-06-19T14:53:08Z","pushed_at":"2019-06-25T20:08:37Z","git_url":"git://github.com/health-connector/enroll.git","ssh_url":"git@github.com:health-connector/enroll.git","clone_url":"https://github.com/health-connector/enroll.git","svn_url":"https://github.com/health-connector/enroll","homepage":"","size":116935,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":113,"license":null,"forks":3,"open_issues":113,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/health-connector/enroll/pulls/1710"},"html":{"href":"https://github.com/health-connector/enroll/pull/1710"},"issue":{"href":"https://api.github.com/repos/health-connector/enroll/issues/1710"},"comments":{"href":"https://api.github.com/repos/health-connector/enroll/issues/1710/comments"},"review_comments":{"href":"https://api.github.com/repos/health-connector/enroll/pulls/1710/comments"},"review_comment":{"href":"https://api.github.com/repos/health-connector/enroll/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/health-connector/enroll/pulls/1710/commits"},"statuses":{"href":"https://api.github.com/repos/health-connector/enroll/statuses/e348472c9357ddf2677cff1ece50c2af5d0638e4"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"houndci-bot"}}