-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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][stg74] share lease #11450
[storage][stg74] share lease #11450
Conversation
@@ -96,7 +96,8 @@ describe("LeaseClient", () => { | |||
}); | |||
|
|||
it("invalid duration for acquireLease", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May worth add more cases to cover newly added functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do in follow-up PR.
The naming is confusing if ShareLeaseClient can actually manage lease for share or file. Ideally we should rename it to LeaseClient, but that will be a breaking change. How about, we rename it to LeaseClient and expose a alias of "ShareLeaseClient" to be deprecated in next major release. Refers to: sdk/storage/storage-file-share/src/ShareFileClient.ts:5700 in c5d9249. [](commit_id = c5d9249, deletion_comment = False) |
True. It's poorly named by me when doing lease for file. But we previously name FileClient as ShareFileClient, DirectoryClient as ShareDirectoryClient. And we name it BlobLeaseClient in Blob. So I figure we need some prefix 😢 |
Changes in this PR was already merged to stg74base by #11455. |
No description provided.