-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#91156 [10-10EZR]: Update submission failure notifications and add user initials to successful submissions #18348
#91156 [10-10EZR]: Update submission failure notifications and add user initials to successful submissions #18348
Conversation
lib/form1010_ezr/service.rb
Outdated
@@ -60,24 +64,22 @@ def submit_form(parsed_form) | |||
log_and_raise_error(e, parsed_form) | |||
end | |||
|
|||
def log_submission_failure(parsed_form) | |||
StatsD.increment("#{Form1010Ezr::Service::STATSD_KEY_PREFIX}.failed_wont_retry") | |||
def log_submission_failure(parsed_form, retries_exhausted: false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding this boolean will allow us to determine if the failure was the last retry attempt or not.
lib/form1010_ezr/service.rb
Outdated
middle_initial: parsed_form.dig('veteranFullName', 'middle')&.chr || 'no initial provided', | ||
last_initial: parsed_form.dig('veteranFullName', 'last')&.chr || 'no initial provided' | ||
} | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DRY'd up this piece of code.
|
||
if parsed_form.present? | ||
PersonalInformationLog.create!( | ||
data: parsed_form, |
Check failure
Code scanning / CodeQL
Clear-text storage of sensitive information High
a write to veteranDateOfBirth
This stores sensitive data returned by
a write to veteranSocialSecurityNumber
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please confirm this is intended and is not a security issue?
Backend-review-group approval confirmed. |
Summary
Related issue(s)
Testing done
Screenshots
Note: Optional
What areas of the site does it impact?
10-10EZR form
Acceptance criteria
Requested Feedback
(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?