mirror of
https://github.com/makeplane/plane.git
synced 2026-02-04 05:00:42 -06:00
[WEB-5815] chore: removed the deleted states (#8457)
This commit is contained in:
committed by
GitHub
parent
6cc5c1946a
commit
3241693d6d
@@ -90,14 +90,6 @@ class IssueManager(SoftDeletionManager):
|
||||
return (
|
||||
super()
|
||||
.get_queryset()
|
||||
.filter(
|
||||
models.Q(issue_intake__status=1)
|
||||
| models.Q(issue_intake__status=-1)
|
||||
| models.Q(issue_intake__status=2)
|
||||
| models.Q(issue_intake__isnull=True)
|
||||
)
|
||||
.filter(deleted_at__isnull=True)
|
||||
.filter(state__is_triage=False)
|
||||
.exclude(state__group=StateGroup.TRIAGE.value)
|
||||
.exclude(archived_at__isnull=False)
|
||||
.exclude(project__archived_at__isnull=False)
|
||||
|
||||
@@ -5,7 +5,7 @@ from django.db.models import Q
|
||||
|
||||
# Module imports
|
||||
from .project import ProjectBaseModel
|
||||
|
||||
from plane.db.mixins import SoftDeletionManager
|
||||
|
||||
class StateGroup(models.TextChoices):
|
||||
BACKLOG = "backlog", "Backlog"
|
||||
@@ -58,14 +58,14 @@ DEFAULT_STATES = [
|
||||
]
|
||||
|
||||
|
||||
class StateManager(models.Manager):
|
||||
class StateManager(SoftDeletionManager):
|
||||
"""Default manager - excludes triage states"""
|
||||
|
||||
def get_queryset(self):
|
||||
return super().get_queryset().exclude(group=StateGroup.TRIAGE.value)
|
||||
|
||||
|
||||
class TriageStateManager(models.Manager):
|
||||
class TriageStateManager(SoftDeletionManager):
|
||||
"""Manager for triage states only"""
|
||||
|
||||
def get_queryset(self):
|
||||
|
||||
Reference in New Issue
Block a user