-
Notifications
You must be signed in to change notification settings - Fork 25
Magic-Folder upload progress-indicators #399
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
Conversation
|
The Windows environment on GitHub Actions appears to have been recently changed/updated in a way that's now breaking PyInstaller. Since this PR passing without issue on Buildbot, however -- and since we don't currently depend on GHA for deploying such binaries -- I'm going to merge this PR anyway (and will investigate the GHA/Windows issue separately...). EDIT: FWIW, the PyInstaller breakage is due to GHA updating to Python 3.9.8, which, apparently, lacks an embedded manifest file. See pyinstaller/pyinstaller#6367 |
This PR adds some parsing/monitoring routines for tracking individual file Magic-Folder upload/download operations, subsequently enabling progress-indicators for Magic-Folder upload operations (displayed in the form of a text-based percentage (e.g., "Syncing (75%)") in the "Status" column for each folder) and reinstating desktop notifications for newly-updated files. Due to current limitations with both Tahoe-LAFS and the Magic-Folder status API, however, this sync-progress value is presently calculated from the number of operations queued against the number of operations completed only; it does not take into account the number of bytes transferred/remaining (but may in the future, if/when Tahoe-LAFS and Magic-Folder provide such information). Accordingly, this indicator should not be relied upon to, e.g., estimate the amount of time remaining until a given folder has finished synchronizing (but is, at least, better than nothing...).
Note, also, that at the time of writing, the progress indicator only tracks upload operations; progress indicators for download operations are currently broken as a result of tahoe-lafs/magic-folder#589.