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
|
|
@ -201,7 +201,7 @@ class IssueCreateSerializer(BaseSerializer):
|
|||
updated_by_id = instance.updated_by_id
|
||||
|
||||
if assignees is not None:
|
||||
IssueAssignee.objects.filter(issue=instance).delete(soft=False)
|
||||
IssueAssignee.objects.filter(issue=instance).delete()
|
||||
IssueAssignee.objects.bulk_create(
|
||||
[
|
||||
IssueAssignee(
|
||||
|
|
@ -218,7 +218,7 @@ class IssueCreateSerializer(BaseSerializer):
|
|||
)
|
||||
|
||||
if labels is not None:
|
||||
IssueLabel.objects.filter(issue=instance).delete(soft=False)
|
||||
IssueLabel.objects.filter(issue=instance).delete()
|
||||
IssueLabel.objects.bulk_create(
|
||||
[
|
||||
IssueLabel(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue