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

[ui-storagebrowser] adds available space check in chunk upload #3931

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

ramprasadagarwal
Copy link
Collaborator

What changes were proposed in this pull request?

  • (Please fill in changes proposed in this fix)

How was this patch tested?

  • Manually tested, will be adding unit test along with tests of whole hook

@ramprasadagarwal ramprasadagarwal self-assigned this Dec 26, 2024
Copy link

⚠️ No unit test files modified. Please ensure that changes are properly tested. ⚠️

const uploadItem = async (item: UploadItem) => {
const isSpaceAvailable = await checkAvailableSpace(item.file.size);
if (!isSpaceAvailable) {
onStatusUpdate(item, FileUploadStatus.Failed);
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the message to the user in this case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For now, it will show the failed status. Need to figure out how can we show the reason being "insufficient space"!

I can show the reason on hovering the error icon, can talk to our Designer for the same.

@ramprasadagarwal ramprasadagarwal enabled auto-merge (squash) January 10, 2025 15:25
Copy link

⚠️ No unit test files modified. Please ensure that changes are properly tested. ⚠️

@ramprasadagarwal ramprasadagarwal merged commit 48b087d into master Jan 10, 2025
5 of 6 checks passed
@ramprasadagarwal ramprasadagarwal deleted the feat/storage-browser-7 branch January 10, 2025 15:40
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.

3 participants