Skip to content

cli: Refactor usage of NeoFS API client#950

Merged
cthulhu-rider merged 1 commit intonspcc-dev:masterfrom
cthulhu-rider:refactor/cli-apiclient-usage
Nov 3, 2021
Merged

cli: Refactor usage of NeoFS API client#950
cthulhu-rider merged 1 commit intonspcc-dev:masterfrom
cthulhu-rider:refactor/cli-apiclient-usage

Conversation

@cthulhu-rider
Copy link
Contributor

Similar to #946

@cthulhu-rider cthulhu-rider added neofs-cli NeoFS CLI application issues refactor labels Nov 1, 2021
@cthulhu-rider cthulhu-rider self-assigned this Nov 1, 2021
cthulhu-rider pushed a commit to cthulhu-rider/neofs-node that referenced this pull request Nov 1, 2021
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>
@cthulhu-rider cthulhu-rider force-pushed the refactor/cli-apiclient-usage branch from 3ecb68d to cd07242 Compare November 1, 2021 09:19
@codecov
Copy link

codecov bot commented Nov 1, 2021

Codecov Report

Merging #950 (b18cb38) into master (88e37ea) will decrease coverage by 0.18%.
The diff coverage is n/a.

Impacted file tree graph

@@            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              
Impacted Files Coverage Δ
cmd/neofs-adm/internal/modules/morph/initialize.go 0.00% <0.00%> (ø)
...neofs-adm/internal/modules/morph/initialize_nns.go 0.00% <0.00%> (ø)
...fs-adm/internal/modules/morph/initialize_deploy.go 0.00% <0.00%> (ø)
...-adm/internal/modules/morph/initialize_register.go 0.00% <0.00%> (ø)
...-adm/internal/modules/morph/initialize_transfer.go 0.00% <0.00%> (ø)
cmd/neofs-adm/internal/modules/morph/download.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88e37ea...b18cb38. Read the comment docs.

@realloc
Copy link

realloc commented Nov 1, 2021

I'd suggest minimizing wrappers and reconsider this particular refactoring change.

@cthulhu-rider
Copy link
Contributor Author

@realloc, there are no new wrappers or interfaces, only helper functions over Client with docs. They will help you more easily handle upcoming breaking changes in the client interface and behavior. Such functionality will make it easier to pull up new client features and respond to changes in behavior.

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>
@cthulhu-rider cthulhu-rider force-pushed the refactor/cli-apiclient-usage branch from cd07242 to b18cb38 Compare November 1, 2021 13:01
@cthulhu-rider
Copy link
Contributor Author

cthulhu-rider commented Nov 1, 2021

I've built neofs-cli and run integration tests (except ACL) with it: the results are the same as the release version.

Copy link
Contributor

@alexvanin alexvanin left a comment

Choose a reason for hiding this comment

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

For neofs-cli, expect to see rollback with new SDK client invocation directly from application code.

@cthulhu-rider cthulhu-rider merged commit bbc2b87 into nspcc-dev:master Nov 3, 2021
@alexvanin alexvanin mentioned this pull request Jan 10, 2022
7 tasks
aprasolova pushed a commit to aprasolova/neofs-node that referenced this pull request Mar 5, 2022
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>
aprasolova pushed a commit to aprasolova/neofs-node that referenced this pull request Mar 5, 2022
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
@alexchetaev alexchetaev added the U3 Regular label Aug 24, 2022
@cthulhu-rider cthulhu-rider deleted the refactor/cli-apiclient-usage branch September 30, 2022 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

neofs-cli NeoFS CLI application issues U3 Regular

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants