Skip to content

Conversation

swattyT
Copy link
Contributor

@swattyT swattyT commented Jun 14, 2023

Proposed changes

Jira ticket: CLOUDP-# CLOUDP-183839

Changed the response template for liveMigration create and describe commands.
Closes #[issue number]

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated test/README.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

Further comments

var createTemplate = `ID PROJECT ID SOURCE PROJECT ID STATUS
{{.Id}} {{.Destination.GroupId}} {{.Source.GroupId}} {{.Status}}`
var createTemplate = `ID LAGTIME READY FOR CUTOVER STATUS
{{.Id}} {{.LagTimeSeconds}} {{.ReadyForCutover}} {{.Status}}`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the template as the API does not send Source and Destination in the response object.

@swattyT swattyT changed the title CLOUDP-183839: Update the response CLOUDP-183839: Atlas Cli liveMigrations create doesn't parse output correctly after creating Jun 15, 2023
@swattyT swattyT marked this pull request as ready for review June 15, 2023 09:54
@swattyT swattyT requested a review from a team as a code owner June 15, 2023 09:54
@swattyT swattyT requested review from a team and andreaangiolillo June 15, 2023 09:54
Copy link
Contributor

@gssbzn gssbzn left a comment

Choose a reason for hiding this comment

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

LGTM please include a rlease notes mentioning the change of output on the ticket

@swattyT swattyT merged commit 81dc816 into master Jun 15, 2023
@swattyT swattyT deleted the CLOUDP-183839 branch June 15, 2023 15:10
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.

2 participants