-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat(addons): add maintenance windows manipulation with the new addons-config
command
#955
Conversation
We will need a new release of go-scalingo in order to pass the CI but can you take a look at my code ? |
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 failed CI and the release of go-scalingo are 2 completely different things. I don't understand why there is a link between these two?
I assumed that the CI build will fail because I locally linked go-scalingo to master without a proper release |
addons-config
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.
I'm already approving the PR but I would love if you could:
- take into account the remaining comments
- release a new go-scalingo version and use it here
cmd/addons.go
Outdated
errorQuitWithHelpMessage(errors.New(ctx, "cannot update your addon without a specified option"), c, "addons-config") | ||
} | ||
|
||
err := addons.UpdateAddonConfig(ctx, currentApp, currentAddon, config) |
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.
best practice: I'll be a bit picky on this one, there is a linter which should raise an error here. It's not useful to add the package name in the method name. Hence:
err := addons.UpdateAddonConfig(ctx, currentApp, currentAddon, config) | |
err := addons.UpdateConfig(ctx, currentApp, currentAddon, config) |
Co-authored-by: Étienne M. <[email protected]>
Co-authored-by: Étienne M. <[email protected]>
Co-authored-by: Étienne M. <[email protected]>
Co-authored-by: Étienne M. <[email protected]>
Co-authored-by: Étienne M. <[email protected]>
This reverts commit 7c97302.
Co-authored-by: Étienne M. <[email protected]>
058d28b
to
d60432f
Compare
Co-authored-by: Pierre Curzola <[email protected]>
Co-authored-by: Pierre Curzola <[email protected]>
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.
great job! but we should be sure that the utc conversions are done
fix #952