Open rocodes opened 2 years ago
When a file download fails, the flashed/banner message appears in the top pane indicating a failure, but the file download animation continues.
in downloads.py, modify FileDownloadJob.call_api() to throw an immediate error:
downloads.py
FileDownloadJob.call_api()
def call_download_api(self, api: API, db_object: File) -> Tuple[str, str]: """ Override DownloadJob. """ raise DownloadException( f"Failed to download {db_object.uuid}", type(db_object), db_object.uuid )
Error banner message is displayed, file download animation stops, and "encrypted file on server" is shown
Error banner message is displayed, file download animation continues, and "Downloading..." continues to be displayed.
@gonzalo-bulnes Is this currently on your plate? Any objections if I label it as a good first issue before the hackathon?
good first issue
Sounds good @rocodes 👍
Description
When a file download fails, the flashed/banner message appears in the top pane indicating a failure, but the file download animation continues.
Steps to Reproduce
in
downloads.py
, modifyFileDownloadJob.call_api()
to throw an immediate error:Expected Behavior
Error banner message is displayed, file download animation stops, and "encrypted file on server" is shown
Actual Behavior
Error banner message is displayed, file download animation continues, and "Downloading..." continues to be displayed.