Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Fix unscheduling backups for some config var configurations #1539

Merged
merged 4 commits into from May 15, 2015

Conversation

msakrejda
Copy link
Contributor

For some applications with aliased config vars, it's possible
that the unschedule command can be too stringent in verifying
the database to unschedule, making it impossible to unschedule
backups without manually calling the API.

This makes the unschedule verification much simpler.

/cc @chadbailey59 @neovintage @hgmnz

For some applications with aliased config vars, it's possible
that the unschedule command can be too stringent in verifying
the database to unschedule, making it impossible to unschedule
backups without manually calling the API.

This makes the unschedule verification much simpler.
@hgmnz
Copy link
Contributor

hgmnz commented May 7, 2015

woot woot. Thanks @uhoh-itsmaciek!

Yeah, much simpler and also you know, correct. So +1!

@@ -513,12 +513,15 @@ def unschedule_backups
db = shift_argument
validate_arguments!

if db.nil?
abort("Must specify database to unschedule backups for")
end
Copy link
Contributor

Choose a reason for hiding this comment

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

If there is only one schedule, should we accept no db here?

For this message, I'd add a hint:

Must specify a database. Run `heroku help pg:backups` for usage information.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it does make sense to require an argument. Maybe instead of pointing people to help, we should just list what's available to unschedule instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree we should require an argument. :)

@msakrejda
Copy link
Contributor Author

@hgmnz @chadbailey59 Improved the error message / error handling. How's this look?

@tef
Copy link

tef commented May 15, 2015

Just got a ticket for this—any sign of merging?

@neovintage
Copy link
Contributor

@uhoh-itsmaciek @tef The error messages and handling look good to me.

jdx pushed a commit that referenced this pull request May 15, 2015
Fix unscheduling backups for some config var configurations
@jdx jdx merged commit d050106 into heroku:master May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants