-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add deleted_at to attachments #1698
Conversation
4d27da4
to
c741f1c
Compare
c741f1c
to
682b721
Compare
77ee304
to
6352245
Compare
6352245
to
63ed6df
Compare
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.
is there a test that deleted_at
is set to the user that deleted it correctly? I didn't see it, maybe I missed it
1c7c4ea
to
5dd681f
Compare
I dont believe so. |
5dd681f
to
5c2f07c
Compare
my mistake, I meant to write can we please add this test if it doesn't exist |
Sure, let me confirm, and include one if none exists |
2768947
to
177d84d
Compare
282091f
to
eb06523
Compare
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.
lgtm
@WinnyTroy I uploaded a submission with an image then edited the submission and uploaded a different image. It seems like both images are still being fetched. Also kindly check on the photo tab view for the form - I noticed that the deleted image is still being fetched here too and in an instance where I edited the submission and deleted the image without uploading a new one, the deleted image still appears on the photo tab view |
this seems to be a deployment issue. I'll re-deploy the changes and request for QA once more. Appologies |
Added a Blocked label as this is being blocked by the discussion ongoing here. |
Removing this label |
b03458f
to
fd1ee8d
Compare
d658556
to
9668dc0
Compare
a745a4d
to
df3d077
Compare
91d821f
to
25ef8ef
Compare
9d7bc33
to
bcdc850
Compare
bcdc850
to
2f86e4f
Compare
@WinnyTroy The fix has passed QA. Deleted images are no longer being displayed on the Photo's tab nor are their links in the Table tab. Also, both audio and video files are being replaced successfully. |
Create soft_delete action that will populate deleted_at field for attachments. Fixes #1696 Call soft_delete action when replacing attachments
Make changes as requested from revies Update failing tests
Moved soft delete action to the instance model Restructured how we call the soft_delete action when editing submissions
2f86e4f
to
953e0cf
Compare
Add deleted_at Field to Attachments.
Create soft_delete action that will populate deleted_at field for attachments.
Resolves #1696