adm: Add command morph netmap-candidates #15

Merged
acid-ant merged 3 commits from feature/1889-morph-nm-candidates into master 2023-02-06 14:26:35 +00:00
acid-ant commented 2023-01-13 09:00:34 +00:00 (Migrated from github.com)

Close #1889

Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com

Close #1889 Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
alexvanin (Migrated from github.com) reviewed 2023-01-13 09:00:34 +00:00
carpawell (Migrated from github.com) reviewed 2023-01-13 15:59:59 +00:00
carpawell (Migrated from github.com) commented 2023-01-13 15:49:58 +00:00

lets try not to use RunE according to #623?

lets try not to use `RunE` according to #623?
carpawell (Migrated from github.com) commented 2023-01-13 15:51:07 +00:00

why do we need it?

why do we need it?
carpawell (Migrated from github.com) commented 2023-01-13 15:56:21 +00:00

that context is usually used for complex transactions. for RO purposes it looks too heavy, see morph dump-config as an example

that context is usually used for complex transactions. for RO purposes it looks too heavy, see `morph dump-config` as an example
carpawell (Migrated from github.com) commented 2023-01-13 15:57:29 +00:00

why have you decided to init flags in a separate init and not like it is already done here?

why have you decided to init flags in a separate `init` and not like it is already done here?
carpawell (Migrated from github.com) commented 2023-01-13 15:59:56 +00:00

could you, please, make that move in a separate commit?

could you, please, make that move in a separate commit?
acid-ant (Migrated from github.com) reviewed 2023-01-16 06:57:02 +00:00
acid-ant (Migrated from github.com) commented 2023-01-16 06:57:01 +00:00

In this case I need to add in adm dependency on cli or duplicate code. Is It ok?

In this case I need to add in `adm` dependency on `cli` or duplicate code. Is It ok?
acid-ant (Migrated from github.com) reviewed 2023-01-16 07:03:19 +00:00
acid-ant (Migrated from github.com) commented 2023-01-16 07:03:19 +00:00

The idea was to reduce amount of lines here, also we are using the same approach in cli.

The idea was to reduce amount of lines here, also we are using the same approach in `cli`.
acid-ant (Migrated from github.com) reviewed 2023-01-16 11:09:59 +00:00
acid-ant (Migrated from github.com) commented 2023-01-16 11:09:58 +00:00

Refactored.

Refactored.
acid-ant (Migrated from github.com) reviewed 2023-01-16 11:10:13 +00:00
acid-ant (Migrated from github.com) commented 2023-01-16 11:10:13 +00:00

Removed.

Removed.
acid-ant (Migrated from github.com) reviewed 2023-01-16 11:10:24 +00:00
acid-ant (Migrated from github.com) commented 2023-01-16 11:10:24 +00:00

Refactored.

Refactored.
acid-ant (Migrated from github.com) reviewed 2023-01-16 11:10:43 +00:00
acid-ant (Migrated from github.com) commented 2023-01-16 11:10:43 +00:00

Updated.

Updated.
fyrchik (Migrated from github.com) reviewed 2023-01-23 08:57:36 +00:00
fyrchik (Migrated from github.com) commented 2023-01-23 08:56:32 +00:00

Is it possible to have res == nil and err == nil at the same time?

Is it possible to have `res == nil` and `err == nil` at the same time?
@ -323,4 +333,7 @@ func init() {
depositNotaryCmd.Flags().String(walletAccountFlag, "", "Wallet account address")
depositNotaryCmd.Flags().String(refillGasAmountFlag, "", "Amount of GAS to deposit")
fyrchik (Migrated from github.com) commented 2023-01-23 08:57:31 +00:00

Why not short by default and --verbose for everything?

Why not short by default and `--verbose` for everything?
fyrchik (Migrated from github.com) commented 2023-01-23 07:01:44 +00:00

We do not want to have pkg/core/netmap or (any other pkg to depend on cmd package).
Can we use cmd/internal/common instead? Other ideas? @carpawell

We do not want to have `pkg/core/netmap` or (any other `pkg` to depend on `cmd` package). Can we use `cmd/internal/common` instead? Other ideas? @carpawell
acid-ant (Migrated from github.com) reviewed 2023-01-23 09:38:59 +00:00
acid-ant (Migrated from github.com) commented 2023-01-23 09:38:59 +00:00

Removed redundant check.

Removed redundant check.
acid-ant (Migrated from github.com) reviewed 2023-01-23 09:39:23 +00:00
@ -323,4 +333,7 @@ func init() {
depositNotaryCmd.Flags().String(walletAccountFlag, "", "Wallet account address")
depositNotaryCmd.Flags().String(refillGasAmountFlag, "", "Amount of GAS to deposit")
acid-ant (Migrated from github.com) commented 2023-01-23 09:39:23 +00:00

Good idea, replaced with --verbose.

Good idea, replaced with `--verbose`.
acid-ant (Migrated from github.com) reviewed 2023-01-26 08:55:21 +00:00
acid-ant (Migrated from github.com) commented 2023-01-26 08:55:21 +00:00

Moved from pkg to cmd/internal/common

Moved from `pkg` to `cmd/internal/common`
fyrchik (Migrated from github.com) reviewed 2023-01-31 08:29:10 +00:00
fyrchik (Migrated from github.com) commented 2023-01-31 08:28:58 +00:00

Can we factor out common flags in a separate commit? And add netmap-candidates in the next one.

Can we factor out common flags in a separate commit? And add `netmap-candidates` in the next one.
@ -10,6 +10,7 @@ import (
"github.com/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/common"
"github.com/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/commonflags"
commonCmd "github.com/TrueCloudLab/frostfs-node/cmd/internal/common"
fyrchik (Migrated from github.com) commented 2023-01-31 08:27:49 +00:00

There is a typo in the commit message.

There is a typo in the commit message.
acid-ant (Migrated from github.com) reviewed 2023-01-31 10:34:56 +00:00
acid-ant (Migrated from github.com) commented 2023-01-31 10:34:55 +00:00

Done.

Done.
acid-ant (Migrated from github.com) reviewed 2023-01-31 10:35:05 +00:00
@ -10,6 +10,7 @@ import (
"github.com/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/common"
"github.com/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/commonflags"
commonCmd "github.com/TrueCloudLab/frostfs-node/cmd/internal/common"
acid-ant (Migrated from github.com) commented 2023-01-31 10:35:04 +00:00

Thanks, fixed.

Thanks, fixed.
carpawell (Migrated from github.com) approved these changes 2023-01-31 12:55:41 +00:00
fyrchik (Migrated from github.com) approved these changes 2023-02-06 14:17:08 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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-node#15
No description provided.