feat: 'data:pg:migrate' interactive method selection (W-22585064)#3791
Open
sbosio wants to merge 1 commit into
Open
feat: 'data:pg:migrate' interactive method selection (W-22585064)#3791sbosio wants to merge 1 commit into
sbosio wants to merge 1 commit into
Conversation
Contributor
Author
|
Do not merge yet. We'll be merging after @heicheng18 has reviewed the new strings introduced for the feature. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an interactive prompt to the
data:pg:migratecommand that allows users to select a migration method (Snapshot or Streaming) when configuring a database migration. The prompt includes descriptions of each method to help users make an informed choice. When the--methodflag is provided, the interactive prompt is skipped.Type of Change
Feature Additions (minor semver update)
Testing
Notes:
--methodflag no longer has a default value to enable detection of interactive vs. flag-based flow--method=snapshotto maintain their original behaviorSteps:
npm install && npm run build./bin/run data:pg:migrate --app=<app-name>without the--methodflag. The app is required to have at least two migreable Classic databases (standard-0or higher, not Essential-tier)../bin/run data:pg:migrate --app=<app-name> --method=snapshotand verify the method prompt is skippedRelated Issues
GUS work item: W-22585064