chore: notifications (#1515)
* chore: add triggered by details for notifications * dev: update issue activity json to include extra fields * dev: triggered_by details * dev: add bot filtering * dev: unread notification count endpoint * dev: update endpoint to send count for all notification types
This commit is contained in:
parent
e0181342c0
commit
b69c4b6b30
5 changed files with 71 additions and 7 deletions
|
|
@ -1,9 +1,12 @@
|
|||
# Module imports
|
||||
from .base import BaseSerializer
|
||||
from .user import UserLiteSerializer
|
||||
from plane.db.models import Notification
|
||||
|
||||
class NotificationSerializer(BaseSerializer):
|
||||
|
||||
triggered_by_details = UserLiteSerializer(read_only=True, source="triggered_by")
|
||||
|
||||
class Meta:
|
||||
model = Notification
|
||||
fields = "__all__"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue