Skip to content
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

#4052 - Fix the legacy program year totals for program year limits #4058

Merged

Conversation

dheepak-aot
Copy link
Collaborator

@dheepak-aot dheepak-aot commented Dec 10, 2024

Fix the legacy program year totals for program year limits

  • When calculating the program year totals in the worker, if the student never had any assessment calculated before, then use current date as reference assessment date.
  • Add/Update E2E test to validate the exact scenario.

Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.01% ( 3728 / 16934 )
Methods: 10.13% ( 214 / 2112 )
Lines: 25.35% ( 3236 / 12767 )
Branches: 13.53% ( 278 / 2055 )

Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 65.43% ( 583 / 891 )
Methods: 59.26% ( 64 / 108 )
Lines: 68.54% ( 464 / 677 )
Branches: 51.89% ( 55 / 106 )

Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 84.39% ( 1238 / 1467 )
Methods: 84.51% ( 120 / 142 )
Lines: 85.61% ( 1053 / 1230 )
Branches: 68.42% ( 65 / 95 )

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 67.09% ( 5799 / 8644 )
Methods: 65.05% ( 722 / 1110 )
Lines: 70.98% ( 4548 / 6407 )
Branches: 46.94% ( 529 / 1127 )

@dheepak-aot dheepak-aot marked this pull request as ready for review December 10, 2024 16:42
sequencedApplications.current.referenceAssessmentDate ??
options?.alternativeReferenceDate;
// Convert the reference assessment date to an ISO date format.
const formattedReferenceAssessmentDate = getISODateOnlyString(
Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot Dec 10, 2024

Choose a reason for hiding this comment

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

Minor but the methods should receive as much as possible the Date as it is. Converting it to the ISO date is a concern for the method executing the query.
I do recognize the programYearStartDate already receiving it as string because comes directly from typeorm date only.
Since the methods are private it would not be a blocker.

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

Great analysis and investigation, look good 👍

@andrepestana-aot andrepestana-aot self-requested a review December 10, 2024 17:32
Copy link
Collaborator

@andrepestana-aot andrepestana-aot left a comment

Choose a reason for hiding this comment

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

Looks good! Great job!

@dheepak-aot dheepak-aot merged commit a2ed728 into hotfix/v2.1.1 Dec 10, 2024
21 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Dec 11, 2024
Merge Hotfix V2.1.1 to Main

## What's Changed
* #4013 - Legacy Restriction Mapping - Migrations and SQL Changes by
@andrewsignori-aot in #4037
* #4041 - Ignore Cancelled Legacy Applications on SIMS Validations and
Calculations by @dheepak-aot in #4042
* #4013 - Legacy Restriction Mapping - Student Changes by
@andrewsignori-aot in #4049
* #4052 - Fix the legacy program year totals for program year limits by
@dheepak-aot in #4058

---------

Co-authored-by: Andrew Boni Signori <[email protected]>
Co-authored-by: Dheepak Ramanathan <[email protected]>
@dheepak-aot dheepak-aot deleted the fix/#4052-program-year-limits-from-sfas-bridge branch December 13, 2024 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants