From f2825ac4b9fe6a94f0cadf3493b9cb3879fefe5b Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Thu, 20 Feb 2025 19:37:58 +0530 Subject: [PATCH 1/2] chore: created by field added to attachment response --- apiserver/plane/app/serializers/issue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apiserver/plane/app/serializers/issue.py b/apiserver/plane/app/serializers/issue.py index a62b266e999..2fb7c035d5d 100644 --- a/apiserver/plane/app/serializers/issue.py +++ b/apiserver/plane/app/serializers/issue.py @@ -522,6 +522,7 @@ class Meta: "asset", "attributes", # "issue_id", + "created_by", "updated_at", "updated_by", "asset_url", From c1b25b0c1cb1e20e6d068fa1f259033310f8208f Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Thu, 20 Feb 2025 19:38:25 +0530 Subject: [PATCH 2/2] fix: work item attachment mutation --- web/core/store/issue/issue-details/attachment.store.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/core/store/issue/issue-details/attachment.store.ts b/web/core/store/issue/issue-details/attachment.store.ts index 6f4977dbb30..73474a3e836 100644 --- a/web/core/store/issue/issue-details/attachment.store.ts +++ b/web/core/store/issue/issue-details/attachment.store.ts @@ -161,9 +161,6 @@ export class IssueAttachmentStore implements IIssueAttachmentStore { runInAction(() => { update(this.attachments, [issueId], (attachmentIds = []) => uniq(concat(attachmentIds, [response.id]))); set(this.attachmentMap, response.id, response); - this.rootIssueStore.issues.updateIssue(issueId, { - attachment_count: issueAttachmentsCount + 1, // increment attachment count - }); }); }