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

Failover database and elastic pools Net SDK #6934

Merged
merged 5 commits into from
Jul 18, 2019
Merged

Conversation

emgu-ms
Copy link
Contributor

@emgu-ms emgu-ms commented Jul 15, 2019

REST API commit change - Azure/azure-rest-api-specs@597f7dd#diff-cf76f9fb3a55909fa9cd42d1e4612784

Added database and elastic pool failover to Net SDK. Also included tests.

@@ -13,6 +13,7 @@
<![CDATA[
New features:
- Added support for serverless databases.
Copy link
Contributor

Choose a reason for hiding this comment

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

Line 15 is release notes for 1.31.0-preview, this was already published (see https://www.nuget.org/packages/Microsoft.Azure.Management.Sql). So you should update version to 1.32 (here and in AssemblyInfo.cs) and wipe out the old release notes.

Assert.NotNull(db);

// Failover database
AzureOperationResponse failoverResponse = await sqlClient.Databases.BeginFailoverWithHttpMessagesAsync(
Copy link
Contributor

Choose a reason for hiding this comment

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

just call Failover instead, that way you are verifying the entire e2e operation succeeds.

Assert.NotNull(db);

// Failover elastic pool
AzureOperationResponse failoverResponse = await sqlClient.ElasticPools.BeginFailoverWithHttpMessagesAsync(
Copy link
Contributor

Choose a reason for hiding this comment

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

also use Failover here.

@erich-wang erich-wang self-assigned this Jul 16, 2019
@@ -13,6 +13,7 @@
<![CDATA[
New features:
- Added support for serverless databases.
- Added support for failover databases and elastic pools.
]]>
</PackageReleaseNotes>
</PropertyGroup>
Copy link
Member

Choose a reason for hiding this comment

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

@emgu-ms, you need to update Version if you want to publish new nuget pcakge

Copy link
Member

@erich-wang erich-wang Jul 16, 2019

Choose a reason for hiding this comment

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

You may also need update the value of AssemblyFileVersion in AssemblyInfo.cs

Copy link
Member

@erich-wang erich-wang left a comment

Choose a reason for hiding this comment

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

Please resolve conflicts.

@@ -12,6 +12,7 @@
<PackageReleaseNotes>
<![CDATA[
New features:
- Added support for failover databases and elastic pools.
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, looks like 1.32 was just published. Can you wipe out the 1.32 release notes and bump to 1.33?

GitHub fork: Azure
Branch: master
Commit: 808cfe2da58aa6f1d93bed748004dfb97268e6e3
GitHub fork: emgu-ms
Copy link
Contributor

Choose a reason for hiding this comment

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

Aren't your changes checked into master? Published SDK must be based on azure/master.

Copy link
Contributor

@jaredmoo jaredmoo left a comment

Choose a reason for hiding this comment

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

.

@erich-wang erich-wang merged commit 0a3578c into Azure:master Jul 18, 2019
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.

3 participants