Skip to content

Commit

Permalink
chore: removed extra exporter function (#1953)
Browse files Browse the repository at this point in the history
  • Loading branch information
NarayanBavisetti committed Aug 23, 2023
1 parent 2d14069 commit 529ab19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
5 changes: 4 additions & 1 deletion apiserver/plane/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
IssueCommentPublicViewSet,
IssueReactionViewSet,
CommentReactionViewSet,
ExportIssuesEndpoint,
## End Issues
# States
StateViewSet,
Expand Down Expand Up @@ -175,6 +174,10 @@
InboxIssuePublicViewSet,
IssueVotePublicViewSet,
## End Public Boards
## Exporter
ExportIssuesEndpoint,
## End Exporter

)


Expand Down
25 changes: 0 additions & 25 deletions apiserver/plane/api/views/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -1827,28 +1827,3 @@ def destroy(self, request, slug, project_id, issue_id):
status=status.HTTP_400_BAD_REQUEST,
)


class ExportIssuesEndpoint(BaseAPIView):
permission_classes = [
WorkSpaceAdminPermission,
]

def post(self, request, slug):
try:

issue_export_task.delay(
email=request.user.email, data=request.data, slug=slug ,exporter_name=request.user.first_name
)

return Response(
{
"message": f"Once the export is ready it will be emailed to you at {str(request.user.email)}"
},
status=status.HTTP_200_OK,
)
except Exception as e:
capture_exception(e)
return Response(
{"error": "Something went wrong please try again later"},
status=status.HTTP_400_BAD_REQUEST,
)

1 comment on commit 529ab19

@vercel
Copy link

@vercel vercel bot commented on 529ab19 Aug 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

plane-dev – ./apps/app

plane-dev.vercel.app
plane-dev-git-develop-plane.vercel.app
plane-dev-plane.vercel.app

Please sign in to comment.