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 file upload process to create new version of file if it exists #225

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

TimCsaky
Copy link
Contributor

@TimCsaky TimCsaky commented Dec 6, 2024

Description

allow file upload process to create new version of file if it exists

Copy link

github-actions bot commented Dec 6, 2024

Coverage Report (Application)

Totals Coverage
Statements: 70.67% ( 53 / 75 )
Methods: 62.5% ( 5 / 8 )
Lines: 81.63% ( 40 / 49 )
Branches: 44.44% ( 8 / 18 )

Copy link

github-actions bot commented Dec 6, 2024

Coverage Report (Frontend)

Totals Coverage
Statements: 18.11% ( 761 / 4202 )
Methods: 17.92% ( 141 / 787 )
Lines: 22.28% ( 537 / 2410 )
Branches: 8.26% ( 83 / 1005 )

@TimCsaky TimCsaky marked this pull request as draft December 6, 2024 01:00
file,
{ metadata: data?.metadata },
{ bucketId: bucketId, tagset: data?.tagset },
{ timeout: 0 } // Infinite timeout for big files upload to avoid timeout error
);

// show toast for any object updates
if (response?.newVersionId) toast.info(`New version created for ${file.name}`,'');
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd probably mention something along the lines of "Previously deleted file {filename}found. This has been overwritten by the latest upload".

Definitely needs a bit of wordsmithing, but the idea is that if the previously soft-deleted file isn't visible anywhere inside BCBox, it could cause user confusion if we're all of a sudden implying that it already exists.

@TimCsaky TimCsaky marked this pull request as ready for review December 9, 2024 22:13
@TimCsaky TimCsaky merged commit d5ba853 into master Dec 9, 2024
16 of 17 checks passed
@TimCsaky TimCsaky changed the title allow file upload process to create new version of file if it exiists allow file upload process to create new version of file if it exists Dec 12, 2024
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