Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/apps/api/tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_dataset_api_check_quota(self):
})

assert resp.status_code == 400
assert resp.data["data_file"][0] == f"Insufficient space. Your available space is {pretty_bytes(available_space)}. The file size is {pretty_bytes(file_size)}. Please free up some space and try again."
assert resp.data["data_file"][0] == f'Insufficient space. Your available space is {pretty_bytes(available_space)}. The file size is {pretty_bytes(file_size)}. Please free up some space and try again. You can manage your files in the Resources page.'

# Fake upload a small file
file_size = available_space - 1024
Expand Down
2 changes: 1 addition & 1 deletion src/apps/api/views/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def create(self, request, *args, **kwargs):
if storage_used + file_size > quota:
available_space = pretty_bytes(quota - storage_used)
file_size = pretty_bytes(file_size)
message = f"Insufficient space. Your available space is {available_space}. The file size is {file_size}. Please free up some space and try again."
message = f'Insufficient space. Your available space is {available_space}. The file size is {file_size}. Please free up some space and try again. You can manage your files in the Resources page.'
return Response({'data_file': [message]}, status=status.HTTP_400_BAD_REQUEST)

# All good, let's proceed
Expand Down
2 changes: 1 addition & 1 deletion src/static/riot/competitions/detail/submission_upload.tag
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@

}
}
toastr.error("Creation failed, error occurred")
toastr.error(`Creation failed, error occurred: ${response.responseJSON.data_file[0]}`)
})
.always(function () {
setTimeout(self.hide_progress_bar, 500)
Expand Down