From 737ac33d5d725b0fd6576991b49d49a63418ef72 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Mon, 24 Jul 2023 17:41:04 +0530 Subject: [PATCH] chore: project issue link activity (#1639) * chore: project issue link activity * dev: fix delete activity --- apiserver/plane/bgtasks/issue_activites_task.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apiserver/plane/bgtasks/issue_activites_task.py b/apiserver/plane/bgtasks/issue_activites_task.py index c2502cd68..8a485d46e 100644 --- a/apiserver/plane/bgtasks/issue_activites_task.py +++ b/apiserver/plane/bgtasks/issue_activites_task.py @@ -959,6 +959,11 @@ def update_link_activity( def delete_link_activity( requested_data, current_instance, issue_id, project, actor, issue_activities ): + + current_instance = ( + json.loads(current_instance) if current_instance is not None else None + ) + issue_activities.append( IssueActivity( issue_id=issue_id, @@ -968,6 +973,8 @@ def delete_link_activity( verb="deleted", actor=actor, field="link", + old_value=current_instance.get("url", ""), + new_value="" ) )