-
Notifications
You must be signed in to change notification settings - Fork 61
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
[SIMPLE_FORMS] feat: updates to submission builder in accordance with new direction #18517
[SIMPLE_FORMS] feat: updates to submission builder in accordance with new direction #18517
Conversation
def submission_pdf_filename | ||
@submission_pdf_filename ||= "form_#{form_data_hash['form_number']}.pdf" | ||
form_number = form_data_hash['form_number'] | ||
@submission_pdf_filename ||= "form_#{form_number}_vagov_#{benefits_intake_uuid}.pdf" |
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'm using underscores here given that both the form_number and benefits_intake_uuid will contain dashes.
@@ -29,7 +29,7 @@ def handle_error(message, error, **) | |||
end | |||
|
|||
def temp_directory_path | |||
@temp_directory_path ||= Rails.root.join("tmp/#{benefits_intake_uuid}-#{SecureRandom.hex}/").to_s | |||
@temp_directory_path ||= Rails.root.join("tmp/#{benefits_intake_uuid}-#{SecureRandom.hex}-archive/").to_s |
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.
Ensuring there are no collisions with similar temp folder/file logic elsewhere.
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.
Makes sense to me! Glad to see the options get simplified. 😄
067adab
to
c2bff7f
Compare
@pennja it's probably worth merging master after the changes we made |
c2bff7f
to
9005220
Compare
Backend-review-group approval confirmed. |
Summary
Related issue(s)
Testing done
Requested Feedback
Any