cli: Refactor usage of NeoFS API client#950
Conversation
The client needs of the CLI application are limited and change not often. Interface changes of the client library should not affect the operation of various application packages, if they do not change their requirements for the provided functionality. To localize the use of the base client and facilitate further support, an auxiliary package is implemented that will only be used by the CLI application. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
3ecb68d to
cd07242
Compare
Codecov Report
@@ Coverage Diff @@
## master #950 +/- ##
==========================================
- Coverage 37.95% 37.76% -0.19%
==========================================
Files 255 256 +1
Lines 12948 13013 +65
==========================================
Hits 4915 4915
- Misses 7624 7689 +65
Partials 409 409
Continue to review full report at Codecov.
|
|
I'd suggest minimizing wrappers and reconsider this particular refactoring change. |
|
@realloc, there are no new wrappers or interfaces, only helper functions over |
The client needs of the CLI application are limited and change not often. Interface changes of the client library should not affect the operation of various application packages, if they do not change their requirements for the provided functionality. To localize the use of the base client and facilitate further support, an auxiliary package is implemented that will only be used by the CLI application. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cd07242 to
b18cb38
Compare
|
I've built |
alexvanin
left a comment
There was a problem hiding this comment.
For neofs-cli, expect to see rollback with new SDK client invocation directly from application code.
The client needs of the CLI application are limited and change not often. Interface changes of the client library should not affect the operation of various application packages, if they do not change their requirements for the provided functionality. To localize the use of the base client and facilitate further support, an auxiliary package is implemented that will only be used by the CLI application. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
Similar to #946