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

#267 - Merge Hotfix V2.1.1 to Main #4065

Merged
merged 5 commits into from
Dec 11, 2024
Merged

#267 - Merge Hotfix V2.1.1 to Main #4065

merged 5 commits into from
Dec 11, 2024

Conversation

bidyashish
Copy link
Collaborator

@bidyashish bidyashish commented Dec 11, 2024

andrewsignori-aot and others added 5 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
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 21.93% ( 3764 / 17162 )
Methods: 10.06% ( 215 / 2138 )
Lines: 25.28% ( 3269 / 12931 )
Branches: 13.38% ( 280 / 2093 )

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 )

@andrewsignori-aot andrewsignori-aot added the Branch Sync-up Branch features move between main/release/hotfix branches. label Dec 11, 2024
@andrewsignori-aot andrewsignori-aot changed the title Merge Hotfix V2.1.1 to Main #267 - Merge Hotfix V2.1.1 to Main Dec 11, 2024
Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 84.94% ( 1342 / 1580 )
Methods: 83.33% ( 135 / 162 )
Lines: 86.45% ( 1129 / 1306 )
Branches: 69.64% ( 78 / 112 )

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.

👍

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 67.41% ( 5927 / 8792 )
Methods: 65.09% ( 729 / 1120 )
Lines: 71.35% ( 4652 / 6520 )
Branches: 47.4% ( 546 / 1152 )

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. Release Branch Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants