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

fix: add folder #924

Merged
merged 1 commit into from
Jan 4, 2019
Merged

fix: add folder #924

merged 1 commit into from
Jan 4, 2019

Conversation

fsdiogo
Copy link
Contributor

@fsdiogo fsdiogo commented Jan 4, 2019

Adding a folder was failing because of the length of the api response. It would also fail and give an incoherent error if adding a folder with an existing folder name.

folder

Fixes #922.

@fsdiogo fsdiogo self-assigned this Jan 4, 2019
@fsdiogo fsdiogo requested review from olizilla and hacdias January 4, 2019 16:41
@ghost ghost added the status/in-progress In progress label Jan 4, 2019
@@ -241,17 +241,22 @@ export default (opts = {}) => {
progress: updateProgress
})

if (res.length !== streams.length + 1) {
if (res.length !== streams.length + 2) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure when this changed, but it was always failing because of this!

Copy link
Member

Choose a reason for hiding this comment

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

interesting, it's returning an entry for the folder, and the parent of the folder. This fixes our logic around it, so +1

Copy link
Member

@olizilla olizilla left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -241,17 +241,22 @@ export default (opts = {}) => {
progress: updateProgress
})

if (res.length !== streams.length + 1) {
if (res.length !== streams.length + 2) {
Copy link
Member

Choose a reason for hiding this comment

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

interesting, it's returning an entry for the folder, and the parent of the folder. This fixes our logic around it, so +1

@olizilla olizilla merged commit e06d340 into master Jan 4, 2019
@olizilla olizilla deleted the fix/add-folder branch January 4, 2019 18:22
@ghost ghost removed the status/in-progress In progress label Jan 4, 2019
@lidel lidel mentioned this pull request Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants