[WEB-2092] chore: favorite delete changes (#5302)
* chore: favorite delete changes * chore: removed deploy board deletion * chore: favorite entity deletion
This commit is contained in:
parent
91e4da502a
commit
07574b4222
7 changed files with 64 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ from plane.db.models import (
|
|||
IssueAttachment,
|
||||
IssueLink,
|
||||
ProjectMember,
|
||||
UserFavorite,
|
||||
)
|
||||
from plane.utils.analytics_plot import burndown_plot
|
||||
|
||||
|
|
@ -408,6 +409,12 @@ class CycleAPIEndpoint(BaseAPIView):
|
|||
CycleIssue.objects.filter(
|
||||
cycle_id=self.kwargs.get("pk"),
|
||||
).delete()
|
||||
# Delete the user favorite cycle
|
||||
UserFavorite.objects.filter(
|
||||
entity_type="cycle",
|
||||
entity_identifier=pk,
|
||||
project_id=project_id,
|
||||
).delete()
|
||||
return Response(status=status.HTTP_204_NO_CONTENT)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue