-
Notifications
You must be signed in to change notification settings - Fork 88
CLOUDP-184341: add flag for compacting list results #2009
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
62e00de to
60de93b
Compare
f9b657e to
786d382
Compare
| - Type | ||
| - Required | ||
| - Description | ||
| * - -c, --compact |
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.
I might be missing context. Did we agree for this flag to be present in docs (not hidden?)
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.
Jakub flagged that he wanted a note in --help for affected commands, which for me implies that it should be present in docs
Add note to --help for affected commands that provide a short explanation for the relevant (affected) CLI versions
| - Type | ||
| - Required | ||
| - Description | ||
| * - -c, --compact |
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.
--compact as name and description suggests feature but in reality is introduced only to support backward compatibility. Names are hard but if we can add something more descriptive:
--legacy-output
--old-format
Etc.
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.
Sure I'm happy to go with that
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.
Chatted offline. Compact seems much better as we do not use old SDK and this flag can stay with us without removal
|
Awesome work. If the decision is to make those flags temporary we might add some notes to the code to remeber to remove them at specific moment of time |
sarahsimpers
left a comment
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.
A couple thoughts on wording for the flag
Co-authored-by: Sarah Simpers <82042374+sarahsimpers@users.noreply.github.com>
sarahsimpers
left a comment
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.
LGTM, thanks for the changes!
Proposed changes
Jira ticket: CLOUDP-184341
In releases 1.7.x, with the integration of the new automated Go SDK, we introduced breaking change to several "list" commands that modified the response structure for "--output json"
This PR is to introduces a flag "--compact" to revert the behaviour for the same specific set of list commands, so that users can modify their scripts with the "-c" flag to align their scripts with the previous behavior
Checklist
make fmtand formatted my codeFurther comments