-
Notifications
You must be signed in to change notification settings - Fork 1
OUT-2914 | attachments Store to attachment table when attachment is uploaded. #1090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- created a mechanism to support creating entries on attachments tables based on files/images uploaded on - task creation - task description update - subtask creation - subtask description update - comment/reply creation - comment/reply update - Entries on attachments table are done from api services when task/comments are created and from fronend client components when tasks/comments are edited. - Remaining: Clean deleted attachments from attachments table while clearing out scrap medias
- added a mechanism to extract attachments when comment/reply is created, move them to their respective folder and create an entry on attachments table. - Cleaning deleted attachments from attachments table while clearing out scrap medias.
…on issues. totally segregated replies/comments to have their own attachment entities
…on issues. totally segregated replies/comments to have their own attachment entities
| } | ||
| setLastUpdated(task?.lastActivityLogUpdated) | ||
| } | ||
| }, [task?.lastActivityLogUpdated]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also suppress these warning if they are intentional.
SandipBajracharya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see we have drilled postAttachment() prop up to 4 levels. Is there any way we can refactor this? Maybe use context in this case if possible?
SandipBajracharya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include the testing criteria
SandipBajracharya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In createUploadFn(), do we need to check for config.workspace and return undefined if not found? I saw condition check for token && tokenPayload.workspace before the refactor.
Everything else LGTM 🙌
…achment. workspaceId is needed for building folder structure effecting filePaths
Changes
Testing