Open ShanaLMoore opened 6 months ago
https://github.com/samvera/hyrax/pull/5212 may be of interest
We will come back to check if an email got sent tomorrow. We triggered the notifications today and set the frequency to daily.
We can see the BatchEmailNotificationJob waiting to be run in /jobs
: :
After 24 hrs, I did not receive any emails as expected:
Perhaps hyku-demo wasn't set up right. Emails are received when tested using on hyku-staging:
Tested on: PALS KNAPSACK STAGING Frequency: Daily
I will check maildev in 24 hrs.
UPDATE: The email appeared:
cc @ndroark our staging mailer caught your batch email request:
It looks like all mail for demo.palni-palci-staging.notch8.cloud is sandboxed to the "staging mailer" you describe above.
How do I get credentials for a new user in the tenant? When I create and activate a new user, I don't see a way for the user to reset their password, nor for an admin to set their password.
How do I have a user review the email notifications once created?
@ctgraham
You would need assistance with all the above requests because of the mailer interception.
As a workaround, when you create a user an admin user can "activate" the user and it'll set the password to password
.
Otherwise you can let us know what tenant/emails you are expecting and we can check it for you and screenshot the email for your review or approval.
@ctgraham I just checked the mail server and see 2 emails. click on the links to set passwords:
Hello ctgraham+depositor@pitt.edu
Someone has invited you to https://demo.palni-palci-staging.notch8.cloud/, you can accept it through the link below.
If you don't want to accept the invitation, please ignore this email. Your account won't be created until you access the link above and set your password.
Hello bmw118@pitt.edu
Someone has invited you to https://demo.palni-palci-staging.notch8.cloud/, you can accept it through the link below.
If you don't want to accept the invitation, please ignore this email. Your account won't be created until you access the link above and set your password.
The following actions were taken in the demo.palni-palci-staging instance this week:
I checked maildev (our staging mailbox) to see that no emails were sent because the BatchEmailNotificationJob failed. Migrations needed to be run on staging. I ran the migrations and we should hopefully see notification emails going forward.
I'm afraid you may need to redo the actions above ^^ @ctgraham for the users set to "daily" frequency as your actions were done more than a day ago, at the time of fixing staging. anything done more than a day ago won't match the query of emails to send.
To re test I created a new work and manually ran the job. the following emailed was received:
https://demo.palni-palci-staging.notch8.cloud/notifications?locale=en
Switched users and created a work.
email received after manually running job:
at
ctgraham and jfudrow performed multiple editorial actions today, accepting/commenting/returning about a score of submissions.
@ctgraham The following emails were received this morning:
For John Fudrow, we see two items in his Notifications Feed from two days ago, but only one item in the email. The two items are as follows.
What caused this discrepancy?
Summary
SOW
The goal is to implement batch email notifications for some activities/trigers in the Hyku application. The notifications should match those of the One-step mediated deposit workflow. That includes:
Acceptance Criteria
TASKS
Testing Instructions
Notes
Spike results: https://github.com/scientist-softserv/palni-palci/issues/1005#issuecomment-2073611653 Implementation brainstorm: https://github.com/scientist-softserv/palni-palci/issues/1005#issuecomment-2078113101