Skip to content

Example stock_prices.juttle doesn't work with non-default input #83

Closed

Description

@dmehra

Noticed yesterday that examples/core-juttle/stock_prices.juttle only works if run with the default input "IBM". For any other input, it doesn't even seem to execute. It was working correctly at some point within last week, not sure when the regression occurred.

Activity

  1. demmer commented on Jan 18, 2016

    @demmer
    Collaborator

    The issue isn't actually that it can't run with other symbols, since you can change the symbol before running the first time.

    The problem is that for some reason when re-running the program with a new input value, something triggers an options validation error coming from the timechart.

    This is related to the -display.dataDensity 0 option. If I remove that, then things seem to work properly.

  2. demmer commented on Jan 18, 2016

    @demmer
    Collaborator

    @go-oleg Can you take a look at this?

  3. go-oleg commented on Jan 18, 2016

    @go-oleg
    Collaborator

    Did some looking into this, and there are at least two problems working in tandem against us here.

    It appears the view.js component gets mounted after the second play click before a new set of view options is received from the server. This is most likely because the job_id has been updated in the store, but the new view options haven't come across the wire yet and are not in the store. This coupled with the fact that the views sometimes mutate the options passed in (filed juttle/juttle-viz#24 for this) means the options being passed in are not equal from a value-perspective to the options passed in originally (because they were mutated by the view) and thus fail some of the parameter validation. @mnibecker, can you look into reinstantiating the views once the new options have been received as opposed to when the job_id changes? I believe this is a bug on juttle-client-library as opposed to outrigger.

  4. assigned and unassigned on Jan 19, 2016
  5. added a commit that references this issue on Jan 19, 2016
    2baf7a8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions