-
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
#4015 - FT program year total contribution limits #4154
Conversation
sources/packages/backend/apps/workers/src/controllers/assessment/assessment.controller.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/workers/src/controllers/assessment/assessment.controller.ts
Outdated
Show resolved
Hide resolved
...s/backend/libs/services/src/students-assessments/assessment-sequential-processing.service.ts
Outdated
Show resolved
Hide resolved
...rs/assessment/_tests_/e2e/assessment.controller-verifyAssessmentCalculationOrder.e2e-spec.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/workers/src/controllers/assessment/assessment.controller.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/workers/src/controllers/assessment/assessment.controller.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/libs/services/src/students-assessments/student-assessment.model.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/workers/src/controllers/assessment/assessment.controller.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/workflow/src/workflow-definitions/assessment-gateway.bpmn
Outdated
Show resolved
Hide resolved
programYearTotalFederalFSC: 0, | ||
programYearTotalProvincialFSC: 0, | ||
programYearTotalScholarshipsBursaries: 0, | ||
programYearTotalSpouseContributionWeeks: 0, |
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.
Same question for a later comment, should we return 0 when values are not defined?
If the SUM results in 0 I do not see a problem, but having 0 as a fallback for an undefined value, do we need that?
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.
we are not doing any calculation still in the workflow, i thought it would be better to return 0 than null, as the variable name states "programYearTotal" either it can be 0 or some numeric value.
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.
My point is the variable programYearTotal*
will not be even there if not present.
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 making the changes, please take a look at the latest comments.
!!applicationNumbers?.length; | ||
const [awardTotals, contributionTotals] = await Promise.all([ | ||
// Get the program year awards totals for part-time and full-time. | ||
await this.getProgramYearPreviousAwardsTotals( |
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.
We don't need to await here.
/** | ||
* Full-time program year contribution and its totals. | ||
*/ | ||
export interface programYearContributionTotal { |
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.
programYearContributionTotal should start with a capital letter.
sources/packages/backend/apps/workers/src/controllers/assessment/assessment.controller.ts
Outdated
Show resolved
Hide resolved
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 for making the changes, looks good 👍
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 changes!
Note: PR separation is not done, as the workflow change was very minor and it can be accommodated in a single PR.