Skip to content

CLOUDP-59516: List available matchers for alerts in the Atlas client #70

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 2 commits into from
Mar 25, 2020

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Mar 23, 2020

[CLOUDP-59516(https://jira.mongodb.org/browse/CLOUDP-59516)

@andreaangiolillo andreaangiolillo added the WIP work in progress label Mar 23, 2020
@andreaangiolillo andreaangiolillo requested a review from gssbzn March 23, 2020 17:47
@andreaangiolillo andreaangiolillo removed the WIP work in progress label Mar 23, 2020
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.

small nit but in general this is great

@@ -17,6 +17,7 @@ type AlertConfigurationsService interface {
GetAnAlertConfig(context.Context, string, string) (*AlertConfiguration, *Response, error)
GetOpenAlertsConfig(context.Context, string, string) ([]AlertConfiguration, *Response, error)
List(context.Context, string, *ListOptions) ([]AlertConfiguration, *Response, error)
ListMatcherFields(ctx context.Context) (*[]string, *Response, error)
Copy link
Collaborator

Choose a reason for hiding this comment

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

[nit] I wouldn't go for pointers here

Suggested change
ListMatcherFields(ctx context.Context) (*[]string, *Response, error)
ListMatcherFields(ctx context.Context) ([]string, *Response, error)

But if you do it should be []*string

@andreaangiolillo andreaangiolillo changed the title CLOUDP-59435: List available matchers for alerts in the Atlas client CLOUDP-59516: List available matchers for alerts in the Atlas client Mar 23, 2020
@andreaangiolillo andreaangiolillo requested a review from gssbzn March 23, 2020 18:16
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, @themantissa ready for review on your side

@gssbzn gssbzn requested a review from themantissa March 23, 2020 19:19
Copy link
Collaborator

@themantissa themantissa left a comment

Choose a reason for hiding this comment

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

LGTM! @PacoDw and @marinsalinas can one of you look over this please? It seems to have been missed in the work adding support for alert configurations but assume we didn't need for Terraform, if we do we'll now have it so please keep it in mind?

Copy link
Contributor

@PacoDw PacoDw left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you so much 👍

@andreaangiolillo andreaangiolillo merged commit 46ae638 into master Mar 25, 2020
@gssbzn gssbzn deleted the CLOUDP-59516 branch April 2, 2020 14:59
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.

4 participants