-
Couldn't load subscription status.
- Fork 72
fix(service-version): Add JSON support to service-version clone command #1550
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
base: main
Are you sure you want to change the base?
Conversation
As part of issue 1353, the service-version clone command is missing the option for JSON output and to use it in scripts the output need to be parsed. This commit adds functionality to accept the --json argument to the service-version clone command and outputs the appropriate format. Unit tests passing.
b5d87db to
16f3950
Compare
|
The test failure on Windows is not related to the contents of this PR - that sort of 'race condition' failure happens sometimes on Windows but it hasn't been a priority for us to fix it. Feel free to just re-run the failing job and it will almost certainly succeed. |
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.
Some small changes needed, but overall this looks very good!
| - feat(env): add detection for workspace ID ([#1560](https://github.com/fastly/cli/pull/1560)) | ||
|
|
||
| ### Bug fixes: | ||
| - fix(service-version): Add JSON support to service-version clone command to address issue ([#1353](https://github.com/fastly/cli/issues/1353)) |
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.
This should be listed as a feature, not a bug fix, even though lack of JSON support could be considered a bug if we had documentation claiming that all commands support JSON output :-)
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.
Also the link in the CHANGELOG entry should be to the PR, not to the issue.
Change summary
Added JSON support to service-version clone command as reported in issue #1353.
NOTE: Unable to reproduce the ordering issue/race condition that the customer reported by running the list command immediately after the clone command. We ran this sequence multiple times, but each time the list was returned in the expected order, with the newly cloned service-version listed last.
All Submissions:
Changes to Core Features:
User Impact
Are there any considerations that need to be addressed for release?
No breaking changes.