### Goal
As part of achieving [[ https://developer.blender.org/T82380 | feature parity ]] with the old Cloud, notifications need to be implemented in the new Cloud.
The goal is to have at least basic personal notifications about things like likes and replies to your comments, new activity under your blog posts etc, that could be displayed at the top bar.
https://developer.blender.org/T82135
### What this does
Using [[ https://django-activity-stream.readthedocs.io | actstream ]] and Django `post_save` signals, generates activity records about likes, replies and new comments under blog posts.
This changeset also adds a custom query manager that allows retrieving actstream records that are relevant to a specific user.The following notifications have been implemented implemented so far:
### What it doesn't yet do but should
- [ ] create notifications for comments under assets;
- [ ] create notifications for comments under training section- [x] notifications about replies to your comments;
- [ ] create- [x] notifications for trainings being saved;about likes on your comments;
- [ ] implement an `GET /profile/notifications/` endpoint that would allow front-end to retrieve (possibly: recent and unread) notifications for a current userx] notifications about comments under blog posts;
- [ ] implement an `POST -d "[<action_id1>, <action_id2>...]" /profile/notifications/read` endpoint that would allow front-end to mark notifications as read in bulk or one by one (as long as they are linked to the current user)x] notifications about comments under training sections;
- [ ] (nice to havex] notifications about comments under assets.
These can be viewed on the `/notifications` page, and the latest ones also shown in a nav dropdown (no polling, the stream for it available out of the box in `actstream`) `GET /profile/activity/`;back-end rendered for now):
{F9261628} {F9261629}
Notifications are marked as read via buttons on the notifications page or when clicked on.