Skip to content

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

Merged
merged 10 commits into from
Apr 30, 2020
Merged

Conversation

andreaangiolillo
Copy link
Collaborator

Proposed changes

Jira ticket: CLOUDP-59267

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • I have tested my code using my local ops manager

Further comments

./bin/mongocli om agents upgrade -P ops2
{
	"automationAgentVersion": "10.14.0.6306-1",
	"biConnectorVersion": "2.13.4"
}

@andreaangiolillo andreaangiolillo requested a review from gssbzn April 30, 2020 10:09
Copy link
Collaborator

@gssbzn gssbzn left a 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)
Copy link
Collaborator

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"},
Copy link
Collaborator

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

Copy link
Collaborator Author

@andreaangiolillo andreaangiolillo Apr 30, 2020

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

Suggested change
Aliases: []string{"upgrade"},
Aliases: []string{"upgrades"},

Copy link
Collaborator

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

@andreaangiolillo andreaangiolillo requested a review from gssbzn April 30, 2020 10:31
opts := &opsManagerAgentsUpgradeOpts{}
cmd := &cobra.Command{
Use: "upgrade",
Aliases: []string{"upgrades"},
Copy link
Collaborator

@gssbzn gssbzn Apr 30, 2020

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

@andreaangiolillo andreaangiolillo requested a review from gssbzn April 30, 2020 10:40
Copy link
Collaborator

@gssbzn gssbzn left a comment

Choose a reason for hiding this comment

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

LGTM

@andreaangiolillo andreaangiolillo merged commit 2c3d49a into master Apr 30, 2020
@andreaangiolillo andreaangiolillo deleted the CLOUDP-59267 branch April 30, 2020 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants