Skip to content

#5599 - Active SIN Numbers External API#5939

Merged
tiago-graf merged 10 commits intomainfrom
feature/#5599-external-api-sins
Mar 30, 2026
Merged

#5599 - Active SIN Numbers External API#5939
tiago-graf merged 10 commits intomainfrom
feature/#5599-external-api-sins

Conversation

@tiago-graf
Copy link
Copy Markdown
Collaborator

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

Summary

Implements a new GET /external/student/full-time-active-sins endpoint for the external client that returns the list of distinct active SINs for full-time students.

@tiago-graf tiago-graf self-assigned this Mar 21, 2026
@tiago-graf tiago-graf added the Backend Used by the dependabot pull requests to identify PRs related to the backend. label Mar 21, 2026
@tiago-graf tiago-graf marked this pull request as ready for review March 23, 2026 20:34
Copilot AI review requested due to automatic review settings March 23, 2026 20:34
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

Implements a new External student API endpoint to retrieve distinct “active” SINs for full-time students by querying both SIMS (current) and SFAS (legacy) data sources.

Changes:

  • Added StudentInformationService query methods to fetch distinct active full-time SINs from SIMS and SFAS.
  • Added GET endpoint on StudentExternalController returning combined SINs via ActiveSINsAPIOutDTO.
  • Added e2e coverage validating inclusion/exclusion rules for SIMS and SFAS scenarios.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
sources/packages/backend/apps/api/src/services/student/student-information.service.ts Adds query-builder methods to find “active” full-time SINs in SIMS and SFAS.
sources/packages/backend/apps/api/src/route-controllers/student/student.external.controller.ts Exposes a new external GET endpoint that returns the merged SIN list.
sources/packages/backend/apps/api/src/route-controllers/student/models/student-external-search.dto.ts Adds output DTO for the new endpoint response shape.
sources/packages/backend/apps/api/src/route-controllers/student/tests/e2e/student.external.controller.getActiveSINs.e2e-spec.ts Adds e2e tests for inclusion/exclusion logic and authentication.

tiago-graf and others added 3 commits March 23, 2026 13:57
Copy link
Copy Markdown
Collaborator

@sh16011993 sh16011993 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 @tiago-graf 👍

@dheepak-aot dheepak-aot self-requested a review March 25, 2026 19:54
@github-actions
Copy link
Copy Markdown

E2E SIMS API Coverage Report

Totals Coverage
Statements: 65.62% ( 13029 / 19854 )
Methods: 62.57% ( 1538 / 2458 )
Lines: 69.22% ( 9450 / 13653 )
Branches: 54.53% ( 2041 / 3743 )

@dheepak-aot
Copy link
Copy Markdown
Collaborator

Thanks for making the changes. Added few more comments.

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 20.1% ( 4579 / 22781 )
Methods: 9.45% ( 262 / 2773 )
Lines: 24.48% ( 3931 / 16059 )
Branches: 9.77% ( 386 / 3949 )

@github-actions
Copy link
Copy Markdown

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 48.27% ( 2713 / 5620 )
Methods: 38.26% ( 285 / 745 )
Lines: 55.14% ( 2050 / 3718 )
Branches: 32.67% ( 378 / 1157 )

@tiago-graf tiago-graf enabled auto-merge March 29, 2026 03:59
@github-actions
Copy link
Copy Markdown

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 79.33% ( 9156 / 11542 )
Methods: 78.47% ( 1181 / 1505 )
Lines: 82.66% ( 6882 / 8326 )
Branches: 63.88% ( 1093 / 1711 )

Copy link
Copy Markdown
Collaborator

@dheepak-aot dheepak-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 making the changes. Looks good 👍

@tiago-graf tiago-graf added this pull request to the merge queue Mar 30, 2026
Merged via the queue into main with commit 4c53af9 Mar 30, 2026
20 of 21 checks passed
@tiago-graf tiago-graf deleted the feature/#5599-external-api-sins branch March 30, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend Used by the dependabot pull requests to identify PRs related to the backend.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants