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

feat: add support for new authenticators in all sdks #946

Merged
merged 4 commits into from
Aug 30, 2019

Conversation

dpopp07
Copy link
Contributor

@dpopp07 dpopp07 commented Aug 29, 2019

  • All service regenerated
  • Core version updated to use release-candidate-v1 branch
  • Authenticators required (and exported from the watson sdk)
  • All parameters changed to lower camel case
  • Only detailed response is returned

Many of the breaking changes come just from the core version changing.

All breaking changes described in the Migration Guide.

I will release the RC once this is merged.

BREAKING CHANGE: Passing individual credentials to the service constructor will no longer work. An Authenticator must be initialized and passed in. For more information, see the migration guide.
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.

👍 This looks good! I think you're making some changes for the tests but so far this looks good once we get everything passing


#### Visual Recognition
- Property `class_name` renamed to `_class` in interface `ClassResult`

Copy link
Contributor

Choose a reason for hiding this comment

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

totally gonna steal this 👍

@@ -230,7 +232,7 @@ class RecognizeStream extends Duplex {
null,
options.headers,
null,
{ tlsOptions: { rejectUnauthorized: options.rejectUnauthorized }}
{ tlsOptions: { rejectUnauthorized: !options.disableSslVerification }}
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

package.json Outdated Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Aug 30, 2019

Codecov Report

Merging #946 into release-candidate-v5 will increase coverage by 0.43%.
The diff coverage is 42.43%.

Impacted file tree graph

@@                   Coverage Diff                    @@
##           release-candidate-v5     #946      +/-   ##
========================================================
+ Coverage                 54.49%   54.92%   +0.43%     
========================================================
  Files                        19       20       +1     
  Lines                      4487     4564      +77     
  Branches                    898      904       +6     
========================================================
+ Hits                       2445     2507      +62     
- Misses                     2041     2056      +15     
  Partials                      1        1
Impacted Files Coverage Δ
assistant/v1.ts 76.06% <ø> (-0.01%) ⬇️
discovery/v1.ts 34.19% <ø> (+0.15%) ⬆️
lib/websocket-utils.ts 90% <ø> (+5%) ⬆️
speech-to-text/v1-generated.ts 42.44% <ø> (+3.66%) ⬆️
auth/index.ts 100% <100%> (ø)
test/resources/service_error_util.js 80% <100%> (ø) ⬆️
lib/synthesize-stream.ts 83.33% <100%> (+0.35%) ⬆️
lib/recognize-stream.ts 65.94% <100%> (-2.68%) ⬇️
text-to-speech/v1.ts 44.73% <100%> (-1.61%) ⬇️
visual-recognition/v3.ts 37.93% <18.75%> (+1.46%) ⬆️
... and 15 more

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 3fa522c...db864c4. Read the comment docs.

@watson-github-bot
Copy link
Member

Service Failures

/integration/assistant.v1.test.js

/integration/discovery.test.js

/integration/speech_to_text.test.js

/integration/compare_comply.test.js

/integration/visual_recognition.custom_classifiers.test.js

/integration/text_to_speech.test.js

/integration/visual_recognition.test.js

/integration/language_translator.v3.test.js

/integration/assistant.v2.test.js

/integration/tone_analyzer.test.js

/integration/personality_insights.v3.test.js

/integration/natural_language_classifier.test.js

Possible Test Failures

/integration/assistant.v1.test.js

/integration/discovery.test.js

/integration/speech_to_text.test.js

/integration/compare_comply.test.js

/integration/visual_recognition.custom_classifiers.test.js

/integration/text_to_speech.test.js

/integration/visual_recognition.test.js

/integration/language_translator.v3.test.js

/integration/assistant.v2.test.js

/integration/tone_analyzer.test.js

/integration/personality_insights.v3.test.js

/integration/natural_language_classifier.test.js

1 similar comment
@watson-github-bot
Copy link
Member

Service Failures

/integration/assistant.v1.test.js

/integration/discovery.test.js

/integration/speech_to_text.test.js

/integration/compare_comply.test.js

/integration/visual_recognition.custom_classifiers.test.js

/integration/text_to_speech.test.js

/integration/visual_recognition.test.js

/integration/language_translator.v3.test.js

/integration/assistant.v2.test.js

/integration/tone_analyzer.test.js

/integration/personality_insights.v3.test.js

/integration/natural_language_classifier.test.js

Possible Test Failures

/integration/assistant.v1.test.js

/integration/discovery.test.js

/integration/speech_to_text.test.js

/integration/compare_comply.test.js

/integration/visual_recognition.custom_classifiers.test.js

/integration/text_to_speech.test.js

/integration/visual_recognition.test.js

/integration/language_translator.v3.test.js

/integration/assistant.v2.test.js

/integration/tone_analyzer.test.js

/integration/personality_insights.v3.test.js

/integration/natural_language_classifier.test.js

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! Lets update the readme after the pre-release

@watson-github-bot
Copy link
Member

Service Failures

/integration/assistant.v1.test.js

/integration/discovery.test.js

/integration/speech_to_text.test.js

/integration/compare_comply.test.js

/integration/visual_recognition.custom_classifiers.test.js

/integration/text_to_speech.test.js

/integration/visual_recognition.test.js

/integration/language_translator.v3.test.js

/integration/assistant.v2.test.js

/integration/tone_analyzer.test.js

/integration/personality_insights.v3.test.js

/integration/natural_language_classifier.test.js

Possible Test Failures

/integration/assistant.v1.test.js

/integration/discovery.test.js

/integration/speech_to_text.test.js

/integration/compare_comply.test.js

/integration/visual_recognition.custom_classifiers.test.js

/integration/text_to_speech.test.js

/integration/visual_recognition.test.js

/integration/language_translator.v3.test.js

/integration/assistant.v2.test.js

/integration/tone_analyzer.test.js

/integration/personality_insights.v3.test.js

/integration/natural_language_classifier.test.js

1 similar comment
@watson-github-bot
Copy link
Member

Service Failures

/integration/assistant.v1.test.js

/integration/discovery.test.js

/integration/speech_to_text.test.js

/integration/compare_comply.test.js

/integration/visual_recognition.custom_classifiers.test.js

/integration/text_to_speech.test.js

/integration/visual_recognition.test.js

/integration/language_translator.v3.test.js

/integration/assistant.v2.test.js

/integration/tone_analyzer.test.js

/integration/personality_insights.v3.test.js

/integration/natural_language_classifier.test.js

Possible Test Failures

/integration/assistant.v1.test.js

/integration/discovery.test.js

/integration/speech_to_text.test.js

/integration/compare_comply.test.js

/integration/visual_recognition.custom_classifiers.test.js

/integration/text_to_speech.test.js

/integration/visual_recognition.test.js

/integration/language_translator.v3.test.js

/integration/assistant.v2.test.js

/integration/tone_analyzer.test.js

/integration/personality_insights.v3.test.js

/integration/natural_language_classifier.test.js

@watson-github-bot
Copy link
Member

Service Failures

/integration/speech_to_text.test.js

Possible Test Failures

/integration/speech_to_text.test.js

1 similar comment
@watson-github-bot
Copy link
Member

Service Failures

/integration/speech_to_text.test.js

Possible Test Failures

/integration/speech_to_text.test.js

@dpopp07 dpopp07 merged commit 5074a52 into release-candidate-v5 Aug 30, 2019
@dpopp07 dpopp07 deleted the pre-release-generation branch August 30, 2019 21:18
dpopp07 added a commit that referenced this pull request Sep 19, 2019
…ice features for major release (#946)

BREAKING CHANGE: Passing individual credentials to the service constructor will no longer work. An Authenticator must be initialized and passed in. For more information, see the migration guide.
dpopp07 added a commit that referenced this pull request Oct 4, 2019
…ice features for major release (#946)

BREAKING CHANGE: Passing individual credentials to the service constructor will no longer work. An Authenticator must be initialized and passed in. For more information, see the migration guide.
watson-github-bot pushed a commit that referenced this pull request Oct 4, 2019
# [5.0.0](v4.5.1...v5.0.0) (2019-10-04)

### Bug Fixes

* make RecognizeStream.readableObjectMode always return Boolean ([#943](#943)) ([a276df4](a276df4))

### Build System

* drop support for Node versions 6 and 8 ([3ea1fd7](3ea1fd7))

### Code Refactoring

* change all websocket method parameters to lower camel case ([#941](#941)) ([cb6711f](cb6711f))

### Features

* add support for new authenticators in all sdks and add new service features for major release ([#946](#946)) ([3acffc5](3acffc5))

### BREAKING CHANGES

* Passing individual credentials to the service constructor will no longer work. An Authenticator must be initialized and passed in. For more information, see the migration guide.
* All parameters have been converted to their lower camel case version.
* Support for the `token` parameter has been removed
* Support for the `customization_id` parameter has been removed
* Method `setAuthorizationHeaderToken` has been removed from the WebSocket Stream classes
* `RecognizeStream.readableObjectMode` will always be a Boolean value - before, it could have been `undefined`.
* This SDK may no longer work with applications running on Node 6 or 8.
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.

4 participants