-
Notifications
You must be signed in to change notification settings - Fork 86
CLOUDP-59267: upgrade all agents in Org #143
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
Conversation
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.
thanks for all the small drive by fixes, I have a couple of comments on copy but nothing major here, great work
@@ -36,7 +36,7 @@ func (opts *atlasDBUsersListOpts) initStore() error { | |||
|
|||
func (opts *atlasDBUsersListOpts) Run() error { | |||
listOpts := opts.newListOptions() | |||
result, err := opts.store.DatabaseUsers(opts.projectID, listOpts) | |||
result, err := opts.store.DatabaseUsers(opts.ProjectID(), listOpts) |
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.
👍
opts := &opsManagerAgentsUpgradeOpts{} | ||
cmd := &cobra.Command{ | ||
Use: "upgrade", | ||
Aliases: []string{"upgrade"}, |
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.
I think we can remove this
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.
I would rather change it to
Aliases: []string{"upgrade"}, | |
Aliases: []string{"upgrades"}, |
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.
the thing with that is that mongocli om agent upgrades
breaks our usage of things like update/list/create where we don't offer updates/lists/creates, also is not fully natural in terms of grammar
opts := &opsManagerAgentsUpgradeOpts{} | ||
cmd := &cobra.Command{ | ||
Use: "upgrade", | ||
Aliases: []string{"upgrades"}, |
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.
I already answer on the original but adding this alias here breaks our pattern of other commands like update/create/list where we don't offer this type of alias
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.
LGTM
Proposed changes
Jira ticket: CLOUDP-59267
Checklist
make fmt
and formatted my codeFurther comments