-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Issue Tracker] deleting attachment leaves no record of the attachment history #8490
base: main
Are you sure you want to change the base?
[Issue Tracker] deleting attachment leaves no record of the attachment history #8490
Conversation
Fix the indentation for mime_type and file_size
Fixing the indentation for file_size and date_deleted on line 164 and 165
Remove the semi-column from the `date_deleted`
fixing Indentation
setting the `date_deleted` to default null instead of timestamp()
@GeorgeMurad Following our roadmap meeting discussion today, can you automatically create a comment when a file is deleted instead? That will avoid changing the SQL schema which is a better option. |
@driusan is this a critical bugfix? its going to 24 |
@GeorgeMurad Can you please resolve conflicts in this one? |
SQL/New_patches/2023-04-03_Add_Column_to_issues_attachments_table.sql
Outdated
Show resolved
Hide resolved
08afc4b
to
8d48b07
Compare
…g_attachment_leaves_no_record_of_the_attachment George murad 2023 04 03 deleting attachment leaves no record of the attachment
Adding the `date_deleted` and removing the deleted column.
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.
Only two small comments:
- I think we usually don't send the patch to
SQL/Release_patches
, I think to remember this will be done when creating the release script for updating LORIS. @driusan could tell more about this than myself. - When I was testing this PR in main I got a 500 error that was not caused by the PR but that maybe we should solve as part of it. The issue was a type mismatch for the following variables in the data model
attachmentdto.class.inc
:
@racostas I agree with updating the variable types to INT. And how about the |
I think the Patch inside |
Yes. Patches go into New_patches. @ridz1208 or @kongtiaowang usually merge them into a release patch before the release. |
OK, great. I will remove it from the release patches! |
@GeorgeMurad , some test failing: mostly indentation |
@racostas I am not sure what is happening here. I fixed all the indentation automatically using phcbf. |
@GeorgeMurad, try to fix the conflicts. Maybe a rebase is need since it seem the latest activity in this PR (before this week) was a while ago. |
Issue Tracker
module for theAttachment History
, when deleting the log on the 'Attachment History' should appear.Date of deletion
to theAttachment History
when got deleted. It will show the user when did they delete the Upload file(Attachment).Testing instructions (if applicable):
Attachment History
should appear.Related To: #7882