-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## As a part of this PR, the following tasks were completed: - [x] Checked to ensure that the affected Student Application belongs to the institution uploading the file. - [x] In case one or multiple validations failed, the validation errors are returned. Below are the validation criteria: - If the application number is not found, assuming it is an SFAS application, it is just skipped and the rest of the file is processed. A warning is generated to the user: "Application is not present in SIMS and is a part of the SFAS system." - Validated if the combination of the SIN, Application number and institution matched with a record on SIMS. If not, returned the following line as a warning message "The record was not found and will be skipped." - If the file contains a line for an application that already has a withdrawal recorded, returned the line as a warning message: "This application is already withdrawn with the date: [withdrawal date]." - Verified that the application is in "Completed" status and not archived to execute the withdrawal, if not, returned an error with the message "The application is not in the completed status." or "The application is already archived and cannot be withdrawn." - [x] For every single file line that has an error or warning, a summary is displayed: - Line number: record number including the header in the count. - Application Number (even if invalid): displayed to show which "Application Number" was interrupted. - Withdrawal Date (even if invalid): displayed to show the "Withdrawal Date" of the interrupted "Application Number". - Validations: displayed to show a user-friendly message about why the record is not considered valid. - [x] Centralized the error validation code to the `validation-utils` file. ### Screenshots [validation errors and warnings]: <img width="1919" alt="image" src="https://github.com/bcgov/SIMS/assets/7859295/d1c586fd-0e23-4d65-b8ba-472ae146e29f"> ------------------------------------------------------------------------------------------------------------------------------------------ <img width="1919" alt="image" src="https://github.com/bcgov/SIMS/assets/7859295/e47a9861-ce5e-499f-9676-37044ee232c5"> ------------------------------------------------------------------------------------------------------------------------------------------ <img width="1918" alt="image" src="https://github.com/bcgov/SIMS/assets/7859295/00a65201-a240-4337-a5fd-c7ca8febcdc9"> ------------------------------------------------------------------------------------------------------------------------------------------ <img width="1920" alt="image" src="https://github.com/bcgov/SIMS/assets/7859295/7f176c57-cde9-4ab9-9b83-ddff9ea7325f"> ------------------------------------------------------------------------------------------------------------------------------------------ <img width="1920" alt="image" src="https://github.com/bcgov/SIMS/assets/7859295/880628ff-3479-46a9-9947-5db8c958c1b0"> ------------------------------------------------------------------------------------------------------------------------------------------ <img width="1919" alt="image" src="https://github.com/bcgov/SIMS/assets/7859295/82f89661-b0eb-4fa6-9bc5-64ebaa37dd31">
- Loading branch information
1 parent
4dde03d
commit df59fdb
Showing
15 changed files
with
578 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.