-
Notifications
You must be signed in to change notification settings - Fork 14
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
#3827 - Student: Sole custody dependant question change #4091
#3827 - Student: Sole custody dependant question change #4091
Conversation
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. Thanks for the explanation.
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 is a weird form.io behavior that apparently is not saving the file properly in the below scenario. It seems to be an unexpected behavior that was not anticipated during the ticket estimation.
Please validate if the below scenario is reproducible.
Steps to reproduce
- Create a part-time application with 2 dependents.
- The first dependent should have the questions answered as below.
- "Declared on taxes due to a disability": yes, attach a file.
- "Is the dependant listed above supported by you...": yes, yes, attach a file.
- The second dependent should have the questions answered as below.
- "Declared on taxes due to a disability": no.
- "Is the dependant listed above supported by you...": yes, yes, attach a file.
The expected submitted data can be checked before the dryRun execution. Please note all the files are present.
"dependants": [
{
"fullName": "Son 1",
"dateOfBirth": "2024-12-01",
"attendingPostSecondarySchool": "no",
"declaredOnTaxes": "yes",
"supportnocustodyDependants": "yes",
"pdDependentUpload": [
{
"storage": "url",
"originalName": "UploadFile15Kb.txt",
"name": "UploadFile15Kb-79586b3d-74a4-400b-9a26-31aba6bfb58a.txt",
"url": "student/files/UploadFile15Kb-79586b3d-74a4-400b-9a26-31aba6bfb58a.txt",
"size": 15154,
"type": "text/plain",
"hash": ""
}
],
"dependantsIncomeTaxApplicationException": "studentApplicationException",
"dependantCustodyFileUpload": [
{
"storage": "url",
"originalName": "UploadFile17Kb.txt",
"name": "UploadFile17Kb-a78e347a-610d-40e2-9caf-40d3f7423a13.txt",
"url": "student/files/UploadFile17Kb-a78e347a-610d-40e2-9caf-40d3f7423a13.txt",
"size": 16876,
"type": "text/plain",
"hash": ""
}
],
"dependantsSharedCustodyApplicationException": "studentApplicationException"
},
{
"fullName": "Son 2",
"dateOfBirth": "2024-12-01",
"attendingPostSecondarySchool": "no",
"declaredOnTaxes": "no",
"supportnocustodyDependants": "yes",
"dependantCustodyFileUpload": [
{
"storage": "url",
"originalName": "UploadFile64Kb.txt",
"name": "UploadFile64Kb-5aaab94a-ee1b-4c6d-bada-a2e1df8fb727.txt",
"url": "student/files/UploadFile64Kb-5aaab94a-ee1b-4c6d-bada-a2e1df8fb727.txt",
"size": 65290,
"type": "text/plain",
"hash": ""
}
],
The expected submitted data is not persisted on DB with all data and the application "View/Edit" will be loaded with the file missing. Please note that NOT all the files are present.
[
{
"fullName": "Son 1",
"dateOfBirth": "2024-12-01",
"declaredOnTaxes": "yes",
"dependantCustodyFileUpload": [
{
"url": "student/files/UploadFile17Kb-a78e347a-610d-40e2-9caf-40d3f7423a13.txt",
"hash": "",
"name": "UploadFile17Kb-a78e347a-610d-40e2-9caf-40d3f7423a13.txt",
"size": 16876,
"type": "text/plain",
"storage": "url",
"originalName": "UploadFile17Kb.txt"
}
],
"supportnocustodyDependants": "yes",
"attendingPostSecondarySchool": "no",
"dependantsSharedCustodyApplicationException": "studentApplicationException"
},
{
"fullName": "Son 2",
"dateOfBirth": "2024-12-01",
"declaredOnTaxes": "no",
"dependantCustodyFileUpload": [
{
"url": "student/files/UploadFile64Kb-5aaab94a-ee1b-4c6d-bada-a2e1df8fb727.txt",
"hash": "",
"name": "UploadFile64Kb-5aaab94a-ee1b-4c6d-bada-a2e1df8fb727.txt",
"size": 65290,
"type": "text/plain",
"storage": "url",
"originalName": "UploadFile64Kb.txt"
}
],
"supportnocustodyDependants": "yes",
"attendingPostSecondarySchool": "no",
"dependantsSharedCustodyApplicationException": "studentApplicationException"
}
],
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.
Thanks for putting the extra effort with the investigation.
As we talked, let's consider the "clearOnHide": false
as a workaround, lest ask biz to create a ticket to have it fixed and/or have form.io upgraded to the latest version that has a ton of fixes.
Besides that, please check with biz if we should make a similar workaround for the other program years since it is affecting PROD.
Quality Gate passedIssues Measures |
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.
Thanks again for the investigation, looks good 👍
Please check with biz if we should make a similar workaround for the other program years since it is affecting PROD.
"clearOnHide": false
) for file componentspdDependentUpload
anddependantCustodyFileUpload
to retain file data in the data column in each application record.pdDependentUpload
todeclaredOnTaxes
condition.Note
Please note that the key
supportnocustodyDependants
is being used in Data Inventory Report SQL script. The current approach moves the keysupportnocustodyDependants
fromapplications.data
toapplications.dependants
for applications 2025-2026 only, so the Data Inventory Report CSV file will lose the data for column "Has dependants without sole custody flag" (supportnocustodyDependants
) for applications 2025-2026. To retain this data, a simple workaround solution is available in the workaround commit, where the keysupportnocustodyDependants
is still accessible inapplications.data
and its value is calculated based on whether any dependant is without sole custody or not inside the dependants array. As discussed in the standup, the workaround is not recommended, so it mentioned here to as a reference to keep developers updated.Screenshot on the student portal
Screenshot on the ministry portal
Screenshot of the exception trigger when files are required