Skip to content
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

Trigger add to progress before the folders creation #2221

Merged

Conversation

LukasHirt
Copy link
Collaborator

Description

Move addToProgress into its own function and trigger it before the folders creation.

Motivation and Context

Since we wait until all folders are created and those promises are being processed one by one it would take quite some time before the actual progress bar is shown. This takes care of that. We need to figure out though how to handle if some specific folder fails.

How Has This Been Tested?

  • test environment: Manually
  1. Upload a folder with a lot of subfolders

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)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@LukasHirt LukasHirt added the Status:Needs-Review Needs review from a maintainer label Oct 11, 2019
@LukasHirt LukasHirt self-assigned this Oct 11, 2019
@DeepDiver1975
Copy link
Member

Screenshot from 2019-10-11 11-48-58

@DeepDiver1975
Copy link
Member

Screenshot from 2019-10-11 11-49-36

@LukasHirt
Copy link
Collaborator Author

Strange that you get two slashes there...

@DeepDiver1975
Copy link
Member

Strange that you get two slashes there...

also fails on master for me 🙈

@LukasHirt
Copy link
Collaborator Author

also fails on master for me 🙈

I tried it also on phoenix.owncloud.com and works for me there and locally as well.

@LukasHirt
Copy link
Collaborator Author

LukasHirt commented Oct 11, 2019

Anyway, I get also folder "a" and "b" into the folder where I triggered the upload. I'll debug this.

@ownclouders
Copy link
Contributor

💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...

https://drone.owncloud.com/owncloud/phoenix/5633/

20191011-100847-722.png
20191011-101356-620.png
20191011-101441-756.png
20191011-101512-914.png
20191011-101543-405.png
20191011-101622-778.png
20191011-101653-193.png
20191011-101732-280.png
20191011-101814-723.png
20191011-101918-166.png
20191011-101958-216.png
20191011-102031-519.png
20191011-102112-154.png
20191011-102144-488.png
20191011-102224-112.png

@LukasHirt
Copy link
Collaborator Author

Fix for the issue with upload of subfolders - #2224

@DeepDiver1975 DeepDiver1975 merged commit 1392000 into master Oct 14, 2019
@delete-merged-branch delete-merged-branch bot deleted the bugfix/add-files-to-queue-before-folder-creation branch October 14, 2019 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status:Needs-Review Needs review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants