-
Notifications
You must be signed in to change notification settings - Fork 0
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
SOW: Email Notifications #1005
Comments
Does this/should this include configuration options for user to turn off email notifications? |
@ndroark my assumption is that the estimate did not include the option of Users managing those notifications. It's also envisioned as "each time something changes there will be one email sent". There's no concept of a digest of "Here's what happened today". |
Implementation WayfindingThere are two approaches for how we could send notifications:
Method ObjectsFor the “state changing actions” (e.g. when items are approved), we can register a Sipity::Method. A registered method is called via Hyrax::Workflow::ActionTakenService.handle_action_taken. In the Mediated Deposit Workflow we specify that when someone takes the “deposit” action that we’ll call the Hyrax::Workflow::GrantReadToDepositor method (and “Hyrax::Workflow::DeactivateObject”). Given this, we then need to consider how to add those “methods” to the correct actions. There are two approaches:
There is more to explore on how to load workflows, but I’m less familiar with that. I do think that reloading a workflow is non-destructive; that is you can call the load workflows and it will add the methods to the named workflows. |
We can use Hyku up to start development on this, while pals knapsack is still underway. |
Step 1, verify which of the actions generate notifications Test emails with Mail Dev (check playbook) Look into flooding the emails with Mailboxer, so the recipient isn’t getting flood with emails like every time a work gets viewed or downloaded |
I'm concerned about there not being either 1) summary options or 2) an off-button for these notification emails. Am I correct that if a user does a bulk import, for instance, of fifty works, then every user in that tenant who has approval permission for that admin set will receive an email for each work deposited? It feels like we might be building a UX WMD |
Consideration for: Email notifications to authors related to views and downloads of their works are set up Mediated deposit often dictates that the submitter is not the same person as the author. We would need to figure out a way to add the contact of the author to the workflow. |
DEV NOTEShttps://github.com/search?q=repo%3Asamvera%2Fhyrax%20AbstractMessageService&type=code. Anything inheriting the AbstractMessageService class should trigger a notification. also ref: https://github.com/search?q=repo%3Asamvera%2Fhyrax%20AbstractNotification&type=code AbstractNotification class How does this file come into play? This seems to be associated with all the specific workflows that trigger notifications. Email how to wiki: playbook: https://playbook-staging.notch8.com/en/devops/maildev After following the wiki and playbook article, when I create a work I could see mailbox send an email in the server logs: mailboxer gem
|
Workflows are loaded via Hyrax's In the diagram, the ones outlined in yellow are the notification tables, and you can see they link to workflow actions. |
NOTIFICATION IMPLEMENTATION BRAINSTORMConfirm that the desired actions are included in the workflow.json.
If not...
AUTHOR ANALYTIC IMPLEMENTATION BRAINSTORMuse google analytics? ACTION ITEM - schedule meeting with pals to chatask about frequency nthly |
@laritakr has a potential analytics based solution that her previous university implemented Is Pals using dois on their works? We used Altmetrics at ND… The PR’s to implement are here: https://github.com/ndlib/curate_nd/pulls?q=Altmetrics+ re: altmetrics… if they care about downloads, then assigning a doi to the resource kinda makes sense anyway. And altmetrics allows you to view metrics for a doi |
I'm guessing nothing... But it might be a place to consider tying in some statistics info instead of doing another email report. |
Summary
SOW
The goal is to implement email notifications for some activities/trigers in the Hyku application. That include:
SoftServ will hook into the workflow callbacks to trigger notifications and set up notifications to trigger emails. The primary goal of this work is the implementation of email notifications related to mediated deposit. In SoftServ’s preliminary assessment the work to trigger email notifications for other activities and expand this requirement to meet the request from PALNI and PALCI to provide email notifications for views and downloads would not have a significant affect on scope and should be accomplishable within these sprints.
SoftServ allocates one 1-week sprint (apprx. 90 hours) including two senior engineers, project management, and QA resources to accomplish these goals.
See the below "Implementation Way Finding" for guidance on the submitter activity
TASKS
Acceptance Criteria
Note
This work is not perfectly defined at the time of the SOW. The scope of the email notifications around author/work activity has the risk of ballooning. The spirit of this from Pitt was: We need email notifications for mediated deposit, and would like to include Pals' requirements if possible. Before we finalize this work, we should define options with Pitt, share scope concerns, estimate what is manageable within this sprint, and have Pitt/Pals prioritize accordingly armed with that knowledge.
Similar work was done for DOT: https://assaydepot.slack.com/archives/C0311DNF3MG/p1713215197011169
May be helpful: https://samvera.github.io/email_notifications.html or https://github.com/samvera/hyrax/wiki/Notifications-and-Messages
MAIL DEV setup: https://playbook-staging.notch8.com/en/devops/maildev
The text was updated successfully, but these errors were encountered: