* chore: added cycles and modules in analytics peek view * chore: added cycles and modules analytics * chore: added project filter for work items * chore: added a peekview flag and based on that table columns * chore: added peek view * chore: added check for display name * chore: cleaned up some code * chore: fixed export csv data * chore: added distinct work items * chore: assignee in peek view * updated csv fields * chore: updated workitems peek with assignee * fix: removed type assersions for workspaceslug * chore: added day wise filter in cycles and modules * chore: added extra validations --------- Co-authored-by: JayashTripathy <jayashtripathy371@gmail.com>
70 lines
1.9 KiB
Python
70 lines
1.9 KiB
Python
from django.urls import path
|
|
|
|
|
|
from plane.app.views import (
|
|
AnalyticsEndpoint,
|
|
AnalyticViewViewset,
|
|
SavedAnalyticEndpoint,
|
|
ExportAnalyticsEndpoint,
|
|
AdvanceAnalyticsEndpoint,
|
|
AdvanceAnalyticsStatsEndpoint,
|
|
AdvanceAnalyticsChartEndpoint,
|
|
DefaultAnalyticsEndpoint,
|
|
ProjectStatsEndpoint,
|
|
)
|
|
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"workspaces/<str:slug>/analytics/",
|
|
AnalyticsEndpoint.as_view(),
|
|
name="plane-analytics",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/analytic-view/",
|
|
AnalyticViewViewset.as_view({"get": "list", "post": "create"}),
|
|
name="analytic-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/analytic-view/<uuid:pk>/",
|
|
AnalyticViewViewset.as_view(
|
|
{"get": "retrieve", "patch": "partial_update", "delete": "destroy"}
|
|
),
|
|
name="analytic-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/saved-analytic-view/<uuid:analytic_id>/",
|
|
SavedAnalyticEndpoint.as_view(),
|
|
name="saved-analytic-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/export-analytics/",
|
|
ExportAnalyticsEndpoint.as_view(),
|
|
name="export-analytics",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/default-analytics/",
|
|
DefaultAnalyticsEndpoint.as_view(),
|
|
name="default-analytics",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/project-stats/",
|
|
ProjectStatsEndpoint.as_view(),
|
|
name="project-analytics",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/advance-analytics/",
|
|
AdvanceAnalyticsEndpoint.as_view(),
|
|
name="advance-analytics",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/advance-analytics-stats/",
|
|
AdvanceAnalyticsStatsEndpoint.as_view(),
|
|
name="advance-analytics-stats",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/advance-analytics-charts/",
|
|
AdvanceAnalyticsChartEndpoint.as_view(),
|
|
name="advance-analytics-chart",
|
|
),
|
|
]
|