Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Users should have the ability to follow content without receiving email notifications.
Project Issue does this at the Notifications tab of your user profile. I think we can do something similar, and more simple to start out. Maybe a checkbox for each content type.
(A longer-term goal is to remove much of Project Issue's emailing code and rely on Message Follow. This form can be altered by Project Issue for advanced project-specific option as needed.)
Comment | File | Size | Author |
---|---|---|---|
#16 | notifications-ui-copy.png | 107.32 KB | tvn |
Comments
Comment #2
Chasen CreditAttribution: Chasen commentedJust to add some feedback in addition to being able to control whether email notifications are on or off, for those who want it on an option that lets them choose between receiving email notifications for each new comment; once per day summary notification; and once per week summary notification.
I envisage the summary notifications would be grouped, i.e. if you follow 3 threads and all 3 are set to summary once per day you get just one email for all 3.
Comment #3
Jaypan CreditAttribution: Jaypan at Jaypan commented1) There should be an option in the user profile to opt out of email notifications
2) If you unfollow a thread to stop emails, you no longer see the thread in your tracker. There should be the option to not receive emails, but still see the thread in your tracker.
Implementing #1 would solve #2.
Comment #4
Jaypan CreditAttribution: Jaypan at Jaypan commentedCross referencing this issue with the thread I put in the notifications section of the forum: https://www.drupal.org/node/2658618
Comment #5
drummComment #6
drummHere is the minimum UI for this. I expect more to be added as the "Issue notifications" tab is merged in, and any more-interesting content types get added in. (What does following a project mean? Same as following all the issues for it?)
Comment #7
Jaypan CreditAttribution: Jaypan at Jaypan commentedThat looks ok, but language-wise it's not so good. It should be:
Receive notifications of comments when following threads of the following content types:
- book page
- case study
- forum topic
- post
And what's a post?
Comment #8
tvn CreditAttribution: tvn at Drupal Association commentedI think we need to provide some more context on what happens in case user unchecks stuff. And let's not repeat the same sentence 4 times.
So something like:
The 'to receive email notifications..' line could use 'additionally' or similar word to make it clear that notifications in the tracker are always there, irrespective of any email notifications selected.
Comment #9
drummHere is an update with the help text. On production, this will have the question mark icon matching other help boxes.
(The help is Drupal.org-specific, this module doesn't update the tracker on its own, that's still flag_tracker module. So we are free to be specific about the site.)
I agree the checkboxes are kinda klunky and redundant. I went with those and the larger headings so more can be added to the form, like issue-specific things.
Jaypan - post is a relatively new content type, https://www.drupal.org/drupalorg/blog are posts. This uses the same content type titles as used on /node/add.
Comment #10
drummI went ahead and made the suggested simplification, with some copyediting:
This is what I initially thought of too, and I realized making room for future UI was too much pre-optimization.
On the dev site I'm working on, the UI is now functional for itself. The remaining part is checking this with a hook invoked by the message stack to actually have an effect.
Comment #11
hestenet"I want to receive email notifications of comments on content I follow in each of these content types:"
^^ Copy suggestion? What you have is fine, just thought I'd take a stab at it. It's kind of an awkward mouthful either way .
Comment #14
drummIs where I've gotten with the copyediting so far.
Otherwise, this is functional and ready for deployment.
Comment #15
bradleyfields CreditAttribution: bradleyfields at Drupal Association commentedWhat about the following?
Also, we may have a nomenclature challenge: "Post" as a content type vs. the broader "post" that describes actions.
Comment #16
tvn CreditAttribution: tvn at Drupal Association commentedThanks for simplifying Neil.
I like Bradley's addition to provide more context. We need to remember however that text in the blue area is custom to Drupal.org, and text outside of it will be part of Message follow UI, so has to stay fairly generic. We also should not duplicate words in the two, or try to over explain. Here is the revision I suggest:
Comment #19
drummI don't think Drupal stashes the plural version of content type names anywhere. I know our plurals of "Module" and "Theme" are done with custom code. We could add a word, like "Forum topic content" and "Post content"; I'm not sure if that helps.
All the other changes have been done (unless I missed any).
Comment #21
drummComment #22
drummThis has been deployed to Drupal.org.
Comment #23
Jaypan CreditAttribution: Jaypan at Jaypan commentedI'm still getting email notifications even though I've unchecked each of the content types.
Comment #24
Jaypan CreditAttribution: Jaypan at Jaypan commentedComment #25
drummI tested this again on dev and it looks okay. I'm pretty sure I forgot to restart the queue running processes, so they still have the old code in memory.
Comment #26
drummPlease update this issue if you receive any extra notifications after this comment was posted.
Comment #27
Jaypan CreditAttribution: Jaypan at Jaypan commentedLooks to be fixed now. Thanks for taking care of this issue.
Comment #29
izmeez CreditAttribution: izmeez commentedI think this has caused a change in behaviour. As a regular user I noticed that when I started to follow a forum post I began receiving email notifications. On checking my profile I see the default is to receive email notifications for all. It was simple enough to change but I wonder if the defaults should be unchecked for email notifications?
Thanks.
Comment #30
Jaypan CreditAttribution: Jaypan at Jaypan commentedNo, it's better to notify by default, and let people turn it off. If it's off by default, most people will never know the functionality exists.