Open ozamani9gh opened 10 months ago
Currently Approved/Consent emails are triggered when corresponding flags are included in the payload in the namex backend application: https://github.com/bcgov/namex/blob/f8cf4af6cb6a1e28c5beb8a849855b2a3bbc1c15/api/namex/resources/requests.py#L695 https://github.com/bcgov/namex/blob/f8cf4af6cb6a1e28c5beb8a849855b2a3bbc1c15/api/namex/resources/requests.py#L871C12-L871C12
You can actually resend APPROVED/Consent emails by hitting Re-open button for NR and then Approving it one more time
But the email will actually be delivered if the email is reachable which can be verified through the notify-api callback table :
To trigger consent letter we need to reset consent letter flag - first remove 'received' status
then add it again:
For expiry letters the mechanism is different, those emails are sent via nr day job: https://github.com/bcgov/namex/blob/main/jobs/nr-day-job/nr_day_job.py
@bolyachevets do you know if there are services to provide the info of emails been sent for an NR? such as date, type...
@bolyachevets do you know if there are services to provide the info of emails been sent for an NR? such as date, type...
you can check notify-api db, e.g. oc port-forward -n d893f6-prod svc/postgresql-notify-prod 6017:5432
SELECT * FROM public.notification_history --- will show you what emails were sent
SELECT * FROM public.gc_notify_callback --- will show you email status
@bolyachevets thanks! do you know where the notify-api code is?
@bolyachevets thanks! do you know where the notify-api code is?
https://github.com/bcgov/bcregistry-sre/tree/main/notify-api
I believe this is needed by other teams, not just names. We should look staff having the ability to see what was sent for a business (or an NR in this case), who it was sent to and when, and the ability to resend if needed to the same email or a different email.
@LizGovier is there an ETA of when the design work will be ready for this. We are eager to start. we need to implement a UI for staff to be able to resend the emails in Name Examination.
Hey @ozamani9gh @ethantspitt should be able to get started on this task early next week.
Figma link updated, questions for confirmation:
Is it common for a client to request a resend of an email regarding previous status information? For instance, if a Name Request has expired, would there be a need for functionality to resend a consent email?
If the above scenario is common, we could use a selection menu that staff can choose which email to re-issue. Please review the table in the design link for available menu options.
Design option updated for viewing historical notification detail such as content, client email address, and sent date.
@ethantspitt this ticket is ready to work on now?
@ozamani9gh yes, the design is updated based on feedback yesterday. I added some notes for developer, please let me know if you have any questions, thanks.
Design reviewed, ready for development
@PCC199 @oanyahuru i asked Ethan to also add a design for a button that allows us to resend an email that does not have a record in notify-api DB. in case something wasnt recorded, or we dont have a record of sending the original email in DB.
one he updates design, i will create a separate ticket for that work. and add it to this epic.
Related to OPS Ticket: 3392
https://app.zenhub.com/workspaces/ops-60f8556e05d25b0011468870/issues/gh/bcgov-registries/ops-support/3392.
Add the ability to resend email for the following email processes:
APPROVED EMAIL EXPIRY EMAIL CONSENT EMAIL.
add any other types of emails that user is missing original email.
Wireframe Link: https://www.figma.com/file/zHZFygfAWSmNp6kDb7g1Zs/NameX-Vue-3-upgrade-UXA?type=design&node-id=2-25&mode=design