Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added a condition to restrict duplicate user creation
Browse files Browse the repository at this point in the history
NarayanBavisetti committed Jan 23, 2025
1 parent 586a320 commit aa2375a
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apiserver/plane/api/serializers/issue.py
Original file line number Diff line number Diff line change
@@ -207,6 +207,7 @@ def update(self, instance, validated_data):
for assignee_id in assignees
],
batch_size=10,
ignore_conflicts=True,
)

if labels is not None:
@@ -224,6 +225,7 @@ def update(self, instance, validated_data):
for label_id in labels
],
batch_size=10,
ignore_conflicts=True,
)

# Time updation occues even when other related models are updated
2 changes: 2 additions & 0 deletions apiserver/plane/app/serializers/issue.py
Original file line number Diff line number Diff line change
@@ -203,6 +203,7 @@ def update(self, instance, validated_data):
for user in assignees
],
batch_size=10,
ignore_conflicts=True,
)

if labels is not None:
@@ -220,6 +221,7 @@ def update(self, instance, validated_data):
for label in labels
],
batch_size=10,
ignore_conflicts=True,
)

# Time updation occues even when other related models are updated

0 comments on commit aa2375a

Please sign in to comment.