chore: handling the archived module ids in the issue list and issue detail endpoints (#5343)
This commit is contained in:
parent
24b1e71cbf
commit
f457048644
4 changed files with 10 additions and 8 deletions
|
|
@ -18,7 +18,6 @@ from plane.db.models import (
|
|||
|
||||
|
||||
def issue_queryset_grouper(queryset, group_by, sub_group_by):
|
||||
|
||||
FIELD_MAPPER = {
|
||||
"label_ids": "labels__id",
|
||||
"assignee_ids": "assignees__id",
|
||||
|
|
@ -30,7 +29,10 @@ def issue_queryset_grouper(queryset, group_by, sub_group_by):
|
|||
"label_ids": ("labels__id", ~Q(labels__id__isnull=True)),
|
||||
"module_ids": (
|
||||
"issue_module__module_id",
|
||||
~Q(issue_module__module_id__isnull=True),
|
||||
(
|
||||
~Q(issue_module__module_id__isnull=True)
|
||||
& Q(issue_module__module__archived_at__isnull=True)
|
||||
),
|
||||
),
|
||||
}
|
||||
default_annotations = {
|
||||
|
|
@ -51,7 +53,6 @@ def issue_queryset_grouper(queryset, group_by, sub_group_by):
|
|||
|
||||
|
||||
def issue_on_results(issues, group_by, sub_group_by):
|
||||
|
||||
FIELD_MAPPER = {
|
||||
"labels__id": "label_ids",
|
||||
"assignees__id": "assignee_ids",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue