chore: project issue link activity (#1639)

* chore: project issue link activity

* dev: fix delete activity
This commit is contained in:
Nikhil 2023-07-24 17:41:04 +05:30 committed by GitHub
parent fd17c249fd
commit 737ac33d5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -959,6 +959,11 @@ def update_link_activity(
def delete_link_activity( def delete_link_activity(
requested_data, current_instance, issue_id, project, actor, issue_activities 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( issue_activities.append(
IssueActivity( IssueActivity(
issue_id=issue_id, issue_id=issue_id,
@ -968,6 +973,8 @@ def delete_link_activity(
verb="deleted", verb="deleted",
actor=actor, actor=actor,
field="link", field="link",
old_value=current_instance.get("url", ""),
new_value=""
) )
) )