Image-sequencer: Output not generated if contents of output folder are deleted

Created on 13 Feb 2018  路  10Comments  路  Source: publiclab/image-sequencer

Hi, this is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.

If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!

If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!馃榿

The problem

If the output folder is an empty directory (if you delete the contents of the ouput folder) the sequencer output will not get exported since callback is not called in that case
This line should be fixed

https://github.com/publiclab/image-sequencer/blob/32c5a29906e35c2741262f467e3fb73fff31d546/src/ExportBin.js#L5

Solution
Add a check which enables the callback being called in the case the length of the files array is 0

Steps to fix

  • [x] claim this issue with a comment
  • [x] set up a repository locally and make sure that all tests pass
  • [x] start a pull request (see contributing to Public Lab software) but mark it as "in progress"
  • [x] fix the issue following the steps above
  • [x] make sure all tests pass
  • [x] alert someone via either the developers list (see below) to have your pull request merged. This may take a few extra steps depending on when you do it, but we'll help you out!

Please email the developers list (see https://publiclab.org/developers) if you have questions!

bug first-timers-only help wanted

Most helpful comment

@danielleshwed we'd love to have your help, @tech4GT maybe we could make another first timers issue since @mayank1010 is already working on this one?

Thanks!

All 10 comments

@jywarren this will make a good first timer issue please add the label馃榿

This does look like a good first-timers issue! Before we label it as such, would you mind reformatting it following some of these suggestions?

https://publiclab.org/n/13667

Thank you! It'll be exciting to see more people join in :-) 馃憤

@jywarren done, please have a look馃榿

i will give it a go

Sure mayank go ahead馃榿

i am interested in working on this if it is available

@danielleshwed we'd love to have your help, @tech4GT maybe we could make another first timers issue since @mayank1010 is already working on this one?

Thanks!

@jywarren sure I'll do that right away
@danielleshwed welcome to the community 馃榿

@danielleshwed Jeff is busy right now, start with #177, just go through the contributing.md file to make a basic module and add the line referenced in the issue for the blur module, don't worry about the labels it's a relatively simple issue馃榿

@jywarren closing this issue now, thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Divy123 picture Divy123  路  5Comments

jywarren picture jywarren  路  5Comments

harshkhandeparkar picture harshkhandeparkar  路  4Comments

sashadev-sky picture sashadev-sky  路  3Comments

jywarren picture jywarren  路  3Comments