Skip to content
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

#3748 - Content - Student current year income dynamic year #3791

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

bidyashish
Copy link
Collaborator

  • Student current year income application question the dynamic year calculation should be first year of program year.
  • Student current year income change request question should have a dynamic year calculation for first year of program year.

Below AC were Done previously and not needed any more as part of this PR.

  • Remove the "COVID-19" radio option for the student's current year income application question
  • Remove the "COVID-19" radio option for the student's current year income change request question

@bidyashish bidyashish self-assigned this Oct 11, 2024
@bidyashish bidyashish added Student Student Features Content Tasks related to UIUX content Form.io Form IO definitions changed. labels Oct 11, 2024
"properties": {},
"customClass": "",
"lockKey": true,
"calculateValue": "value = data.programYear ? data.programYear: \"\";"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If data.programYear already has the desired value, is there a need to create a second hidden field?

Copy link
Collaborator Author

@bidyashish bidyashish Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have tried to separate data.programYear with 'Current tax Tear', so I have defined new Current tax year hidden value. Just in case if we need know Current tax year is fetched.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

About the justification "Just in case if we need know Current tax year is fetched", when that would be a benefit since this is only used to be displayed in some labels and is derived from the program year?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, 'data.programYear' gives first year of program year like '2024', which is the required value for Current tax year. I was thinking to use separate variable name of Current tax year rather than use same data.programYear as variable name is not as per the required Current tax year to follow standardization.

"input": true,
"tableView": true,
"key": "currentTaxYear",
"label": "currentTaxYear",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, the label can follow the same pattern as the exiting ones (e.g. Current Tax Year).
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Label updated

"label": "currentTaxYear",
"protected": false,
"unique": false,
"persistent": true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please set the persistent to false.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice changes, please take a look at the comments.

@guru-aot guru-aot self-requested a review October 15, 2024 20:48
@@ -279,7 +298,7 @@
"value": ""
}
],
"content": "If you have had, or anticipate having a significant decrease in income for {{data.calculatedTaxYear}}, you may request to be assessed using this year's estimated income.",
"content": "If you have had, or anticipate having a significant decrease in income for {{data.currentTaxYear}}, you may request to be assessed using this year's estimated income.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use data.programYear, or please explain why this was not used.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have tried to separate data.programYear with 'Current tax Tear', so I have defined new Current tax year hidden value. Just in case if we need know Current tax year is being fetched.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The data.programYear in this form is not actually the "2024-2025" program year name?
If I am right the question from @guru-aot would not make sense and and reply from @bidyashish should probably mention it. Please let me know if I am missing something.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes thats correct, data.programYear gives '2024-2025' as Program year, I used the the similar logic as calculatedTaxYear to get Current Tax Year.

Copy link
Collaborator

@guru-aot guru-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @bidyashish , please have a look on the comments.

Copy link

Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.61% ( 3616 / 15992 )
Methods: 10.08% ( 201 / 1994 )
Lines: 26.04% ( 3142 / 12066 )
Branches: 14.13% ( 273 / 1932 )

Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 58.64% ( 509 / 868 )
Methods: 52.88% ( 55 / 104 )
Lines: 62.27% ( 411 / 660 )
Branches: 41.35% ( 43 / 104 )

Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 83.88% ( 1046 / 1247 )
Methods: 83.59% ( 107 / 128 )
Lines: 84.91% ( 895 / 1054 )
Branches: 67.69% ( 44 / 65 )

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 65.61% ( 5522 / 8416 )
Methods: 63.14% ( 680 / 1077 )
Lines: 69.74% ( 4365 / 6259 )
Branches: 44.17% ( 477 / 1080 )

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving assuming the "Current Tax Year" hidden variable was created in all forms using the same name to avoid confusion in the future.

Copy link
Collaborator

@guru-aot guru-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work @bidyashish

@bidyashish bidyashish added this pull request to the merge queue Oct 15, 2024
Merged via the queue into main with commit 693f128 Oct 15, 2024
20 checks passed
@bidyashish bidyashish deleted the feature/#3748-Content-update-income-year-dynamic branch October 16, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content Tasks related to UIUX content Form.io Form IO definitions changed. Student Student Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants