[WEB-1665] chore: advance views migration (#4869)

* chore: views migration

* chore: squashed migration

* chore: renamed global views

* chore: added owned by in serializer
This commit is contained in:
Bavisetti Narayan 2024-06-20 13:12:33 +05:30 committed by GitHub
parent aeb0979827
commit 418ca92f36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 81 additions and 52 deletions

View file

@ -3,8 +3,8 @@ from django.urls import path
from plane.app.views import (
IssueViewViewSet,
GlobalViewViewSet,
GlobalViewIssuesViewSet,
WorkspaceViewViewSet,
WorkspaceViewIssuesViewSet,
IssueViewFavoriteViewSet,
)
@ -34,7 +34,7 @@ urlpatterns = [
),
path(
"workspaces/<str:slug>/views/",
GlobalViewViewSet.as_view(
WorkspaceViewViewSet.as_view(
{
"get": "list",
"post": "create",
@ -44,7 +44,7 @@ urlpatterns = [
),
path(
"workspaces/<str:slug>/views/<uuid:pk>/",
GlobalViewViewSet.as_view(
WorkspaceViewViewSet.as_view(
{
"get": "retrieve",
"put": "update",
@ -56,7 +56,7 @@ urlpatterns = [
),
path(
"workspaces/<str:slug>/issues/",
GlobalViewIssuesViewSet.as_view(
WorkspaceViewIssuesViewSet.as_view(
{
"get": "list",
}