The DEV Team profile image The DEV Team

New Feature: Organization Notifications!

twitter logo github logo ・1 min read

Organizations can now receive notifications!

If you are a member of an organization, you will be notified of any new comments or reactions to your organization's posts, as well as any new followers to your organization. You can find them in your notifications page.

Nitty gritty details and the technical implementation can be found in the pull request:

Organization Notifications #1762

Zhao-Andy avatar
Zhao-Andy commented on Feb 07, 2019

What type of PR is this? (check all applicable)

  • [x] Feature


This adds notifications for organizations! 🎉

Implementation details:

  • Anyone who is a member of the organization can view the org's notifications.
  • Any org member who views the org notifications will mark them as read.
  • The routes are: /notifications/org/:org_id and /notifications/comments/:org_id. This keeps it flexible for people who belong to multiple orgs.
  • There is no filter for posts because orgs can't follow people (and therefore cannot receive notifications for new posts).
  • Orgs can receive new comment and reaction notifications on their org posts, as well as notifications for new followers.
  • Org notifications are not counted in the bell icon.
  • Notifications can belong to either a user or an organization. One or the other, not both. I could add a database constraint but that would require some custom SQL. Not sure if it's completely necessary.

One feature I forgot -- I remembered just now while writing is -- is the ability for orgs to send a new post notification to their followers. I can add this in if we want. Don't think it would take too much time. Just added this 👍

Related Tickets & Documents

Resolves #1222

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Mobile View

Mobile View

Desktop View

Desktop View

[optional] What gif best describes this PR or how it makes you feel?


Happy coding!

twitter logo DISCUSS (3)
The team behind this very platform. 😄
markdown guide

So if I comment here, the org gets a notification?


Might be worth thinking about blocking org notifications from your own actions, or actions from members of the org.

Classic DEV Post from Jul 17

What are you (still) not interested in learning?

I'm interested in hearing not only what you are *not* interested in learning. But if you answered the question last time, has anything changed?

The DEV Team profile image
The hardworking team behind ❤️

Want to contribute to open source and help make the DEV community stronger?

All the code is freely available on GitHub.

You're welcome to jump in! now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️