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

Update ui package to new azure sdk for js #776

Merged
merged 2 commits into from
Jul 30, 2020
Merged

Update ui package to new azure sdk for js #776

merged 2 commits into from
Jul 30, 2020

Conversation

ejizba
Copy link
Contributor

@ejizba ejizba commented Jul 24, 2020

The Azure Account extension is currently restricted to VS Code Insiders, but I think there's enough change here that we can get started testing now. I used the resource groups and functions extensions as test subjects (PRs coming soon) and it all seems to be working.

For the UI package, here's the only difference noticeable to the user - if they don't have the latest account extension, we'll display a warning:
Screen Shot 2020-07-14 at 3 37 56 PM
Screen Shot 2020-07-14 at 3 38 17 PM

Fixes #510
Depends on #775

ui/src/createAzureClient.ts Outdated Show resolved Hide resolved
}
}

public async sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse> {
Copy link
Member

Choose a reason for hiding this comment

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

Is this to replace the requestUtils.sendRequest? I don't understand why it's in the createAzureClient file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a part of GenericServiceClient, which is returned in createGenericClient

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But anyways - yes this is related to replacing requestUtils. I figured createGenericClient was similar enough to createAzureClient that it could fit here. Only the function createGenericClient is actually exported, not GenericServiceClient

@ejizba ejizba merged commit bb59d1c into master Jul 30, 2020
@ejizba ejizba deleted the ej/uiV2 branch July 30, 2020 18:52
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.

Switch over to azure-sdk-for-js
2 participants