WIP: Introduce object patcher in client #248

Closed
aarifullin wants to merge 2 commits from feat/patch_cli into master
Member
  • object: Introduce SplitByMaxChunkLength method
  • client: Introduce object patcher
- object: Introduce `SplitByMaxChunkLength` method - client: Introduce object patcher
aarifullin added 2 commits 2024-08-05 13:34:28 +00:00
* Add unit-test to test `SplitByMaxChunkLength`.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
[#XX] client: Introduce object patcher
Some checks failed
DCO / DCO (pull_request) Failing after 55s
Tests and linters / Lint (pull_request) Failing after 59s
Tests and linters / Tests (1.22) (pull_request) Successful in 1m2s
Tests and linters / Tests (1.21) (pull_request) Successful in 1m4s
8bf00a701b
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
aarifullin force-pushed feat/patch_cli from 8bf00a701b to c40dbd0810 2024-08-05 13:34:49 +00:00 Compare
fyrchik reviewed 2024-08-05 13:43:58 +00:00
@ -0,0 +24,4 @@
//
// Must be initialized using Client.ObjectPatchInit, any other
// usage is unsafe.
type ObjectPatcher interface {
Owner

What is the purpose of this interface?
Patch is just another method, similar to PUT.

What is the purpose of this interface? `Patch` is just another method, similar to PUT.
Author
Member

Your point is right - there is no any practical use of this interface right now (like we don't use to mock it in unit-tests and so). However, I was looking through Put implementation and came up with idea that client's patcher will need some decoration for patcher in the future - so, that was my assumption. If it's really unreasonable, I'll get it away

Your point is right - there is no any practical use of this interface right now (like we don't use to mock it in unit-tests and so). However, I was looking through `Put` implementation and came up with idea that client's patcher will need some decoration for `patcher` in the future - so, that was my assumption. If it's really unreasonable, I'll get it away
aarifullin requested review from storage-core-committers 2024-08-05 13:57:35 +00:00
aarifullin requested review from storage-core-developers 2024-08-05 13:57:35 +00:00
aarifullin requested review from storage-services-committers 2024-08-05 13:57:35 +00:00
aarifullin requested review from storage-services-developers 2024-08-05 13:57:36 +00:00
aarifullin force-pushed feat/patch_cli from c40dbd0810 to 00547bc32d 2024-08-05 14:04:01 +00:00 Compare
aarifullin changed title from Introduce object patcher in `client` to WIP: Introduce object patcher in `client` 2024-08-05 15:41:13 +00:00
Author
Member

Sorry, occaionally created this PR from origin stream branch

Sorry, occaionally created this PR from origin stream branch
aarifullin closed this pull request 2024-08-05 20:21:22 +00:00
aarifullin deleted branch feat/patch_cli 2024-08-05 20:21:33 +00:00
All checks were successful
DCO / DCO (pull_request) Successful in 51s
Tests and linters / Tests (1.21) (pull_request) Successful in 1m0s
Tests and linters / Tests (1.22) (pull_request) Successful in 58s
Tests and linters / Lint (pull_request) Successful in 2m2s

Pull request closed

Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-committers
TrueCloudLab/storage-core-developers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#248
No description provided.