Skip to content
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

Feature/redbox 234 keep deleted file django reference #448

Merged

Conversation

rachaelcodes
Copy link
Contributor

Context

After discussion with the wider product team about managing deleted documents, we decided to keep a reference to files in the Django database when the files were deleted from S3 and the core_api.

Changes proposed in this pull request

Now when a user chooses to delete an object, we delete the file from S3 rather than the whole Django object.

This also updates the UI with an interim version to show that the file is in a 'deleted' state.
Screenshot 2024-05-23 at 15 48 12

Guidance to review

Run locally, including the database migrations (check nothing broken) - you might need to make reset-db before switching to a different branch. Try deleting a file and check how it displays - see if it deleted in minio.

Relevant links

https://technologyprogramme.atlassian.net/browse/REDBOX-234

Things to check

  • [ ] I have added any new ENV vars in all deployed environments
  • I have tested any code added or changed
  • [ ] I have run integration tests

@rachaelcodes rachaelcodes marked this pull request as ready for review May 23, 2024 15:01
Copy link
Contributor

@brunns brunns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@brunns
Copy link
Contributor

brunns commented May 24, 2024

Probably worth merging main in again and running make format lint.

@rachaelcodes rachaelcodes force-pushed the feature/REDBOX-234-keep-deleted-file-django-reference branch from 763a569 to 3281f36 Compare May 28, 2024 08:15
@rachaelcodes rachaelcodes force-pushed the feature/REDBOX-234-keep-deleted-file-django-reference branch from 3281f36 to 9b5aa15 Compare May 28, 2024 13:04
@rachaelcodes rachaelcodes merged commit 8a8355e into main May 28, 2024
9 checks passed
@rachaelcodes rachaelcodes deleted the feature/REDBOX-234-keep-deleted-file-django-reference branch May 28, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants