-
Notifications
You must be signed in to change notification settings - Fork 86
CLOUDP-57863: List available checkpoints, atlas/cm/om #48
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.
Couple of things here, it looks like we are not compliant with the spec, any reason for it?
Also this task should enable this command for CM and OM as it should be the same and it looks like those are missing
This reverts commit 7bbb672.
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 that look like leftovers and we are still missing on adding the command for om and cm
Use: "list", | ||
Aliases: []string{"ls"}, | ||
Short: "List continuous backup checkpoints.", | ||
Args: cobra.NoArgs, |
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.
you may need to change this or we won't be able to use args for the cluster name/id
@@ -220,7 +220,7 @@ func AtlasBackupsRestoresStartBuilder() *cobra.Command { | |||
|
|||
cmd.Flags().StringVar(&opts.snapshotID, flags.SnapshotID, "", usage.SnapshotID) | |||
// Atlas uses cluster name | |||
cmd.Flags().StringVar(&opts.clusterName, flags.ClusterName, "", usage.ClusterName) | |||
cmd.Flags().StringVar(&opts.clusterName, flags.ClusterName, "", usage.ClusterNameSnapshots) |
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.
can you please rollback this change as well as there's no need for it now?
internal/store/checkpoints.go
Outdated
"github.com/mongodb/mongocli/internal/config" | ||
) | ||
|
||
type CheckpointsGetter 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.
can we delete this as we don't need it right now? same with the implementation and the store?
They can be implemented later when needed
Question about your comment " we are still missing on adding the command for om and cm": the command is inside the AtlasBackupsCheckpointsBuilder, which is inside the AtlasBackupsBuilder which is inside OM, Atlas and CM. So the command should be already inside OM and CM. Am I missing something? |
@andreaangiolillo my bad with the altas/om/cm stuff, we need to rethink how we organize the commands, this is getting hard |
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 great work
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 doing the last bit, this looks great
* (DOCSP-23216): v1.1.3 Release Notes & source constant * Set submodule to v1.1.3 * formatting fixes * copy review
…b#48)" (mongodb#50) This reverts commit b26ab4b.
Jira ticket: CLOUDP-57863
Checklist
make fmt
and formatted my code