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

[Storage] Rename options types to be consistent #5650

Merged
merged 2 commits into from
Oct 18, 2019

Conversation

jeremymeng
Copy link
Member

When the high-level functions were moved into clients, their options type name
were not updated. This change renames them to be consistent with other options
types.

Resolves #5648

@jeremymeng jeremymeng added Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files) labels Oct 18, 2019
@@ -565,7 +565,7 @@ export interface UploadToAzureFileOptions extends CommonOptions {
* If not provided, 5 concurrency will be used by default.
*
* @type {number}
* @memberof UploadToAzureFileOptions
* @memberof FileParallelUploadOptions
Copy link
Member Author

Choose a reason for hiding this comment

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

For types having a concurrency field I add Parallel in their names.

*/
progress?: (progress: TransferProgressEvent) => void;
}
/**
* Option interface for BlockBlobClient.uploadFile() and BlockBlobClient.uploadSeekableStream().
*
* @export
* @interface UploadToBlockBlobOptions
* @interface BlobDownloadToBufferOptions
Copy link
Member

Choose a reason for hiding this comment

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

BlockBlobParallelUploadOptions?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh no I messed it up

*/
abortSignal?: AbortSignalLike;

/**
* Destination block blob size in bytes.
*
* @type {number}
* @memberof UploadToBlockBlobOptions
* @memberof BlobDownloadToBufferOptions
Copy link
Member

@jiacfan jiacfan Oct 18, 2019

Choose a reason for hiding this comment

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

BlockBlobParallelUploadOptions and same below in this interface

@@ -619,15 +619,15 @@ export interface BlobSetTierOptions extends CommonOptions {
* Option interface for BlobClient.downloadToBuffer().
*
* @export
* @interface DownloadFromBlobOptions
* @interface BlobDownloadToBufferOptionsOptions
Copy link
Member

Choose a reason for hiding this comment

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

trivial Options in the end.

/**
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
* For example, use the @azure/abort-controller to create an `AbortSignal`.
*
* @type {AbortSignalLike}
* @memberof DownloadFromBlobOptions
* @memberof BlobDownloadToBufferOptionsOptions
Copy link
Member

Choose a reason for hiding this comment

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

trivial Options in the end, same below in this interface

@@ -1457,14 +1457,14 @@ export class BlobClient extends StorageClient {
* @param {Buffer} buffer Buffer to be fill, must have length larger than count
* @param {number} offset From which position of the block blob to download(in bytes)
* @param {number} [count] How much data(in bytes) to be downloaded. Will download to the end when passing undefined
* @param {DownloadFromBlobOptions} [options] DownloadFromBlobOptions
* @param {BlobDownloadToBufferOptions} [options] BlobDownloadToBufferOptionsOptions
Copy link
Member

Choose a reason for hiding this comment

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

Incorrect, trivial Options in the end.

Copy link
Member

@jiacfan jiacfan left a comment

Choose a reason for hiding this comment

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

🕐

@jeremymeng jeremymeng requested a review from jiacfan October 18, 2019 04:17
@jeremymeng
Copy link
Member Author

alright should be fixed now.

Copy link
Member

@jiacfan jiacfan left a comment

Choose a reason for hiding this comment

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

:shipit:

When the high-level functions were moved into clients, their options type name
were not updated. This change renames them to be consistent with other options
types.

Resolves Azure#5648
@jeremymeng jeremymeng force-pushed the consistent-options-name branch from 538ef32 to ea66bf3 Compare October 18, 2019 05:55
@jeremymeng jeremymeng merged commit 0bcaa9a into Azure:master Oct 18, 2019
@jeremymeng jeremymeng deleted the consistent-options-name branch October 18, 2019 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Storage] Rename options types from previous high-level functions to be consistent
2 participants