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

[tradeoff-analytics] Add support for "generate_visualization" #191

Merged
merged 2 commits into from
Dec 25, 2015

Conversation

dolevdotan
Copy link
Contributor

Added support to the generate_visualization query param

headers: {
'x-watson-metadata' : params.metadata_header
},
qs: params.generate_visualization === false ? {'generate_visualization': false} : undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we change

qs: params.generate_visualization === false ? {'generate_visualization': false} : undefined,

to be:

qs: pick(params, ['generate_visualization'] ),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the reason I did it like that is that I wanted to go with a more 'strict'
approach, and accept only booleans. Maybe I should have added some
assertion to check this.

2015-12-24 18:36 GMT+02:00 German Attanasio Ruiz notifications@github.com:

In services/tradeoff_analytics/v1.js
#191 (comment)
:

   headers: {
     'x-watson-metadata' : params.metadata_header
   },
  •  qs: params.generate_visualization === false ? {'generate_visualization': false} : undefined,
    

Can we change

qs: params.generate_visualization === false ? {'generate_visualization': false} : undefined,

to be:

qs: pick(params, ['generate_visualization'] ),


Reply to this email directly or view it on GitHub
https://github.com/watson-developer-cloud/node-sdk/pull/191/files#r48420472
.

@germanattanasio germanattanasio changed the title Dev [tradeoff-analytics] Add support for "generate_visualization" Dec 24, 2015
@germanattanasio
Copy link
Contributor

@dolevdotan can you update your dev branch(dolevdotan:dev) so that this PR reflects only your changes?

@dolevdotan
Copy link
Contributor Author

I have no idea how to do this... I did as you requested, forked and worked
in 'dev' branch. That's all I know how to do.
If you can give me simple instructions (git commands), I guess I could do
it...

2015-12-24 18:42 GMT+02:00 German Attanasio Ruiz notifications@github.com:

@dolevdotan https://github.com/dolevdotan can you update your dev
branch(dolevdotan:dev) so that this PR reflects only your changes?


Reply to this email directly or view it on GitHub
#191 (comment)
.

@germanattanasio
Copy link
Contributor

You can do it using the github ui. Creating a pull request from wdc dev to
your fork dev

On Thu, Dec 24, 2015, 4:53 PM Dolev Dotan notifications@github.com wrote:

I have no idea how to do this... I did as you requested, forked and worked
in 'dev' branch. That's all I know how to do.
If you can give me simple instructions (git commands), I guess I could do
it...

2015-12-24 18:42 GMT+02:00 German Attanasio Ruiz <notifications@github.com

:

@dolevdotan https://github.com/dolevdotan can you update your dev
branch(dolevdotan:dev) so that this PR reflects only your changes?


Reply to this email directly or view it on GitHub
<
#191 (comment)

.


Reply to this email directly or view it on GitHub
#191 (comment)
.

Merge pull request watson-developer-cloud#192 from watson-developer-cloud/master
@dolevdotan
Copy link
Contributor Author

ok, done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants