-
Notifications
You must be signed in to change notification settings - Fork 13
#4871 - Incorporate FT UC weeks from legacy while triggering SSR restriction #5057
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
#4871 - Incorporate FT UC weeks from legacy while triggering SSR restriction #5057
Conversation
…m_legacy' into 4871_incorporate_ft_UC_weeks_from_legacy
| 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 { |
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 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.
...d/apps/api/src/services/student-scholastic-standings/student-scholastic-standings.service.ts
Outdated
Show resolved
Hide resolved
...nd/apps/api/src/services/student-scholastic-standings/student-scholastic-standings.models.ts
Outdated
Show resolved
Hide resolved
|
dheepak-aot
left a comment
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 @sh16011993 . Looks good 👍
bidyashish
left a comment
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.
LHTM @sh16011993



As a part of this PR, the following were completed:
getScholasticStandingSummarymethod of thestudent-scholastic-standings.service.tsgetSFASTotalUnsuccessfulCompletionWeeksmethod inside thegetScholasticStandingSummarymethod.getScholasticStandingSummarymethod and remove thegetTotalFullTimeUnsuccessfulWeeks, replacing it with thegetScholasticStandingSummary.