chore: soft deletion of cycle and module (#5884)
* chore: soft deletion of cycle and module * chore: cycle module soft delete * chore: added the deletion task * chore: updated the env example * chore: cycle issue unique constraints * chore: udpated the Q operator
This commit is contained in:
parent
00eff43f4d
commit
7bf4620bc1
31 changed files with 317 additions and 141 deletions
|
|
@ -35,8 +35,16 @@ def issue_queryset_grouper(queryset, group_by, sub_group_by):
|
|||
}
|
||||
|
||||
annotations_map = {
|
||||
"assignee_ids": ("assignees__id", ~Q(assignees__id__isnull=True)),
|
||||
"label_ids": ("labels__id", ~Q(labels__id__isnull=True)),
|
||||
"assignee_ids": (
|
||||
"assignees__id",
|
||||
~Q(assignees__id__isnull=True)
|
||||
& Q(issue_assignee__deleted_at__isnull=True),
|
||||
),
|
||||
"label_ids": (
|
||||
"labels__id",
|
||||
~Q(labels__id__isnull=True)
|
||||
& Q(label_issue__deleted_at__isnull=True),
|
||||
),
|
||||
"module_ids": (
|
||||
"issue_module__module_id",
|
||||
~Q(issue_module__module_id__isnull=True),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue