fix: url missing for my workspace issues

This commit is contained in:
pablohashescobar 2022-12-13 23:50:14 +05:30
parent 2881f990f5
commit cefea57bd6
2 changed files with 2 additions and 3 deletions

View File

@ -54,8 +54,8 @@ from plane.api.views import (
BulkDeleteIssuesEndpoint, BulkDeleteIssuesEndpoint,
BulkAssignIssuesToCycleEndpoint, BulkAssignIssuesToCycleEndpoint,
ProjectUserViewsEndpoint, ProjectUserViewsEndpoint,
UserWorkSpaceIssues,
UserLastProjectWithWorkspaceEndpoint, UserLastProjectWithWorkspaceEndpoint,
UserWorkSpaceIssues,
) )
from plane.api.views.project import AddTeamToProjectEndpoint from plane.api.views.project import AddTeamToProjectEndpoint
@ -496,7 +496,7 @@ urlpatterns = [
BulkDeleteIssuesEndpoint.as_view(), BulkDeleteIssuesEndpoint.as_view(),
), ),
path( path(
"workspaces/<str:slug>/me/issues/", "workspaces/<str:slug>/my-issues/",
UserWorkSpaceIssues.as_view(), UserWorkSpaceIssues.as_view(),
name="workspace-issues", name="workspace-issues",
), ),

View File

@ -163,7 +163,6 @@ class IssueViewSet(BaseViewSet):
class UserWorkSpaceIssues(BaseAPIView): class UserWorkSpaceIssues(BaseAPIView):
def get(self, request, slug): def get(self, request, slug):
try: try:
print(request.user)
issues = Issue.objects.filter( issues = Issue.objects.filter(
assignees__in=[request.user], workspace__slug=slug assignees__in=[request.user], workspace__slug=slug
) )