forked from github/plane
fix: url missing for my workspace issues
This commit is contained in:
parent
2881f990f5
commit
cefea57bd6
@ -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",
|
||||||
),
|
),
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user