Skip to content

#5739 - Add institution fields to assessment consolidated data#5864

Merged
tiago-graf merged 14 commits intomainfrom
feature/#5739-institution-type-elligibility
Mar 11, 2026
Merged

#5739 - Add institution fields to assessment consolidated data#5864
tiago-graf merged 14 commits intomainfrom
feature/#5739-institution-type-elligibility

Conversation

@tiago-graf
Copy link
Copy Markdown
Collaborator

@tiago-graf tiago-graf commented Mar 8, 2026

Summary

Adds additional institution fields to the assessment consolidated data

image

@tiago-graf tiago-graf self-assigned this Mar 8, 2026
@tiago-graf tiago-graf added Camunda Worflow Involves camunda workflow changes SIMS-Api SIMS-Api labels Mar 8, 2026
@tiago-graf tiago-graf requested a review from Copilot March 8, 2026 17:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds four new institution-level fields (country, province, classification, organizationStatus) to the assessment consolidated data pipeline. These fields are fetched from the database, included in the worker output DTO, mapped through BPMN workflow headers, and made available for assessment calculations in the Camunda workflow.

Changes:

  • Extends the database query, worker DTO, and controller mapping to include institutionCountry, institutionProvince, institutionClassification, and institutionOrganizationStatus from the Institution entity.
  • Adds corresponding BPMN header mappings in the load-assessment-consolidated-data.bpmn workflow definition to expose these fields as workflow variables.
  • Updates the workflow test model interface and test factories with the new fields for both full-time and part-time assessment consolidated data.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
sources/packages/backend/apps/workers/src/services/student-assessment/student-assessment.service.ts Adds 4 new institution columns to the SQL select query for assessment data retrieval.
sources/packages/backend/apps/workers/src/controllers/assessment/assessment.dto.ts Adds 4 new optional fields to ApplicationInstitutionJobOutDTO.
sources/packages/backend/apps/workers/src/controllers/assessment/assessment.controller.ts Maps the 4 new institution entity fields to the DTO in transformToAssessmentDTO.
sources/packages/backend/workflow/src/workflow-definitions/load-assessment-consolidated-data.bpmn Adds 4 new BPMN task headers to extract institution fields via JSONata expressions.
sources/packages/backend/workflow/test/models/assessment.model.ts Adds 4 new optional fields to the AssessmentConsolidatedData test interface.
sources/packages/backend/workflow/test/test-utils/factories/assessment-consolidated-data.ts Sets default values for the new fields in full-time, part-time, and default factory functions.

"test:watch": "jest --watch --config ./jest-unit-tests.json",
"test:cov": "cross-env ENVIRONMENT=test jest --coverage --forceExit --config ./jest-unit-tests.json",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand --config ./jest-unit-tests.json",
"test:e2e:all:local": "cross-env ENVIRONMENT=test TZ=UTC jest --config ./jest-e2e.json --forceExit",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Used by the test explorer to load the test definitions (this will show all e2e tests under the backend folder)

@tiago-graf tiago-graf marked this pull request as ready for review March 10, 2026 22:59
@andrewsignori-aot andrewsignori-aot self-requested a review March 11, 2026 16:26
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If this is to be added at this level, the more specific ones must be updated to avoid repetition.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Did some refactoring to use a preset test file so we we avoid some duplicated configs, renamed the files as well

Copy link
Copy Markdown
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 work, one comment only about the non-related ticket change.

Copy link
Copy Markdown
Collaborator

@weskubo-cgi weskubo-cgi left a comment

Choose a reason for hiding this comment

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

Changes look good. No additional comments.

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 20.26% ( 4565 / 22529 )
Methods: 9.56% ( 262 / 2741 )
Lines: 24.58% ( 3917 / 15933 )
Branches: 10.01% ( 386 / 3855 )

@github-actions
Copy link
Copy Markdown

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 48.61% ( 2712 / 5579 )
Methods: 38.57% ( 285 / 739 )
Lines: 55.39% ( 2049 / 3699 )
Branches: 33.13% ( 378 / 1141 )

@github-actions
Copy link
Copy Markdown

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 79.6% ( 9155 / 11501 )
Methods: 78.79% ( 1181 / 1499 )
Lines: 82.83% ( 6881 / 8307 )
Branches: 64.48% ( 1093 / 1695 )

@github-actions
Copy link
Copy Markdown

E2E SIMS API Coverage Report

Totals Coverage
Statements: 64.42% ( 12611 / 19575 )
Methods: 60.52% ( 1464 / 2419 )
Lines: 68.18% ( 9208 / 13505 )
Branches: 53.11% ( 1939 / 3651 )

Copy link
Copy Markdown
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.

Thanks for doing the changes, looks good 👍

@tiago-graf tiago-graf added this pull request to the merge queue Mar 11, 2026
Merged via the queue into main with commit fb7e331 Mar 11, 2026
22 checks passed
@tiago-graf tiago-graf deleted the feature/#5739-institution-type-elligibility branch March 11, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Camunda Worflow Involves camunda workflow changes SIMS-Api SIMS-Api

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants