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

Allow release file reuploads to different workspaces #4805

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

rebkwok
Copy link
Contributor

@rebkwok rebkwok commented Jan 14, 2025

Reuploads of the same release file (with same filename and same content) are prohibited. However, a file with the same name/content may legitimately be reuploaded to a different workspace. Update the check for already uploaded files to check for the same filename/content within the target workspace only.

See slack thread

Reuploads of the same release file (with same filename and same
content) are prohibited. However, a file  with the same name/content
may legitimately be reuploaded to a different workspace. Update the
check for already uploaded files to check for the same filename/content
within the target workspace only.
@rebkwok rebkwok force-pushed the release-file-reuploads branch from 826f6ea to d3912b6 Compare January 14, 2025 14:51
@@ -93,20 +94,51 @@ def test_create_release_reupload():
"url": "",
"size": 4,
"sha256": "hash",
"mtime": "2022-08-17T13:37Z",
Copy link
Member

Choose a reason for hiding this comment

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

huh, how was this working before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's because it never got that far - it would fail the reupload before it tried to access the date

@rebkwok rebkwok merged commit 4e777a4 into main Jan 14, 2025
7 checks passed
@rebkwok rebkwok deleted the release-file-reuploads branch January 14, 2025 16:21
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