-
Notifications
You must be signed in to change notification settings - Fork 14
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
Legacy Restriction Mapping #4013
Milestone
Comments
andrewsignori-aot
added a commit
that referenced
this issue
Dec 7, 2024
- 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)
Based on discussion from Friday/Today - added a new AC:
|
2 tasks
andrewsignori-aot
added a commit
that referenced
this issue
Dec 9, 2024
- 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) ```
Looks good. Processed non-legacy mapping, legacy mapping with existing, added a new legacy map. |
github-merge-queue bot
pushed a commit
that referenced
this issue
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]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
User Story
As a ministry user, I want to know about some restrictions imported from the legacy bridge but others are not going to be needed. Right now we directly map a few restrictions into unique restrictions in SIMS and the rest are mapped into a "LGCY" restriction to be reviewed by ministry users as required.
Acceptance Criteria
Change which legacy restrictions map to LGCY and ONLY map these ones to a unique version of the LGCY restriction. Each one would be mapped directly to its own version of the LGCY restriction.
All will need to display to the student as LGCY
These new LGCY restrictions will all replicate the effect of the current LGCY restriction
make this mapping to LGCY whitelist configurable, so that we can make any LGCY restrictions on demand possibly within db
Current LGCY restriction and behaviour of collecting all un mapped restrictions can be removed. All restrictions that are not mapped in this way or mapped to other restrictions will just not attach to the student.
These new legacy restrictions will be shown to the student as a single Legacy restriction in Account Activity/Banners as the highest level of warning to the student. Example: 4 legacy restrictions. 1 error, 2 warning, 1 no effect. Only error level messaging would be shown.
Additional Context
![image.png](https://camo.githubusercontent.com/c078066920720401f4e19c5b6f2625cef0908be68eac5ef74a3c67e274d3dbc9/68747470733a2f2f6170692e7a656e6875622e636f6d2f617474616368656446696c65732f65794a66636d467062484d694f6e73696257567a6332466e5a534936496b4a42614842424d5774485130453950534973496d563463434936626e56736243776963485679496a6f69596d7876596c39705a434a3966513d3d2d2d656335303561396231333863313632353930623737343462663366356561386234333739646465352f696d6167652e706e67)
We are not concerned with any restrictions that have already mapped to students before this ticket is completed. These will be resolved with business process.
Technical
is_legacy
column onsims.restrictions
to be set as true only for the restrictions listed on the business ACs.sims.sfas_restrictions_maps
to contain the possible restrictions mappings, including the existing onesA12
,AF1
, andB2D
.legacy_code
: varchar(4)code
: varchar(4)created_at
: default tonow()
.sims.sfas_restrictions_maps
are all present onsims.restrictions
, if not, create the missing ones using the current LGCY restriction.is_legacy
is active.sims.sfas_restrictions_maps
.Note: A new ticket will be created to prevent Ministry to add these restrictions to the student account (also block the API).
The text was updated successfully, but these errors were encountered: