Skip to content

Conversation

@sh16011993
Copy link
Collaborator

@sh16011993 sh16011993 commented Aug 14, 2025

As a part of this PR, the following were completed:

  • Centralized the getScholasticStandingSummary method of the student-scholastic-standings.service.ts
  • Moved getSFASTotalUnsuccessfulCompletionWeeks method inside the getScholasticStandingSummary method.
  • Refactored getScholasticStandingSummary method and remove the getTotalFullTimeUnsuccessfulWeeks, replacing it with the getScholasticStandingSummary.

@sh16011993 sh16011993 self-assigned this Aug 14, 2025
@sh16011993 sh16011993 added the SIMS-Api SIMS-Api label Aug 14, 2025
@sh16011993 sh16011993 marked this pull request as draft August 14, 2025 21:42
@sh16011993 sh16011993 changed the title #4871 - Incorporate FT UC weeks from legacy #4871 - Incorporate FT UC weeks from legacy while triggering SSR restriction Aug 14, 2025
@sh16011993 sh16011993 marked this pull request as ready for review August 14, 2025 22:20
Comment on lines 615 to 638
if (offeringIntensity) {
queryBuilder.andWhere(
"application.offeringIntensity = :offeringIntensity",
{
offeringIntensity,
},
);
// If offeringIntensity is specified, return only the sum for that intensity.
const result = await queryBuilder
.groupBy("application.offeringIntensity")
.getRawOne<ScholasticStandingSummary>();
// If fullTime, add SFAS weeks.
if (offeringIntensity === OfferingIntensity.fullTime) {
const sfasUnsuccessfulCompletionWeeks =
await this.sfasIndividualService.getSFASTotalUnsuccessfulCompletionWeeks(
studentId,
);
return {
fullTimeUnsuccessfulCompletionWeeks:
sfasUnsuccessfulCompletionWeeks +
(result?.totalUnsuccessfulWeeks ?? 0),
};
}
} else {
Copy link
Collaborator

@dheepak-aot dheepak-aot Aug 14, 2025

Choose a reason for hiding this comment

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

Looks like there is a misunderstanding from dev syncup regarding the filter.

I will not consider using the filter as a blocker. But if the filter is used, it must be used only to restrict the FT legacy query which is always required as of now.

Hence, it would recommend not to change any logic or introduce filter but just centralize the logic.

I infer the same from the technical context in the ticket.

@andrewsignori-aot @bidyashish let me know if you have a different understanding.

@sonarqubecloud
Copy link

@github-actions
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 21.45% ( 4114 / 19179 )
Methods: 9.56% ( 234 / 2448 )
Lines: 24.81% ( 3561 / 14351 )
Branches: 13.4% ( 319 / 2380 )

@github-actions
Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 74.3% ( 896 / 1206 )
Methods: 77.14% ( 108 / 140 )
Lines: 77.16% ( 696 / 902 )
Branches: 56.1% ( 92 / 164 )

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

Nice work @sh16011993 . Looks good 👍

@github-actions
Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 86.43% ( 1548 / 1791 )
Methods: 84.62% ( 176 / 208 )
Lines: 88.75% ( 1278 / 1440 )
Branches: 65.73% ( 94 / 143 )

@github-actions
Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 73.83% ( 7342 / 9944 )
Methods: 71.6% ( 900 / 1257 )
Lines: 77.3% ( 5688 / 7358 )
Branches: 56.73% ( 754 / 1329 )

Copy link
Contributor

@bidyashish bidyashish left a comment

Choose a reason for hiding this comment

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

@andrewsignori-aot andrewsignori-aot added this pull request to the merge queue Aug 15, 2025
Merged via the queue into main with commit 12e0f21 Aug 15, 2025
22 checks passed
@andrewsignori-aot andrewsignori-aot deleted the 4871_incorporate_ft_UC_weeks_from_legacy branch August 15, 2025 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SIMS-Api SIMS-Api

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants