Skip to content

Change the default value of --create-global-downtime#290

Merged
michael-richey merged 1 commit intomainfrom
michael.richey/default-downtime-true
Oct 7, 2024
Merged

Change the default value of --create-global-downtime#290
michael-richey merged 1 commit intomainfrom
michael.richey/default-downtime-true

Conversation

@michael-richey
Copy link
Copy Markdown
Collaborator

What does this PR do?

Create a global downtime at the destination for sync and migrate commands by default. Allow the user to override it by setting the --create-global-downtime command line option to False

Description of the Change

This changes the default value of --create-global-downtime to True, changed the type to bool rather than a flag.

Possible Drawbacks

This changes the default behavior on sync-cli. Users could accidentally create downtimes at destinations when they don't mean to do so. This will mute all their monitors at the destination org.

Release Notes

Need to bump the major release number for this change.

@michael-richey michael-richey marked this pull request as ready for review October 4, 2024 20:30
@michael-richey michael-richey requested a review from a team as a code owner October 4, 2024 20:30
Copy link
Copy Markdown
Collaborator

@heyronhay heyronhay left a comment

Choose a reason for hiding this comment

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

Looks like it already has logic to prevent multiple global downtimes from being created, is that correct?

@michael-richey
Copy link
Copy Markdown
Collaborator Author

Looks like it already has logic to prevent multiple global downtimes from being created, is that correct?

Exactly!

@michael-richey michael-richey merged commit 76ca097 into main Oct 7, 2024
@michael-richey michael-richey deleted the michael.richey/default-downtime-true branch October 7, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants