-
Notifications
You must be signed in to change notification settings - Fork 62
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
Api 40300 526 bd upload refactor #18730
base: master
Are you sure you want to change the base?
Conversation
# Generate form body to upload a document | ||
# | ||
# @return {parameters, file} | ||
def generate_upload_body(claim:, doc_type:, pdf_path:, action:, original_filename: nil) |
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 concerned this method will basically need to be duplicated in the other service files (if I am seeing the direction correctly.
Wondering if there is a way to move this to the service_base perhaps and make it universal enough that we can invoke this one method from the different service files?
I just feel like this method should still be shared, acknowledging of course that the direction may become clearer with another service in the mix to see.
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.
good callout here. just had a sync with Matt and I and we were in agreeance 100%. I like the idea of an intermediary service, somewhat generic, and specific to the document functionality. The original idea was to move to servicebase but with that service, it handles most the root level and generic functionalities. The thought now is to have a DocumentService < ServiceBase that would handle some of these shared, generic document specific methods, and then we'll just have a Service for each form type, hopefully with just a singular "extraction" method to get the values needed to call the rest of the services within the DocumentService, which will be the builders.
Hopefully that makes sense.
Summary
Related issue(s)
API-40300
Testing done
Flipper.enable :claims_claim_uploader_use_bd
Flipper.enable ::claims_api_bd_refactor
What areas of the site does it impact?
526 v2 synchronous submissions
526 v2 submissions
526 v2 attachment submissions
526 v1 submissions
526 v1 attachment submissions
Acceptance criteria