[WEB-2092] chore: changed the hard delete days (#5255)
* chore: changed the hard delete days * chore: hard delete key change * chore: restrict deletion of project * chore: draft issue delete filter
This commit is contained in:
parent
0b01d3e88d
commit
3c684ecab7
5 changed files with 32 additions and 22 deletions
|
|
@ -66,6 +66,7 @@ class IssueArchiveViewSet(BaseViewSet):
|
|||
.annotate(count=Func(F("id"), function="Count"))
|
||||
.values("count")
|
||||
)
|
||||
.filter(deleted_at__isnull=True)
|
||||
.filter(archived_at__isnull=False)
|
||||
.filter(project_id=self.kwargs.get("project_id"))
|
||||
.filter(workspace__slug=self.kwargs.get("slug"))
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ class IssueDraftViewSet(BaseViewSet):
|
|||
Issue.objects.filter(project_id=self.kwargs.get("project_id"))
|
||||
.filter(workspace__slug=self.kwargs.get("slug"))
|
||||
.filter(is_draft=True)
|
||||
.filter(deleted_at__isnull=True)
|
||||
.select_related("workspace", "project", "state", "parent")
|
||||
.prefetch_related("assignees", "labels", "issue_module__module")
|
||||
.annotate(cycle_id=F("issue_cycle__cycle_id"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue