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

Add restore from S3 url #25216

Merged
merged 14 commits into from
Feb 5, 2024
Merged

Add restore from S3 url #25216

merged 14 commits into from
Feb 5, 2024

Conversation

barbaravaldez
Copy link
Contributor

@barbaravaldez barbaravaldez commented Jan 16, 2024

image

@coveralls
Copy link

coveralls commented Jan 16, 2024

Pull Request Test Coverage Report for Build 7789684642

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.001%) to 41.758%

Files with Coverage Reduction New Missed Lines %
src/sql/workbench/services/connection/browser/connectionDialogWidget.ts 1 73.44%
Totals Coverage Status
Change from base Build 7671914414: -0.001%
Covered Lines: 30827
Relevant Lines: 69082

💛 - Coveralls

/**
* Create a new credential
* @param connectionUri The URI of the server connection.
* @param credentialInfo
Copy link
Member

Choose a reason for hiding this comment

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

Needs a description here

const credentialInfo: azdata.CredentialInfo = {
secret: `${result.accessKey}:${result.secretKey}`,
url: result.s3Url.toString(),
identity: 'S3 Access Key',
Copy link
Contributor

Choose a reason for hiding this comment

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

Would suggest linking to the docs about this hardcoded value

src/sql/azdata.d.ts Outdated Show resolved Hide resolved
Co-authored-by: Cory Rivera <corivera@microsoft.com>
@corivera
Copy link
Member

On average, how long does it take to do the restore operation? Seems like the dialog is spinning for a while before succeeding. Before I noticed the spinner it almost seemed like the dialog wasn't doing anything at all.

@barbaravaldez
Copy link
Contributor Author

On average, how long does it take to do the restore operation? Seems like the dialog is spinning for a while before succeeding. Before I noticed the spinner it almost seemed like the dialog wasn't doing anything at all.

Adding the credential is very fast, what takes longer is to retrieve the restore information. I think this happens for the URL from blob restore as well.

id: undefined
}
await this.objectManagementService.createCredential(this.connectionUri, this.credentialInfo);
this.result.backupFilePath = `s3://${this.bucketDropdown.value}.s3.${this.regionInputBox.value}.amazonaws.com/${this.backupFilesDropdown.value}`;
Copy link
Member

Choose a reason for hiding this comment

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

Do any of these values need to be escaped?

Copy link
Member

@corivera corivera left a comment

Choose a reason for hiding this comment

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

Approved pending my other comments

@barbaravaldez barbaravaldez merged commit 12d2110 into main Feb 5, 2024
14 checks passed
@barbaravaldez barbaravaldez deleted the bavaldez/restoreS3Url branch February 5, 2024 20:22
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