-
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
[DBEX] log when Form 0781 document upload fails #17625
[DBEX] log when Form 0781 document upload fails #17625
Conversation
|
||
def status_updater(status, document_upload) | ||
# UploadStatusUpdater encapsulates all parsing of a status response from Lighthouse | ||
@status_updater ||= BenefitsDocuments::Form526::UploadStatusUpdater.new(status, document_upload) | ||
end | ||
|
||
def statsd_document_base_key(statsd_document_type_key) | ||
@statsd_document_base_key ||= "#{STATSD_BASE_KEY}.#{statsd_document_type_key}" | ||
end | ||
|
||
def log_failure(document_upload) |
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.
Nice. I like that you pulled out some logic fromupdate_document_status
and made these methods 🎉
return unless document_upload.form0781_types? | ||
|
||
submission = document_upload.form526_submission | ||
Rails.logger.info( |
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.
Even though it's a failure, you want this at the info
level?
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.
@rmtolmach Considering your posed question, in ef9e562, I've updated the log level to warn
. Thanks!
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.
LGTM as long as the info
logger is the logging level you want. Otherwise, @
me and I'll re-review if you make any changes.
418d1cc
to
ef9e562
Compare
@rmtolmach Reposting...
|
Summary
Objective: Implements a system for periodically polling the Lighthouse uploads/status endpoint to confirm the status of supplemental documents submitted to Lighthouse as part of a Form 526 Submission. The purpose of this system is to surface successes and failures that happen in the Form 526 process after being forwarded to Lighthouse for processing.
form0781_types?
instance method toLighthouse526DocumentUpload
(includes test)update_document_status
helper method inUpdateDocumentsStatusService
YES/NORelated issue(s)
Testing done
What areas of the site does it impact?
Acceptance criteria