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

fix: [#4470] Migrate off @azure/ms-rest-js #376

Closed
wants to merge 13 commits into from

Conversation

JhontSouth
Copy link

@JhontSouth JhontSouth commented Oct 31, 2023

#minor

Description

This PR replaces the uses of @azure/ms-rest-js in the following botbuilder-js libraries.

  • botbuilder
  • botbuilder-ai
  • botframework-connector
  • tool

Specific Changes

  • Replaced the @azure/ms-rest-js imports with @azure/core-http.
  • Added @azure/core-http to libraries package.json.
  • Added @azure/core-util version 1.5.0 to resolutions.
  • Updated unit tests to work with core-http RestError.

Testing

The following image shows some samples working after the update.
image
image

@JhontSouth JhontSouth changed the title [#4470] Migrate off @azure/ms-rest-js fix: [#4470] Migrate off @azure/ms-rest-js Oct 31, 2023
package.json Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Nov 3, 2023

Pull Request Test Coverage Report for Build 7088992860

  • 240 of 242 (99.17%) changed or added relevant lines in 21 files are covered.
  • 6 unchanged lines in 2 files lost coverage.
  • Overall coverage remained the same at 84.645%

Changes Missing Coverage Covered Lines Changed/Added Lines %
libraries/botframework-connector/src/auth/tokenCredentials.ts 11 12 91.67%
libraries/botframework-connector/src/tokenApi/tokenApiClientContext.ts 3 4 75.0%
Files with Coverage Reduction New Missed Lines %
libraries/botframework-connector/src/tokenApi/operations/botSignIn.ts 2 80.0%
libraries/botframework-connector/src/connectorApi/operations/conversations.ts 4 87.88%
Totals Coverage Status
Change from base Build 7049677954: 0.0%
Covered Lines: 20358
Relevant Lines: 22783

💛 - Coveralls

@@ -5,7 +5,7 @@

import * as Mappers from './models/mappers';
import * as Models from './models';
import * as msRest from '@azure/ms-rest-js';
import { ServiceClientCredentials } from "@azure/core-http"

Choose a reason for hiding this comment

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

Use single quotes for the import.

Comment on lines +726 to +730
name: "Sequence",
element: {
type: {
name: "Composite",
className: "ChannelAccount"

Choose a reason for hiding this comment

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

What happened with the indentation? Is the new one correct?

Copy link
Author

Choose a reason for hiding this comment

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

I'm using prettier

@@ -3,7 +3,7 @@
* Licensed under the MIT License.
*/

import * as msRest from '@azure/ms-rest-js';
import { ServiceCallback, RequestOptionsBase, Serializer, OperationSpec } from "@azure/core-http";

Choose a reason for hiding this comment

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

Use single quotes here.

Comment on lines 11 to 12
"schema",
"dialogs"

Choose a reason for hiding this comment

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

What's this change about?

Copy link
Author

Choose a reason for hiding this comment

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

to avoid errors with test:schema

package.json Outdated Show resolved Hide resolved
@JhontSouth
Copy link
Author

Promoted /4578

@JhontSouth JhontSouth closed this Dec 4, 2023
@JhontSouth JhontSouth deleted the southworks/delete/ms-rest-js-botbuilder branch December 4, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants