Skip to content
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

HAMR-164: Add migrate command #287

Merged
merged 2 commits into from
Sep 27, 2024
Merged

Conversation

michael-richey
Copy link
Collaborator

@michael-richey michael-richey commented Sep 27, 2024

What does this PR do?

Add a migrate command that both imports and sync resources in one step.

Description of the Change

Add the migrate command that just does an import and a sync. Renamed the non_import_common_options to be diff_common_options since these options are shared between diff, sync, and migrate. Created sync_common_options to be shared between sync and migrate.

@@ -94,7 +94,7 @@ def click_config_file_provider(ctx: Context, opts: CustomOptionClass, value: Non
type=int,
default=60,
show_default=True,
help="The HTTP request retry timeout period. Defaults to 60s",
help="The HTTP request retry timeout period in seconds.",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the show_default=True already shows the default of 60.

@@ -104,7 +104,7 @@ def click_config_file_provider(ctx: Context, opts: CustomOptionClass, value: Non
type=int,
default=30,
show_default=True,
help="The HTTP request timeout period. Defaults to 30s",
help="The HTTP request timeout period in seconds.",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the show_default=True already shows the default of 30.

@michael-richey michael-richey marked this pull request as ready for review September 27, 2024 18:34
@michael-richey michael-richey requested a review from a team as a code owner September 27, 2024 18:34
"--create-global-downtime",
required=False,
is_flag=True,
default=False,
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should probably switch the create-global-downtime to default to true since we almost always want it to happen.

@michael-richey michael-richey merged commit 2a55daf into main Sep 27, 2024
17 of 18 checks passed
@michael-richey michael-richey deleted the michael.richey/migrate-command branch September 27, 2024 19:05
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