-
Notifications
You must be signed in to change notification settings - Fork 72
Refactor: Improve migration flow #1512
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
Conversation
package.json
Outdated
| "repository": "https://github.com/HubSpot/hubspot-cli", | ||
| "dependencies": { | ||
| "@hubspot/local-dev-lib": "3.5.6", | ||
| "@hubspot/local-dev-lib": "0.3.1-experimental.0", |
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.
Need to bump this, after the sister LDL PR is merged.
| !configFileExists(true) && | ||
| isTargetedCommand(argv._, { | ||
| account: { target: false, subCommands: { auth: { target: true } } }, | ||
| config: { target: false, subCommands: { migrate: { target: true } } }, |
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.
If the hs config migrate command is validated and there is no deprecated config present, we warn the user that they need to supply an account ID. That would be ok for any other command, but with this command, we want to tell the user that no further action is required because the migration has already taken place.
|
@brandenrodgers, I refactored the prompts per your suggestions: New migration prompt (Appears in both
New merge prompt (Appears in both
|




Description and Context
(Draft because I'm currently experiencing issues with the API service; will mark as ready for review when those are addressed)
This PR relies on this LDL PR. I've created an experimental release of LDL for ease of testing.
This PR gives more detailed messaging about the migration/merge process to the global config file in the
hs config migrateandhs account authcommands.Screenshots
New migration prompt (Appears in both
hs config migrateandhs account authwhen deprecated config is present):New merge prompt (Appears in both
hs config migrateandhs account authwhen both configs are present):New verbose description of
hs config migrate:New verbose description of
hs account auth:TODO
Who to Notify
@brandenrodgers @camden11 @joe-yeager