-
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
Email notification for blocked disbursement to ministry only once #3054
Labels
Milestone
Comments
HRAGANBC
added
Dev & Architecture
Development and Architecture
and removed
Business
Items under Business Consideration
labels
May 7, 2024
michesmith
modified the milestones:
2.0 Part-Time Students MVP,
2.X Post Part-Time Priorities
May 28, 2024
Joshua-Lakusta
added
Dev & Architecture
Development and Architecture
and removed
Business
Items under Business Consideration
labels
Dec 17, 2024
AnnaPBashkatova
modified the milestones:
2.X Post Part-Time Priorities,
2.2 Full-Time "Asset"
Jan 7, 2025
github-merge-queue bot
pushed a commit
that referenced
this issue
Jan 15, 2025
…once (#4245) - Created a base class for e-Cert notifications (`ECertNotification`) and segregated the logic to generate blocked notifications into `MinistryBlockedDisbursementNotification` and `StudentBlockedDisbursementNotification`. - Existing logic was moved into the new files. - Code for the method `shouldCreateNotification` for the Students was moved and no changes were done for this PR, unless critical no comments will be addressed. - `ECertNotification` can be used for any other e-Cert notification as required, not only blocked disbursement. _Please note that the student data required to generate the notification is now retrieved twice in the event that the disbursement is blocked and the Ministry should be notified for the first time. The benefit of having the separation between the logic for the different notifications seems greater than an occasional extra query to the student's table. Please note that the query was simplified from what it used to be._ _Please also note that the below technical AC was not executed. The queries have different approaches, sometimes checking the existence, sometimes requiring a count, and sometimes requiring a count and a date last sent. I did not see a benefit for this PR. Please share an opinion/suggestion if needed._ ``` Create a generic method to check, if the email notifications are already sent to a particular template and metadata( disbursementId). ```
@ninosamson I brought the ticket back to in progress to fix a log issue. The indentation is to have it validated and possibility demoed next Monday. |
github-merge-queue bot
pushed a commit
that referenced
this issue
Jan 17, 2025
…once - Change log hierarchy (#4259) The blocked notifications logs were using the parent log instead of the child log some hierarchy was added now as below. This was an existing issue and it was causing multiple logs from multiple children to be appended to the same hierarchy. ### Log sample with the new hierarchy ``` INFO: Executing e-Cert calculations for all eligible disbursements.' INFO: Retrieving eligible disbursements(s).' INFO: Found 1 eligible disbursement(s) for 1 student(s).' --INFO: Log details' --INFO: Processing application number 5906924436, disbursement id 41 scheduled for 2025-01-16.' ----INFO: Log details' ----INFO: Executing e-Cert calculation steps.' ----INFO: Executing step 1 out of 9.' ----INFO: Executing full-time disbursement validations.' ----INFO: Disbursement estimated awards do not contain any amount to be disbursed.' ----INFO: There are no active restriction bypasses.' ----INFO: Checking if blocked disbursement notifications should be generated.' ------INFO: Log details' ------INFO: Ministry Blocked Disbursement notification should not be created at this moment for disbursement ID 41.' ------INFO: Log details' ------INFO: Student Blocked Disbursement notification created for disbursement ID 41.' --INFO: The step determined that the calculation should be interrupted. This disbursement will not be part of the next e-Cert generation.' INFO: Sending e-Cert file.' INFO: Retrieving Full Time disbursements to generate the e-Cert file...' INFO: Found 0 Full Time disbursements schedules.' INFO: Creating Full Time e-Cert file content...' INFO: Uploading Full Time content...' INFO: Generated file: MSFT-Request\\DPBC.EDU.FTECERTS.20250116.001' ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As a ministry user I want to receive only one notification email when a student disbursement is blocked. The ministry user wants this as they will create a ticket on each notification and only one notification is necessary.
Acceptance Criteria
Additional Context
Technical Context
The text was updated successfully, but these errors were encountered: