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/remove deleted files #1302

Merged
merged 3 commits into from
Jan 20, 2025
Merged

Feature/remove deleted files #1302

merged 3 commits into from
Jan 20, 2025

Conversation

gecBurton
Copy link
Collaborator

@gecBurton gecBurton commented Jan 20, 2025

Context

We no longer need the deleted status for files

Changes proposed in this pull request

Guidance to review

Relevant links

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

Copy link

sentry-io bot commented Jan 20, 2025

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: django_app/redbox_app/redbox_core/models.py

Function Unhandled Issue
url ValueError: The 'original_file' attribute has no file associated with it. ...
Event Count: 6

Did you find this useful? React with a 👍 or 👎

@@ -672,9 +666,6 @@ def url(self) -> str:

@property
def file_name(self) -> str:
if self.original_file_name: # delete me?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved this logic into delete


status = models.CharField(choices=Status.choices, null=False, blank=False)
original_file = models.FileField(
storage=settings.STORAGES["default"]["BACKEND"],
upload_to=build_s3_key,
)
user = models.ForeignKey(User, on_delete=models.CASCADE)
original_file_name = models.TextField(max_length=2048, blank=True, null=True) # delete me
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

whilst im here

Copy link
Contributor

@KevinEtchells KevinEtchells 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!

@gecBurton gecBurton merged commit afa5b04 into main Jan 20, 2025
6 checks passed
@gecBurton gecBurton deleted the feature/remove-deleted-files branch January 20, 2025 12:00
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