-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Notifications refactor #2082
Notifications refactor #2082
Conversation
I don't know why it felt important to do this but it did. The migrations are in one file now and don't need a merge migration.
In the new paradigm, a notification related to a status has users added to it and removed from it, rather than a new notification being added every time. These helper functions make this behavior consistent.
Right now notifications are a mix of post-save signals and clauses in the save function of the model. I'm not actually sure which is better, but I'm moving them to signals where it's straightforward to be consistent.
Since the main way to interact with them is by approving them in the notification, I didn't group them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appears to work as advertised!
I've suggested some improvements around item notifications, and identified some errors relating to groups.
Thank you! I'm not seeing any comments besides this one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might help if I "Submit review" 🙃
This test will catch my typo in generating the notifications
This refactor will allow similar notifications to be grouped. For example, instead of having 10 unique notifications that 10 different users liked a status, you can have one notification that lists all 10 users.
Example:
![Screen Shot 2022-07-04 at 9 18 55 PM](https://user-images.githubusercontent.com/1807695/177248624-92721da2-cb60-4694-841a-34e64afd00de.png)
Remaining work:
Works on #2066