π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
chore: added identifiers in the notification (#5513)
Bavisetti Narayana3a7053be72f
diff --git a/apiserver/plane/bgtasks/issue_activities_task.py b/apiserver/plane/bgtasks/issue_activities_task.pyindex f836023993..8ecf7845db 100644--- a/apiserver/plane/bgtasks/issue_activities_task.py+++ b/apiserver/plane/bgtasks/issue_activities_task.py@@ -1,13 +1,11 @@# Python importsimport json-import requests# Third Party importsfrom celery import shared_task# Django imports-from django.conf import settingsfrom django.core.serializers.json import DjangoJSONEncoderfrom django.utils import timezonediff --git a/apiserver/plane/bgtasks/notification_task.py b/apiserver/plane/bgtasks/notification_task.pyindex 0189316cf3..44f3250156 100644--- a/apiserver/plane/bgtasks/notification_task.py+++ b/apiserver/plane/bgtasks/notification_task.py@@ -128,7 +128,9 @@ def extract_mentions(issue_instance):"mention-component", attrs={"target": "users"})- mentions = [mention_tag["entity_identifier"] for mention_tag in mention_tags]+ mentions = [+ mention_tag["entity_identifier"] for mention_tag in mention_tags+ ]return list(set(mentions))except Exception:@@ -198,6 +200,16 @@ def create_mention_notification("actor": str(activity.get("actor_id")),"new_value": str(activity.get("new_value")),"old_value": str(activity.get("old_value")),+ "old_identifier": (+ str(activity.get("old_identifier"))+ if activity.get("old_identifier")+ else None+ ),+ "new_identifier": (+ str(activity.get("new_identifier"))+ if activity.get("new_identifier")+ else None+ ),},},)@@ -440,6 +452,24 @@ def notifications(if issue_comment is not Noneelse ""),+ "old_identifier": (+ str(+ issue_activity.get(+ "old_identifier"+ )+ )+ if issue_activity.get("old_identifier")+ else None+ ),+ "new_identifier": (+ str(+ issue_activity.get(+ "new_identifier"+ )+ )+ if issue_activity.get("new_identifier")+ else None+ ),},},)@@ -489,6 +519,28 @@ def notifications(if issue_comment is not Noneelse ""),+ "old_identifier": (+ str(+ issue_activity.get(+ "old_identifier"+ )+ )+ if issue_activity.get(+ "old_identifier"+ )+ else None+ ),+ "new_identifier": (+ str(+ issue_activity.get(+ "new_identifier"+ )+ )+ if issue_activity.get(+ "new_identifier"+ )+ else None+ ),"activity_time": issue_activity.get("created_at"),@@ -572,6 +624,28 @@ def notifications("old_value": str(issue_activity.get("old_value")),+ "old_identifier": (+ str(+ issue_activity.get(+ "old_identifier"+ )+ )+ if issue_activity.get(+ "old_identifier"+ )+ else None+ ),+ "new_identifier": (+ str(+ issue_activity.get(+ "new_identifier"+ )+ )+ if issue_activity.get(+ "new_identifier"+ )+ else None+ ),"activity_time": issue_activity.get("created_at"),@@ -627,6 +701,28 @@ def notifications("old_value": str(last_activity.old_value),+ "old_identifier": (+ str(+ issue_activity.get(+ "old_identifier"+ )+ )+ if issue_activity.get(+ "old_identifier"+ )+ else None+ ),+ "new_identifier": (+ str(+ issue_activity.get(+ "new_identifier"+ )+ )+ if issue_activity.get(+ "new_identifier"+ )+ else None+ ),},},)@@ -662,7 +758,31 @@ def notifications("old_value": str(last_activity.old_value),- "activity_time": str(last_activity.created_at),+ "old_identifier": (+ str(+ issue_activity.get(+ "old_identifier"+ )+ )+ if issue_activity.get(+ "old_identifier"+ )+ else None+ ),+ "new_identifier": (+ str(+ issue_activity.get(+ "new_identifier"+ )+ )+ if issue_activity.get(+ "new_identifier"+ )+ else None+ ),+ "activity_time": str(+ last_activity.created_at+ ),},},)@@ -719,6 +839,28 @@ def notifications("old_value")),+ "old_identifier": (+ str(+ issue_activity.get(+ "old_identifier"+ )+ )+ if issue_activity.get(+ "old_identifier"+ )+ else None+ ),+ "new_identifier": (+ str(+ issue_activity.get(+ "new_identifier"+ )+ )+ if issue_activity.get(+ "new_identifier"+ )+ else None+ ),"activity_time": issue_activity.get("created_at"),diff --git a/apiserver/plane/settings/common.py b/apiserver/plane/settings/common.pyindex af6560ca1e..0ce0a6dcb4 100644--- a/apiserver/plane/settings/common.py+++ b/apiserver/plane/settings/common.py@@ -2,10 +2,8 @@# Python importsimport os-import sslfrom urllib.parse import urlparse-import certifi# Third party importsimport dj_database_url