-
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
VA forms: Add form 21P-0847 #12960
VA forms: Add form 21P-0847 #12960
Conversation
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.
See comments, should be small change, and the pipeline looks messed up anyway re: that one failing code check
|
||
multistamp(generated_form_path, stamp_path) | ||
rescue | ||
Rails.logger.error "Failed to generate stamped file: #{e.message}" |
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.
I don't think this is going to work unless you make it rescue => e
. And I'd really recommend capturing specific exceptions rather than any exception, but I won't block you on that.
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.
and maybe test exception handling if you're going to leave it so open ended?
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.
Thanks for calling that out! I refactored the stampers to cut down on that reused logic, added the => e
and added tests for errors.
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.
I still left the error generic because there are a few failure points, and which one it is isn't important for us right now. I will keep that suggestion in mind.
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.
It's totally your call
* initially generated files for 21p-0847 * add form mappings and tests * rename files * one more name change * refactor multistamp methods and add tests
Add form to va forms_api capabilities
Summary
Related issue(s)
Testing done
What areas of the site does it impact?
21P-0847 (non prod)
Acceptance criteria