* dev: create email notification preference model * dev: intiate models * dev: user notification preferences * dev: create notification logs for the user. * dev: email notification stacking and sending logic * feat: email notification preference settings page. * dev: delete subscribers * dev: issue update ui implementation in email notification * chore: integrate email notification endpoint. * chore: remove toggle switch. * chore: added labels part * fix: refactored base design with tables * dev: email notification templates * dev: template updates * dev: update models * dev: update template for labels and new migrations * fix: profile settings preference sidebar. * dev: update preference endpoints * dev: update the schedule to 5 minutes * dev: update template with priority data * dev: update templates * chore: enable `issue subscribe` button for all users. * chore: notification handling for external api * dev: update origin request --------- Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com> Co-authored-by: LAKHAN BAHETI <lakhanbaheti9@gmail.com> Co-authored-by: Ramesh Kumar Chandra <rameshkumar2299@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
72 lines
1.8 KiB
Python
72 lines
1.8 KiB
Python
from django.urls import path
|
|
|
|
|
|
from plane.app.views import (
|
|
NotificationViewSet,
|
|
UnreadNotificationEndpoint,
|
|
MarkAllReadNotificationViewSet,
|
|
UserNotificationPreferenceEndpoint,
|
|
)
|
|
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"workspaces/<str:slug>/users/notifications/",
|
|
NotificationViewSet.as_view(
|
|
{
|
|
"get": "list",
|
|
}
|
|
),
|
|
name="notifications",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/users/notifications/<uuid:pk>/",
|
|
NotificationViewSet.as_view(
|
|
{
|
|
"get": "retrieve",
|
|
"patch": "partial_update",
|
|
"delete": "destroy",
|
|
}
|
|
),
|
|
name="notifications",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/users/notifications/<uuid:pk>/read/",
|
|
NotificationViewSet.as_view(
|
|
{
|
|
"post": "mark_read",
|
|
"delete": "mark_unread",
|
|
}
|
|
),
|
|
name="notifications",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/users/notifications/<uuid:pk>/archive/",
|
|
NotificationViewSet.as_view(
|
|
{
|
|
"post": "archive",
|
|
"delete": "unarchive",
|
|
}
|
|
),
|
|
name="notifications",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/users/notifications/unread/",
|
|
UnreadNotificationEndpoint.as_view(),
|
|
name="unread-notifications",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/users/notifications/mark-all-read/",
|
|
MarkAllReadNotificationViewSet.as_view(
|
|
{
|
|
"post": "create",
|
|
}
|
|
),
|
|
name="mark-all-read-notifications",
|
|
),
|
|
path(
|
|
"users/me/notification-preferences/",
|
|
UserNotificationPreferenceEndpoint.as_view(),
|
|
name="user-notification-preferences",
|
|
),
|
|
]
|