Skip to content
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

Make the journal health report (STATISTICS_REPORT_NOTIFICATION) respect the template enabled/disabled flag #7101

Closed
asmecher opened this issue Jun 4, 2021 · 7 comments
Assignees
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users.
Milestone

Comments

@asmecher
Copy link
Member

asmecher commented Jun 4, 2021

See https://forum.pkp.sfu.ca/t/disabled-email-are-sent-out/68105/2:

Despite having disabled the Editorial Activity email, there are still “journal helath reports” going out.

Since the journal editor can enable and disable the email template, the task should check this flag before sending the notification.

@asmecher asmecher self-assigned this Jun 4, 2021
@asmecher asmecher added this to the OJS/OMP/OPS 3.3.0-7 milestone Jun 4, 2021
@NateWr
Copy link
Contributor

NateWr commented Jun 7, 2021

This email is one of the notifications that each user can enable/disable in their user profile. Shouldn't that be the primary source of information on whether this email is sent?

I know that right now, we have several email templates that can be enabled/disabled, and this results in the underlying email notification being enabled/disabled. But this is counterintuive, because many email templates do not have a 1-to-1 relationship with email notifications. As part of the refactoring work that Vitaliy is doing in 3.4, we are splitting up email templates and events, so this approach to disabling the journal health report won't translate well to the next major version.

@asmecher
Copy link
Member Author

asmecher commented Jun 7, 2021

I think we're seeing forum posts about this because many users have started receiving notifications that they aren't used to receiving, and are probably passing negative feedback to the journal. The journal is finding the "disable" button on that template, expecting it to inhibit the notifications entirely, but the button isn't doing anything.

If adjusting the code so that disabling the email template inhibits the task won't translate well to Vitaliy's 3.4 work, then agreed, we shouldn't introduce it now. But there probably should be a way to disable tasks entirely, rather than requiring each user to opt out of a notification. Maybe this would be better resolved as part of #7105?

@NateWr
Copy link
Contributor

NateWr commented Jun 8, 2021

Yeah I think that the email work for 3.4 is going to try to refactor how users opt-in/out of emails, which should make it easier for each user to opt-out of that email. I can see that a journal may wish to disable it completely, especially if some of their section editors are guest editors or other roles that they don't want to have data about the journal.

In my view, an optimal solution would be to provide a more prominent opt out in the email itself. Something like:

Don't want to receive this report next month? You can unsubscribe from this report.

Of course, we'd still need a way for journal managers to disable it completely. If you're ok waiting for 3.4 for this to be fixed, then @Vitaliy-1 and I can try to address it alongside the general notification management UI.

@asmecher
Copy link
Member Author

asmecher commented Jun 8, 2021

Thanks, @NateWr, and I'm OK to wait for 3.4. I think this could be disabled entirely either on the level of the scheduled task or the notification, and don't have a preference for which is better in this case, but both kinds of disables will be needed elsewhere in the system.

@NateWr NateWr added the Bug:1:Low A bug that does not have a severe consequence or affects a small number of users. label Oct 4, 2021
@Vitaliy-1
Copy link
Collaborator

canDisable was moved from EmailTemplate to Mailable after refactoring, from this template specifically to PKP\mail\mailables\StatisticsReportNotify. Leaving a reminder to test it in the new Mailable UI after implementation.

@NateWr
Copy link
Contributor

NateWr commented Nov 1, 2022

I'm sorting this out now as part of #5716.

@NateWr
Copy link
Contributor

NateWr commented Nov 15, 2022

This will be included in 3.4. As part of #5716, a new setting has been added to Settings > Workflow > Emails to enable/disable this email. On upgrade from 3.3, it will be set correctly according to the email template's enabled flag.

@NateWr NateWr closed this as completed Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users.
Projects
Status: Done
Development

No branches or pull requests

4 participants