image-sequencer icon indicating copy to clipboard operation
image-sequencer copied to clipboard

Problem with step object

Open rishabhshuklax opened this issue 5 years ago • 10 comments

Please describe the problem (or idea)

Screenshot from 2020-02-12 22-54-18

Currently in the sequencer object there is a recursive loop of step inside options, we need to remove this!

Please show us where to look

https://beta.sequencer.publiclab.org

What's your PublicLab.org username?

rishabhshukla1999


Thank you!

Your help makes Public Lab better! We deeply appreciate your helping refine and improve this site.

To learn how to write really great issues, which increases the chances they'll be resolved, see:

https://publiclab.org/wiki/developers#Contributing+for+non-coders

rishabhshuklax avatar Feb 12 '20 17:02 rishabhshuklax

Hi @blurry-x-face i want to claim this.

YogeshSharma01 avatar Feb 19 '20 11:02 YogeshSharma01

Hi @blurry-x-face i want to work on this if nobody is working on this ?

YogeshSharma01 avatar Feb 20 '20 19:02 YogeshSharma01

Sure, go ahead!

rishabhshuklax avatar Feb 20 '20 19:02 rishabhshuklax

Hi @blurry-x-face can you please explain the issue ? and what we exactly we need to do ?

YogeshSharma01 avatar Feb 22 '20 09:02 YogeshSharma01

The sequencer.steps array has multiple step objects. This is also the step object that is passed on to the defaultHtmlStepUi methods like onSetup and onComplete.

Each step object has an options object that stores the options passed on to the step from the UI. This options object has another step object which is identical to the original step object.

So each step object has recursive step objects. step > options > step > options > step > ..... and this continues for thousands of iterations.

We definitely don't want this. If you can fix it, it would be AWESOME.

harshkhandeparkar avatar Feb 22 '20 14:02 harshkhandeparkar

@HarshKhandeparkar thanks! I'll try my best as its my first contribution after fto and I'll fix it.

YogeshSharma01 avatar Feb 22 '20 14:02 YogeshSharma01

Hi @28-ys are you still working on this? Was thinking of having a look myself if you weren't looking at it any more. It's been a while since your last comment so I thought maybe you'd moved onto something else, just wanted to double check first.

sjbcastro avatar Jun 08 '20 09:06 sjbcastro

Go ahead if you want :). The last comment is very old.

On Mon, 8 Jun 2020 at 14:58, sjbcastro [email protected] wrote:

Hi @28-ys https://github.com/28-ys are you still working on this? Was thinking of having a look myself if you weren't looking at it any more. It's been a while since your last comment so I thought maybe you'd moved onto something else, just wanted to double check first.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/image-sequencer/issues/1623#issuecomment-640486311, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJI5H4E42AALIQZTFQMX5LRVSVLDANCNFSM4KT6FGCA .

harshkhandeparkar avatar Jun 08 '20 09:06 harshkhandeparkar

Cool! I've put in a pull request here: https://github.com/publiclab/image-sequencer/pull/1673

It's my first time contributing to publiclab. I've created a pull request from a fork rather than a feature branch - will this be a problem?

Screenshot below of the resulting behaviour after the fix:

image

sjbcastro avatar Jun 09 '20 09:06 sjbcastro

Awesome! PRs are always opened from forks. Initially, using master branch is not a big issue. Ty :)

harshkhandeparkar avatar Jun 09 '20 14:06 harshkhandeparkar