-
Notifications
You must be signed in to change notification settings - Fork 286
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
Add a datastore repair
command for revisions from Postgres backups
#1642
Conversation
4fbe949
to
97dbb51
Compare
Short: "executes datastore repair", | ||
Long: "Executes a repair operation for the datastore", | ||
PreRunE: server.DefaultPreRunE(programName), | ||
RunE: termination.PublishError(func(cmd *cobra.Command, args []string) error { |
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 refactor this into a new function and add basic unit tests?
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.
For... printing and invoking a function?
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 cmd
package does not have good test coverage, and I observed regressions specifically around configuration change. This function does not have configuration going on. I still think that commands deserve test coverage too, but I leave that up to you
97dbb51
to
31d4598
Compare
31d4598
to
214aa59
Compare
966140e
to
d59ebfb
Compare
d59ebfb
to
9c9e95e
Compare
9c9e95e
to
8661bf2
Compare
Fixes #1630