-
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
API-26273-526-v2-sec-6-serv-info-pdf-gen #12748
Conversation
@pdf_data | ||
end | ||
|
||
def symbolize_ser_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.
Nitpick: Can we just spell out "service" instead or "ser" in method name?
@pdf_data | ||
end | ||
|
||
def most_recent_ser_per |
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.
Also nitpick: Can we spell out "service_period" instead of "ser_per" in method name?
si[:prisonerOfWarConfinement][:confinementDates][:endDate] = end_date | ||
si[:confinedAsPrisonerOfWar] = true if start | ||
si | ||
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.
I'm not totally sure this would handle multiple confinements. When I run something through it like
"confinements": [ { "approximateBeginDate": "2021-11-06", "approximateEndDate": "2023-12-09" }, { "approximateBeginDate": "2016-11-06", "approximateEndDate": "2017-12-09" } ],
the last one just overrides the first. Obviously totally possible I misunderstand what the output needs to be exactly so just let me know if that is the case but I thought it was worth at least asking about.
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.
@rockwellwindsor-va good catch, thanks! Pushing now.
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.
Looks good to me!
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.
Looks good to me! (twice !)
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.
Pulled it down just now, ran RSpec, everything still looks good to me on this.
* WIP - adds serv info to pdf mapping * Adds service info mapping * Changes schema; removes confinement from confinements * foramtted schema * rubocop * Adds unitAddress and confinement changes back to schema and form_526 * Adds back the unitAddress to request and example.json * Changes confinement dates to be more realistic * Addresses PR comments
Summary
Maps the service information properties to the 526 PDF Generator (Column C, 526EZ PDF Generator Mapping on Schema Planning Doc).
Related issue(s)
Testing done
Screenshots
Note: Optional
What areas of the site does it impact?
(Describe what parts of the site are impacted andifcode touched other areas)
Acceptance criteria