-
Notifications
You must be signed in to change notification settings - Fork 83
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
CLOUDP-57844: List matcher fields, Atlas #62
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.
couple of things here around naming, probably my bad as the ticket was not updated when we decided to go from alert-config
to alerts config
"github.com/spf13/cobra" | ||
) | ||
|
||
func AtlasAlertConfigsFieldsBuilder() *cobra.Command { |
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 ticket was out dated, remember we changed alert-config
to alerts config
this should be
func AtlasAlertConfigsFieldsBuilder() *cobra.Command { | |
func AtlasAlertsConfigsFieldsBuilder() *cobra.Command { |
Please also remember to change the file name
"github.com/spf13/cobra" | ||
) | ||
|
||
type atlasAlertConfigFieldsTypeOpts struct { |
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.
same comment, this should be
type atlasAlertConfigFieldsTypeOpts struct { | |
type atlasAlertsConfigFieldsTypeOpts struct { |
opts := &atlasAlertConfigFieldsTypeOpts{} | ||
cmd := &cobra.Command{ | ||
Use: "type", | ||
Short: "List alert configurations for a project.", |
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.
Short: "List alert configurations for a project.", | |
Short: "List alert configurations available field types.", |
@@ -35,10 +35,15 @@ type AlertConfigurationDeleter interface { | |||
DeleteAlertConfiguration(string, string) error | |||
} | |||
|
|||
type AlertConfigurationFieldsLister interface { |
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.
[q] why not MatcherFieldsLister
? not a needed change but just wondering about this
waiting on mongodb/go-client-mongodb-atlas#70 |
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.
small grammar fix but code looks great 👍
Co-Authored-By: Gustavo Bazan <gssbzn@gmail.com>
…ListOptions in mongocli
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
Jira ticket: CLOUDP-57844
Checklist
make fmt
and formatted my codeFurther comments
./bin/mongocli atlas alerts config fields type