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

feat(jimmctl migrate): enable users to specify model names #1500

Merged

Conversation

ale8k
Copy link
Contributor

@ale8k ale8k commented Dec 17, 2024

Description

Enables users to specify model names when migrating. Fixes #1371

Engineering checklist

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

Test instructions

@ale8k ale8k requested a review from a team as a code owner December 17, 2024 13:30
cmd/jimmctl/cmd/migratemodel.go Outdated Show resolved Hide resolved
cmd/jimmctl/cmd/migratemodel.go Outdated Show resolved Hide resolved
cmd/jimmctl/cmd/migratemodel.go Outdated Show resolved Hide resolved
pkg/api/params/params.go Outdated Show resolved Hide resolved
@ale8k ale8k force-pushed the juju-7322/improve-usability-of-migrate-command branch from d124ac8 to 6494529 Compare December 18, 2024 09:53
Copy link
Contributor

@kian99 kian99 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@SimoneDutto SimoneDutto left a comment

Choose a reason for hiding this comment

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

just a single comment

if err != nil {
s := strings.Split(modelNameOrUUID, "/")
if len(s) != 2 {
return jujuparams.InitiateMigrationResult{}, errors.E(op, "missing model name")
Copy link
Contributor

Choose a reason for hiding this comment

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

this is more "invalid target" right? because we don't know if the model or the user name is wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah true, I'll update it

cmd/jimmctl/cmd/migratemodel.go Show resolved Hide resolved
@ale8k ale8k merged commit 5c5ee6c into canonical:v3 Dec 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve usability of the migrate command
3 participants