-
Notifications
You must be signed in to change notification settings - Fork 0
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
CCAP-63 Add new PDF custom preparers #410
Conversation
submittedAt.ifPresent(offsetDateTime -> { | ||
offsetDateTime.atZoneSameInstant(chicagoTimeZone); | ||
String formattedSubmittedAtDate = offsetDateTime.atZoneSameInstant(chicagoTimeZone).format(receivedTimestampFormat); | ||
results.put("receivedTimestamp", new SingleField("receivedTimestamp", formattedSubmittedAtDate, null)); |
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.
Wondering if we can use formattedSubmittedAtDate
and formattedSubmittedAtDate
to set the value instead of adding new logic.
It seems like the receivedTimestamp value we want is =
submission.getInputData().get("formattedSubmittedAtDate") +", "+submission.getInputData().get("formattedSubmittedAtTime")+ " CST"
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.
Hmmm formattedSubmittedAtDate
isn't available. Maybe it related to this bug mentioned in slack. Looking into it.
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.
Ok so I'm not going to use formattedSubmittedAtDate
and formattedSubmittedAtTime
for a few reasons:
- These values are not added until the action
FormatSubmittedAtDate
runs. Which means this couldn't be unit tested. - The format that those produce are in a different format.
- 🔴
07/25/2024 at 3:22 PM
- 🟢
June 25, 2024, 3:22 PM CDT
CST
can't be a string because half the year it'sCST
and the other half of the year it'sCDT
.- The action is really just meant to be a utility to format the date for display on the screen and I don't want to also add other responsibilities to it.
f76188e
to
574748d
Compare
Looks great! |
- Add unit test for parentFullName - Add unit test for receivedTimestamp - Ignore these fields in verifyPDF
… on the screen it needs the variables for rendering
574748d
to
c15f9c6
Compare
🔗 Jira ticket
CCAP-63
✍️ Description
parentFullName
receivedTimestamp
verifyPDF
because fields from custom preparers aren't in the db and that's a limitation of our pdf testing.FormatSubmittedAtDate
to happen on thesubmit-confirmation
screen so that it was triggering after thesubmittedAt
is filled, so that the confirmation screen correctly displays the formatted date time (this was not apart of the ticket but it was simple and closely releated).✅ Completion tasks