-
Notifications
You must be signed in to change notification settings - Fork 668
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
Conversation
headers: { | ||
'x-watson-metadata' : params.metadata_header | ||
}, | ||
qs: params.generate_visualization === false ? {'generate_visualization': false} : undefined, |
There was a problem hiding this comment.
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'] ),
There was a problem hiding this comment.
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
.
@dolevdotan can you update your dev branch(dolevdotan:dev) so that this PR reflects only your changes? |
I have no idea how to do this... I did as you requested, forked and worked 2015-12-24 18:42 GMT+02:00 German Attanasio Ruiz notifications@github.com:
|
You can do it using the github ui. Creating a pull request from wdc dev to On Thu, Dec 24, 2015, 4:53 PM Dolev Dotan notifications@github.com wrote:
|
Merge pull request watson-developer-cloud#192 from watson-developer-cloud/master
ok, done. |
[tradeoff-analytics] Add support for "generate_visualization"
Added support to the generate_visualization query param