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

#270 - Merge Hotfix V2.1.2 to main #4088

Merged
merged 8 commits into from
Dec 12, 2024
Merged

Conversation

andrewsignori-aot
Copy link
Collaborator

  • Hotfix 2.1.2 merge to main.
  • Fix E2E for the new program year.

andrewsignori-aot and others added 8 commits November 25, 2024 12:03
Moving the latest changes from Bull Scheduler to release 2.1.
- Created a new table to map SFAS code to SIMS legacy restriction codes.
- New records added to the table map will be automatically added to the
`sims.restrcitions` if not present yet.
- The column `is_legacy_only` creates a distinction between the
SFAS-SIMS mapped restriction and the restrictions that should be added
to SIMS but not managed (only resolved).
- Kept generating a notification for each student that had a new legacy
restriction added.
- The creation date is controlled and the query to get students looks
for any new student restriction created by the import process.

### Rollback


![image](https://github.com/user-attachments/assets/ab008da3-af0a-4664-bbb9-12ff4753b60f)


![image](https://github.com/user-attachments/assets/57a5f728-688d-4d0c-a8e4-48c3da58a39b)
…Calculations (#4042)

Ignore Cancelled Legacy Applications on SIMS Validations and Calculations
- Prevent API from retuning 'No effect' notifications since they are not
supposed to be notified to the student.
- Consolidated `LGCY_*` restrictions into a single `LGCY` restriction
code to be returned to the student. The error code returned will be the
highest one present in the list of the `LGCY_*` being returned.
- Create few `LGCY_*` in the DB seed to allow the E2E to use them.
- Fixed the `db:seed:test:clean` that was not removing the
`create_history_entry` function leading to an error when the DB was
populated again.
- Close Nestjs app (`app.close()`) to avoid the `db:seed:test:clean` and
`db:seed:test` to be hanging and waiting.
 
### Ministry visualization for the new legacy map


![image](https://github.com/user-attachments/assets/e50659f4-4cc1-4b9a-b6a6-de27e99c79b9)

### SQL to be manually added during release

```sql
INSERT INTO
    sims.sfas_restriction_maps (legacy_code, code, is_legacy_only)
VALUES
    ('TD', 'LGCY_TD', TRUE),
    ('B5', 'LGCY_B5', TRUE),
    ('B5A', 'LGCY_B5A', TRUE),
    ('B7', 'LGCY_B7', TRUE),
    ('SSD', 'LGCY_SSD', TRUE),
    ('Z2', 'LGCY_Z2', TRUE),
    ('M1', 'LGCY_M1', TRUE),
    ('SSRN', 'LGCY_SSRN', TRUE),
    ('B4', 'LGCY_B4', TRUE),
    ('Z1', 'LGCY_Z1', TRUE)
```
…4058)

Fix the legacy program year totals for program year limits
…#4084)

Removed the code setting the first disbursement back for today.

### Sample application when the offering start date is ahead (2
disbursements)


![image](https://github.com/user-attachments/assets/cdf48f54-7838-457c-aa9d-240b386c17ed)

### Sample application when the offering start date is in the past (2
disbursements)


![image](https://github.com/user-attachments/assets/259e4572-449c-4baf-808b-d7d19ec7d49d)
@andrewsignori-aot andrewsignori-aot added the Branch Sync-up Branch features move between main/release/hotfix branches. label Dec 12, 2024
@andrewsignori-aot andrewsignori-aot self-assigned this Dec 12, 2024
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 21.94% ( 3786 / 17260 )
Methods: 9.99% ( 219 / 2192 )
Lines: 25.29% ( 3281 / 12974 )
Branches: 13.66% ( 286 / 2094 )

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: 80% ( 1336 / 1670 )
Methods: 63.55% ( 136 / 214 )
Lines: 83.49% ( 1123 / 1345 )
Branches: 69.37% ( 77 / 111 )

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 67.41% ( 5927 / 8792 )
Methods: 65.09% ( 729 / 1120 )
Lines: 71.34% ( 4650 / 6518 )
Branches: 47.49% ( 548 / 1154 )

@andrewsignori-aot andrewsignori-aot marked this pull request as ready for review December 12, 2024 23:04
Copy link
Collaborator

@guru-aot guru-aot left a comment

Choose a reason for hiding this comment

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

LGTM, nice work @andrewsignori-aot

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.

Looks good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Branch Sync-up Branch features move between main/release/hotfix branches.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants