-
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
#3622 - Rough Reshape of FT Assessment and DMN #3772
#3622 - Rough Reshape of FT Assessment and DMN #3772
Conversation
sources/packages/backend/workflow/src/workflow-definitions/fulltime-assessment-2024-2025.bpmn
Show resolved
Hide resolved
sources/packages/backend/workflow/src/workflow-definitions/fulltime-assessment-2024-2025.bpmn
Show resolved
Hide resolved
<zeebe:ioMapping> | ||
<zeebe:output source="=studentDataPartnerEmploymentInsurance" target="calculatedDataPartnerEmploymentInsturanceBenefits" /> | ||
<zeebe:output source="=min(studentDataTransportationCost, dmnFullTimeCalculatedDataApplicationtransportationMaximum.limitApplicationTransportation) " target="calculatedDataReturnTransportationCost" /> |
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.
...workflow/test/2022-2023/assessment-gateway/assessment-gateway.originalAssessment.e2e-spec.ts
Outdated
Show resolved
Hide resolved
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.
Nice work @lewischen-aot. Please take a look at the comments.
sources/packages/backend/workflow/src/workflow-definitions/fulltime-assessment-2022-2023.bpmn
Outdated
Show resolved
Hide resolved
...t/2022-2023/fulltime-assessment/eligibility/fulltime-assessment-eligibility-BGPD.e2e-spec.ts
Show resolved
Hide resolved
...packages/backend/workflow/test/2022-2023/fulltime-assessment/fulltime-assessment.e2e-spec.ts
Show resolved
Hide resolved
...t/2024-2025/fulltime-assessment/eligibility/fulltime-assessment-eligibility-CSGF.e2e-spec.ts
Outdated
Show resolved
Hide resolved
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.
Approving on behalf of @dheepak-aot.
I checked the open comments and I was able to see the implemented changes as requested, hence approving it.
Please keep in mind that I am not acting as a secondary reviewer.
@@ -1,16 +1,15 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_0ihicdz" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.20.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.1.0" camunda:diagramRelationId="7a75e87a-6774-4e60-9a94-5dbbe3be143a"> | |||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" xmlns:color="http://www.omg.org/spec/BPMN/non-normative/color/1.0" xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_0ihicdz" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.27.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.4.0" camunda:diagramRelationId="7a75e87a-6774-4e60-9a94-5dbbe3be143a"> |
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.
👍
// TODO: Fix typo used in FT applications. | ||
caclulatedDataTotalAssessedNeed: number; |
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.
👍
@@ -18,12 +18,9 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGP | |||
); | |||
// Assert | |||
// 4000 is the const value set on dmnFullTimeAwardFederalAllowableLimits.limitAwardCSGPAmount. | |||
// When the CSGP is eligible its amount will always be 4000. The same value is expected for |
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's why I think it's not a good idea to hardcode numbers in comments.
@@ -18,12 +18,9 @@ describe(`E2E Test Workflow fulltime-assessment-${PROGRAM_YEAR}-eligibility-CSGP | |||
); | |||
// Assert | |||
// 4000 is the const value set on dmnFullTimeAwardFederalAllowableLimits.limitAwardCSGPAmount. | |||
// When the CSGP is eligible its amount will always be 4000. The same value is expected for | |||
// When the CSGP is eligible its amount will always be 2800. The same value is expected for | |||
// provincial and federal grants. |
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.
Shouldn't the comment be updated as we don't have the provincial anymore?
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.
Looks good. Thanks!
dmnFullTimeProgramYearMaximums
todmnFullTimeCalculatedDataProgramYearMaximums
since its declaration in Business Rule TaskdmnFullTimeProgramYearMaximums
.min(studentDataTransportationCost, dmnFullTimeCalculatedDataApplicationtransportationMaximum)
forcalculatedDataReturnTransportationCost
thanks to investigation in the PR comment.calculatedDataAdditionalTransportationAllowance
tocalculatedDataTotalAdditionalTransportationAllowance
(with "Total") during the calculationcalculatedDataReturnTransportationCost + calculatedDataAdditionalTransportationAllowance
forcalculatedDataTotalTransportationCost
, wherecalculatedDataAdditionalTransportationAllowance
is not declared.assessment-gateway.originalAssessment.e2e-spec.ts
due to unknown cause of failure. Smoke tests pass with applications with two parents as supporting users, so the failure of this E2E test may require further investigation down the road.transportationCost: null
for test case "Should generate expected fulltime assessment values when the student is single and independent." in filefulltime-assessment.e2e-spec.ts
as variablesdmnFullTimeApplicationTransportationMaximum
are not imported properly during full-time assessment calculations.fulltime-assessment-eligibility-CSGT.e2e-spec.ts
test files as it is CSGT is no longer an active program.Screenshot of full-time application assessment and NOA