Compare commits

...

1 Commits

Author SHA1 Message Date
NarayanBavisetti
f18e1e4023 fix: removed draft notifications 2023-09-14 20:16:40 +05:30
2 changed files with 7 additions and 1 deletions

View File

@ -1197,7 +1197,7 @@ class WorkspaceUserActivityEndpoint(BaseAPIView):
projects = request.query_params.getlist("project", []) projects = request.query_params.getlist("project", [])
queryset = IssueActivity.objects.filter( queryset = IssueActivity.objects.filter(
~Q(field__in=["comment", "vote", "reaction"]), ~Q(field__in=["comment", "vote", "reaction", "draft"]),
workspace__slug=slug, workspace__slug=slug,
project__project_projectmember__member=request.user, project__project_projectmember__member=request.user,
actor=user_id, actor=user_id,

View File

@ -1181,6 +1181,9 @@ def issue_activity(
"comment_reaction.activity.deleted", "comment_reaction.activity.deleted",
"issue_vote.activity.created", "issue_vote.activity.created",
"issue_vote.activity.deleted", "issue_vote.activity.deleted",
"issue_draft.activity.created",
"issue_draft.activity.updated",
"issue_draft.activity.deleted",
]: ]:
issue = Issue.objects.filter(pk=issue_id).first() issue = Issue.objects.filter(pk=issue_id).first()
@ -1272,6 +1275,9 @@ def issue_activity(
"comment_reaction.activity.deleted", "comment_reaction.activity.deleted",
"issue_vote.activity.created", "issue_vote.activity.created",
"issue_vote.activity.deleted", "issue_vote.activity.deleted",
"issue_draft.activity.created",
"issue_draft.activity.updated",
"issue_draft.activity.deleted",
]: ]:
# Create Notifications # Create Notifications
bulk_notifications = [] bulk_notifications = []