Open andrazrepar opened 2 years ago
Processing
.This could be an API issue.
@LukeItUp is it possible that the status resets before the download starts? Can we delay it somehow so that the with/without namespaces messages does not show until the download has actually started?
Dictionary's status resets when the file starts being served to the client (user). What you are suggesting is changing status after the downloaded file has been served i.e. the request has been fully processed. Flask sadly does not directly support this. Things we could do:
The current workflow is as follows:
However, with large files, after the file is prepared and the user clicks the Download button, it takes a few seconds to start the download and in the meantime the screen refreshes and the user already sees the two initial options (with or without namespaces). This is confusing because it seems that immediately clicking one of the two options again cancels the download.
I guess we need to prevent the screen from being refreshed until after the download starts.