Skip to content

Commit

Permalink
Remove PII
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbendel committed Jul 1, 2024
1 parent 8041449 commit b0406ec
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions backend/app/services/learner_activity_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def build_headers(csv)
'Completed At',
'Participant Created At',
'Participant Research ID',
'Participant Name',
'New Participant Study?',
'Test Account?'
]
Expand All @@ -40,14 +39,6 @@ def get_users(launches)
UserInfo.for_uuids(@user_uuids)
end

def find_user_email(account)
account['contact_infos']&.find do |ci|
ci['type'] == 'EmailAddress' &&
ci['is_verified'] == true &&
ci['is_guessed_preferred'] == true
end || {}
end

def build_rows(csv, users, launches)
launches.includes(:stage, :research_id, study: :first_launched_study).find_each do |launch|
next if launch.stage.study.first_launched_study.opted_out_at
Expand All @@ -67,7 +58,6 @@ def build_rows(csv, users, launches)
launch.completed_at,
launch.research_id.created_at,
launch.research_id.id,
account['name'] || '',
launch.research_id.is_new_user?(launch.first_launched_at),
account['is_test'] ? 'X' : nil
]
Expand Down

0 comments on commit b0406ec

Please sign in to comment.