Skip to content

CLOUDP-57306: List alerts (Atlas) #60

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 13 commits into from
Mar 23, 2020
Merged

CLOUDP-57306: List alerts (Atlas) #60

merged 13 commits into from
Mar 23, 2020

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Mar 20, 2020

Jira ticket: CLOUDP-57306

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 implemented e2e test
  • I have run tests using cloud-dev

Further comments

@andreaangiolillo andreaangiolillo added WIP Work in progress waiting_atlas Waiting atlas go client release labels Mar 20, 2020
@andreaangiolillo andreaangiolillo removed the WIP Work in progress label Mar 22, 2020
Alerts(string, *atlas.AlertsListOptions) (*atlas.AlertsResponse, error)
}

type AlertsStore interface {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

[qa] I do not why if I do not create the interface AlertsStore, mongocli atlas alert describe alertID seems using the wrong interface (it returns a list instead of one alert)

@andreaangiolillo andreaangiolillo requested a review from gssbzn March 23, 2020 09:25
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.

I appreciate the effort making this work with the filter but let's get this working with what we have right now and let's make a separate PR when we have the status merged, let's not block this unless necessary


cmd.Flags().IntVar(&opts.pageNum, flags.Page, 0, usage.Page)
cmd.Flags().IntVar(&opts.itemsPerPage, flags.Limit, 0, usage.Limit)
cmd.Flags().StringVar(&opts.status, flags.Status, "", usage.Status)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for making this effort but let's make this work without the filter for now and let's create a ticket linking the dependency on mongodb/go-client-mongodb-atlas#69
this let us have something working and we can later add more features

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can I just comment out the piece of code related to the status? or do you want me to delete it

Copy link
Collaborator

Choose a reason for hiding this comment

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

This line in particular can be commented if you want, but I saw that you changed the signature of the API so for that we can't do anything about it 🤷‍♂

@andreaangiolillo andreaangiolillo removed the waiting_atlas Waiting atlas go client release label Mar 23, 2020
@andreaangiolillo andreaangiolillo requested a review from gssbzn March 23, 2020 11:22
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.

Looks good let's just add a link to the jira where we'll add the missing functionality so it's not lost the reasoning behind the comments


cmd.Flags().IntVar(&opts.pageNum, flags.Page, 0, usage.Page)
cmd.Flags().IntVar(&opts.itemsPerPage, flags.Limit, 0, usage.Limit)
//cmd.Flags().StringVar(&opts.status, flags.Status, "", usage.Status)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you please add a // TODO: CLOUDP-N for the ticket where we'll fix this so people know why this is commented and when we plan to fix it?

}

})
// t.Run("List with status OPEN", func(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's add a TODO here as well linking to jira

@andreaangiolillo andreaangiolillo requested a review from gssbzn March 23, 2020 11:41
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 9aaa3ce into master Mar 23, 2020
@andreaangiolillo andreaangiolillo deleted the CLOUDP-57306 branch March 23, 2020 11:49
corryroot pushed a commit to corryroot/mongodb-atlas-cli that referenced this pull request Jun 15, 2023
(DOCSP-24168) AtlasCLI version 1.1.5
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