* chore: analytics endpoint * chore: created analytics chart * chore: validation errors * chore: added a new graph in advance analytics * chore: added csv exporter * chore: updated the filtering logic for analytics * chore: opitmised the analytics endpoint * chore: updated the base function for viewsets * chore: updated the export logic * chore: added type hints * chore: added type hints
76 lines
2.1 KiB
Python
76 lines
2.1 KiB
Python
from django.urls import path
|
|
|
|
|
|
from plane.app.views import (
|
|
AnalyticsEndpoint,
|
|
AnalyticViewViewset,
|
|
SavedAnalyticEndpoint,
|
|
ExportAnalyticsEndpoint,
|
|
AdvanceAnalyticsEndpoint,
|
|
AdvanceAnalyticsStatsEndpoint,
|
|
AdvanceAnalyticsChartEndpoint,
|
|
DefaultAnalyticsEndpoint,
|
|
ProjectStatsEndpoint,
|
|
AdvanceAnalyticsExportEndpoint,
|
|
)
|
|
|
|
|
|
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",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/advance-analytics-export/",
|
|
AdvanceAnalyticsExportEndpoint.as_view(),
|
|
name="advance-analytics-export",
|
|
),
|
|
]
|