Skip to content

feat: regenerated sdks with new discovery credentials operations #742

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

Merged
merged 6 commits into from
Jul 12, 2018

Conversation

dpopp07
Copy link
Contributor

@dpopp07 dpopp07 commented Jul 11, 2018

Regenerated the code for this weeks release. Added integration tests for the 5 new Discovery operations.

One of the names of the new discovery operations, getCredentials() conflicts with the getCredentials() operation in the base service. I renamed the discovery operation to getSourceCredentials(). If there are other suggestions for that name, I am happy to take them.

@codecov-io
Copy link

codecov-io commented Jul 11, 2018

Codecov Report

Merging #742 into master will decrease coverage by 0.08%.
The diff coverage is 76.92%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #742      +/-   ##
========================================
- Coverage   84.09%    84%   -0.09%     
========================================
  Files          35     35              
  Lines        4325   4389      +64     
  Branches      548    553       +5     
========================================
+ Hits         3637   3687      +50     
- Misses        319    323       +4     
- Partials      369    379      +10
Impacted Files Coverage Δ
personality-insights/v3-generated.ts 80.48% <ø> (ø) ⬆️
speech-to-text/v1-generated.ts 84.51% <ø> (ø) ⬆️
assistant/v1.ts 89.78% <ø> (ø) ⬆️
language-translator/v2-generated.ts 84.72% <ø> (ø) ⬆️
tone-analyzer/v3-generated.ts 87.32% <ø> (ø) ⬆️
conversation/v1-generated.ts 88.68% <ø> (ø) ⬆️
visual-recognition/v3-generated.ts 80.7% <100%> (+0.52%) ⬆️
discovery/v1-generated.ts 71.07% <75.8%> (+0.58%) ⬆️
lib/recognize-stream.ts 61.72% <0%> (+0.37%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a4c439e...6922601. Read the comment docs.

Copy link
Contributor

@germanattanasio germanattanasio left a comment

Choose a reason for hiding this comment

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

@dpopp07 we need to add unit tests for all the new method. We are relying too much on integration tests. Everything else looks good.

* IBM Watson&trade; Language Translator translates text from one language to another. The service offers multiple domain-specific models that you can customize based on your unique terminology and language. Use Language Translator to take news from across the globe and present it in your language, communicate with your customers in their own language, and more.
*
* @deprecated Language Translator v3 is now available. The v2 Language Translator API will no longer be available after July 31, 2018. To take advantage of the latest service enhancements, migrate to the v3 API. View the [Migrating to Language Translator v3](https://console.bluemix.net/docs/services/language-translator/migrating.html) page for more information.
* --- Language Translator v3 is [available](https://www.ibm.com/watson/developercloud/language-translator/api/v3/). See the [migration guide](https://console.bluemix.net/docs/services/language-translator/migrating.html). --- IBM Watson&trade; Language Translator translates text from one language to another. The service offers multiple domain-specific models that you can customize based on your unique terminology and language. Use Language Translator to take news from across the globe and present it in your language, communicate with your customers in their own language, and more.
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this line still show deprecation message for LTv2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably not, I'll fix that and add it to the post-generation notes

@@ -40,7 +40,7 @@ class LanguageTranslatorV3 extends BaseService {
* @param {string} [options.password] - The password used to authenticate with the service. Username and password credentials are only required to run your application locally or outside of Bluemix. When running on Bluemix, the credentials will be automatically loaded from the `VCAP_SERVICES` environment variable.
* @param {string} [options.iam_access_token] - An IAM access token fully managed by the application. Responsibility falls on the application to refresh the token, either before it expires or reactively upon receiving a 401 from the service, as any requests made with an expired token will fail.
* @param {string} [options.iam_apikey] - An API key that can be used to request IAM tokens. If this API key is provided, the SDK will manage the token and handle the refreshing.
* @param {string} [options.iam_url] - An optional URL for the IAM service API. Defaults to 'https://iam.bluemix.net/identity/token'.
* @param {string} [options.iam_url] - An optional URL for the IAM service API. Defaults to 'https://iam.ng.bluemix.net/identity/token'.
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be revised in the generator I think - the default URL is https://iam.bluemix.net/identity/token

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Revised, in all the SDKs. I will open a PR against the template soon

Copy link
Contributor

@mediumTaj mediumTaj left a comment

Choose a reason for hiding this comment

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

Just a couple of questions about LTv2 deprecation, default IAM url in comments.

@dpopp07
Copy link
Contributor Author

dpopp07 commented Jul 12, 2018

Comments addressed and unit tests added

Copy link
Contributor

@mediumTaj mediumTaj left a comment

Choose a reason for hiding this comment

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

👍 looks good!

@dpopp07 dpopp07 dismissed germanattanasio’s stale review July 12, 2018 20:01

Unit tests have now been added

@germanattanasio germanattanasio merged commit 007a234 into master Jul 12, 2018
@dpopp07 dpopp07 deleted the regen-7/10 branch July 12, 2018 20:25
@dpopp07 dpopp07 restored the regen-7/10 branch July 12, 2018 20:30
@dpopp07
Copy link
Contributor Author

dpopp07 commented Jul 12, 2018

🎉 This PR is included in version 3.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dpopp07 dpopp07 deleted the regen-7/10 branch July 19, 2018 18:23
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.

5 participants