You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1815 - Ignore restrictions for specific disbursement(s) within an assessment (#3679)
- Created the `restrictionBypassesResolutionStep` to resolve active
bypasses when needed as the last step in the e-Cert generation process
for part-time and full-time.
- Changed the `getEligibleDisbursements` query adding the information
from the active bypasses and the restriction bypassed.
- Method `getRestrictionByActionType` was changed to use the effective
restrictions (active restrictions not bypassed) instead of the active
restrictions.
- The BCLM step is ignored at the beginning of its execution. If the
BCLM restriction is in place the method would not be executed (logic
already in place). The condition based on the bypass was added either
way to ensure that whatever happens to the BCLM logic the bypass will
guarantee that the store step will be ignored.
- A log was created to list all the active restrictions known during the
e-Cert calculation. The log records the restriction code and the student
restriction ID for easier troubleshooting.
- Created factories for the new table `ApplicationRestrictionBypass`.
### E2E Tests
#### Full-time
- Should generate BC awards amounts with no restriction deductions and
resolve the restriction bypass when a student has an active 'BCLM'
restriction and it is bypassed with behavior 'Next disbursement only'.
- Should have the e-Cert generated for a full-time application and the
bypass active when a student has an active 'Stop full time disbursement'
restriction and it is bypassed with behavior 'All disbursements'.
- Should prevent an e-Cert generation and keep the bypass active when
multiple 'Stop full time disbursement' restrictions exist and only one
is bypassed and it is bypassed with behavior 'Next disbursement only'.
#### Part-time
- Should have the e-Cert generated for a part-time application and the
bypass resolved when a student has an active 'Stop part time
disbursement' restriction and it is bypassed with behavior 'Next
disbursement only'.
- Should prevent an e-Cert generation and keep the bypass active when
multiple 'Stop part time disbursement' restrictions exist and only one
is bypassed and it is bypassed with behavior 'Next disbursement only'.
### Log sample without the bypass

### Log sample with a bypass in place.

### Noted generated when a bypass is resolved by the system
AC was adjusted later to include the application number.

Copy file name to clipboardExpand all lines: sources/packages/backend/apps/api/src/route-controllers/assessment/_tests_/e2e/assessment.students.controller.confirmAssessmentNOA.e2e-spec.ts
it(`Should allow NOA approval when the current assessment is blocked by a '${RestrictionActionType.StopPartTimeDisbursement}' restriction but the application has a restriction bypass.`,async()=>{
0 commit comments