-
Notifications
You must be signed in to change notification settings - Fork 11
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
PB-726: Added a print progress bar instead of a spinner - #patch #967
Conversation
Passing run #2799 ↗︎
Details:
Review all test suite changes for PR #967 ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea! 🥇
Might also make sense, once the printing itself is through and the progess bar is at 100% and disappears, to have a small message there?
When testing on the train with a slow connection to print an A3, the progress bar nicely shows that printing is done.
But downloading an A3 takes quite long and there is no more progress bar of course for that.
But a small message like "downloading PDF" or something might make the user feel more comfortable?
@hansmann for the download time is difficult and behave differently on mobile device and desktop device. On desktop the download is left to the browser and you have the browser download file progress, while on mobile the file is open in a new window. |
I don't really like that we do a magic number calculation to decide how to progress the bar, that might backfire in case of future outages, or unforeseen delay (bar being stuck at 99%, like in everyday life on Windows...) There's no way of giving some steps/progress/feedback from the polling request of the backend? |
@pakb Unfortunately not that I'm aware off. However your issue is mitigated with https://github.com/geoadmin/infra-kubernetes/pull/568 were the backend timeout after 3min and with my logic here having a degressive progress bar, it will never stays long at 99%, in the worst case for a single layer print it might stay stuck ~1min. We could either decrease the backend timeout to 2min in my opinion ? |
Exactly, I don't mean to have a progress bar for the download, but a message, because the download time is unpredictable |
Timeout of 2 min might do, just need to test with A3 and a ton of layers. 2 Minutes might be fully used for those cases... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imho in general a good idea to show to users that print takes time. It's not ideal to set if fixed - arbitrary - value for when it's done, but we don't have a better option right now.
@pakb do you agree to use this ? |
The progress bar is degressive and it's completion time is set based on the number of layer to print
cc1946b
to
42c2701
Compare
I don't disagree, I just feel it's a bad solution to a bad problem 😉 (you have a consensus, I think 🤔 ) EDIT: make it #patch maybe 😉 |
d5fa6ac
to
c2b3592
Compare
The progress bar is degressive and it's completion time is set based on the
number of layer to print
Test link