-
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-571] - set earliest childcare start date in flow #990
[CCAP-571] - set earliest childcare start date in flow #990
Conversation
DateTimeFormatter formatter) { | ||
if (earliestCCAPStartDate.isBlank()) { | ||
return childCCAPStartDate; | ||
} |
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.
these methods moved to either the Verify date action or Date Utilities
src/main/java/org/ilgcc/app/submission/actions/UpdateEarliestCCAPStartDate.java
Fixed
Show fixed
Hide fixed
String formattedMonth = String.format("%02d", Integer.parseInt(month)); | ||
String formattedDay = String.format("%02d", Integer.parseInt(day)); | ||
|
||
return String.format("%s/%s/%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.
Now this method saves dates with leading zeros so no need to have an extra method that does that
3d849cd
to
7b2723f
Compare
return earliestDate.get().isBefore(childcareStartDate.get()) ? earliestCCAPStartDate : childCCAPStartDate; | ||
} | ||
|
||
private String addLeadingZerosToDateString(String dateStr) { |
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.
leading zeros are added when the date is set
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.
this looks good to me! thanks!
src/main/resources/flows-config.yaml
Outdated
@@ -467,6 +467,7 @@ flow: | |||
doc-upload-confirm: | |||
nextScreens: null | |||
children-delete: | |||
onPostAction: UpdateEarliestCCAPStartDate |
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.
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.
hm. could it be because the nextScreens is null? what happens if you put some random screen there for it to go... somewhere?
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.
That doesn't resolve it unfortunately
…ixes typo in Save CCAP Start Date
🔗 Jira ticket
CCAP-571
✍️ Description
📷 Design reference
n/a
✅ Completion tasks