-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[10.2.0] Backport of Aborted uploads are not cleared properly #35134
[10.2.0] Backport of Aborted uploads are not cleared properly #35134
Conversation
File uploads should also be checked if they are aborted or not. This would help to check if the file is aborted or not. If aborted then it would be cleared from the list. Signed-off-by: Sujith H <[email protected]>
Original PR: #35130 |
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.
👍
Codecov Report
@@ Coverage Diff @@
## release-10.2.0 #35134 +/- ##
=================================================
Coverage 64.38% 64.38%
Complexity 20049 20049
=================================================
Files 1285 1285
Lines 76851 76851
Branches 1308 1308
=================================================
Hits 49478 49478
Misses 26989 26989
Partials 384 384
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## release-10.2.0 #35134 +/- ##
=================================================
Coverage 64.38% 64.38%
Complexity 20049 20049
=================================================
Files 1285 1285
Lines 76851 76851
Branches 1308 1308
=================================================
Hits 49478 49478
Misses 26989 26989
Partials 384 384
Continue to review full report at Codecov.
|
File uploads should also be checked if they
are aborted or not. This would help to check
if the file is aborted or not. If aborted then
it would be cleared from the list.
Signed-off-by: Sujith H [email protected]
Description
When user uploads file and then aborts the upload ( the abort is done for the first time ), the global value of
this._uploads
is not updated properly. If the file is aborted, then as of now the state ofupload
ispending
. And hencethis._uploads
will always have currently aborted upload. So when the user tries to upload a file next time ( say second time ), then the value in thethis_upload
mismatches. Because it has previous value. And the error could also be seen in the console.In this change set I have introduced an attribute
aborted
for theupload
. When the upload is aborted,aborted
attribute ofupload
is set to true. And hence while clearing the uploads, it checks whether the current aborted upload should be added to remaining uploads or not.In simple terms its an issue of not clearing uploads list.
Related Issue
Motivation and Context
The aborted upload(s) should be cleared from the list.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: