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

Add delete permissions on File models #77

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

jabrah
Copy link
Contributor

@jabrah jabrah commented Jan 25, 2024

Part of eclipse-pass/main#514

Would we want to first check if the uploaded bytes on the file system are gone (referenced in file.uri)?

@jabrah jabrah requested review from tsande16 and rpoet-jh January 25, 2024 15:56
@markpatton
Copy link
Contributor

@jabrah

For the moment I think we should avoid the complexity of checking the file service. Let's wait and see if it is needed. Because if we start doing so on deletion, we should also be checking on updates to the File object.

@jabrah
Copy link
Contributor Author

jabrah commented Jan 25, 2024

IMO it's a little awkward, but manageable for the UI to manage the file bytes and File entity in this way. I agree, though, that we should wait to see if there's feedback about file it before looking into potential changes

@markpatton markpatton self-requested a review January 29, 2024 15:37
Copy link
Contributor

@markpatton markpatton left a comment

Choose a reason for hiding this comment

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

Tests pass for me locally. Looks good.

@jabrah jabrah merged commit 4c2407c into main Jan 29, 2024
2 checks passed
@jabrah jabrah deleted the 514-file-deletion-permissions branch January 29, 2024 16:35
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