Skip to content

Improve file upload progress bar#28842

Merged
PVince81 merged 1 commit into
masterfrom
fileupload-progress-process
Aug 30, 2017
Merged

Improve file upload progress bar#28842
PVince81 merged 1 commit into
masterfrom
fileupload-progress-process

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

Description

Only hide at the end of all chunked transfers.

Display "Processing files..." when stalled at 100% (final move,
antivirus, etc)

Related Issue

None

Motivation and Context

People complain about the progress bar being stuck at 100% for a while at the end of the transfer.
Since we don't have any way to detect progress past bytes transfer, this changes the message to make it look like something is still happening.

How Has This Been Tested?

Prepare 5 local 100 MB files. Upload them all in one batch. Observe progress bar.

Before the fix: progress bar disappears too early after the first file is done.
After the fix: progress bar stays until the end of the party and 🍸 a bit longer displaying "Processing files..."

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@pmaier1 @cdamken FYI

Only hide at the end of all chunked transfers.

Display "Processing files..." when stalled at 100% (final move,
antivirus, etc)
@PVince81 PVince81 added this to the development milestone Aug 29, 2017
@PVince81 PVince81 self-assigned this Aug 29, 2017
@PVince81 PVince81 requested a review from VicDeo August 29, 2017 13:58
@PVince81

Copy link
Copy Markdown
Contributor Author

@VicDeo please review and also test with antivirus. The delay doesn't care what is delaying, it just checks if we are stalled at 100%.

@PVince81 PVince81 added the p2-high Escalation, on top of current planning, release blocker label Aug 30, 2017
if (this._progressBarInterval) {
window.clearInterval(this._progressBarInterval);
}
this._progressBarInterval = window.setInterval(_.bind(this._updateProgressBar, this), 1000);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather move this progress bar handling to another class. This way we can extract these superfluous attributes from the upload object.
If time is pressuring, it's fine to leave it as technical debt since the usage of those attributes isn't spread.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At first I started moving this to a new class then I realized that it would be too many changes at once, so I reverted to this disappointedly ugly solution.

@jvillafanez jvillafanez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks fine, not tested.

@PVince81 PVince81 merged commit 07e849b into master Aug 30, 2017
@PVince81 PVince81 deleted the fileupload-progress-process branch August 30, 2017 17:24
@PVince81

Copy link
Copy Markdown
Contributor Author

stable10: #28861

@lock

lock Bot commented Aug 2, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3 - To Review p2-high Escalation, on top of current planning, release blocker status/STALE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants