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

Differentiate followers from affected users on sending events #4663

Merged

Conversation

mrcasals
Copy link
Contributor

@mrcasals mrcasals commented Dec 12, 2018

🎩 What? Why?

This PR implements part of #4439 by letting users choose what type of notifications they want to receive.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Let events differentiate between followers and affected users to be notified
  • Change each event to differentiate these users
  • When publishing the ActiveSupport::Notification (in EventsManager), publish both array of objects instead of a single array of user IDs
  • Let users choose what kind of notifications they want to receive:
    • About everything they follow
    • About things they are really affected by
  • Only send notification to a given user if the notification is relevant to them (are they affected or just following the resource?)

📷 Screenshots (optional)

Description

@ghost ghost assigned mrcasals Dec 12, 2018
@mrcasals mrcasals force-pushed the notifications/differentiate-followers-and-relevant-users branch 2 times, most recently from 5175936 to 82bb029 Compare December 12, 2018 15:07
@mrcasals mrcasals force-pushed the notifications/differentiate-followers-and-relevant-users branch 6 times, most recently from e002d9e to d3dd1da Compare December 14, 2018 08:33
@mrcasals mrcasals changed the title [WIP] Differentiate followers from affected users on sending events Differentiate followers from affected users on sending events Dec 14, 2018
@josepjaume
Copy link
Contributor

Maybe I missed it, but shouldn't the notification message be different for followers and affected users? Maybe something like "you received this message because you're following" (followers) and "you've received this message because it's relevant to your activity" (affected users)?

oriolgual
oriolgual previously approved these changes Dec 17, 2018
@ghost ghost added the status: WIP label Dec 17, 2018
@mrcasals mrcasals force-pushed the notifications/differentiate-followers-and-relevant-users branch from 9b87cf8 to 2017536 Compare December 17, 2018 09:44
@mrcasals mrcasals force-pushed the notifications/differentiate-followers-and-relevant-users branch from 4984f71 to dabe4e0 Compare December 17, 2018 10:13
oriolgual
oriolgual previously approved these changes Dec 17, 2018
@oriolgual oriolgual merged commit b3d35fa into master Dec 17, 2018
@oriolgual oriolgual deleted the notifications/differentiate-followers-and-relevant-users branch December 17, 2018 11:50
@mrcasals mrcasals added this to the CDP6 milestone Dec 19, 2018
@mrcasals
Copy link
Contributor Author

This PR also closed #4640.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants