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

Columnise find to reduce output width #12409

Merged
merged 3 commits into from
Dec 7, 2020

Conversation

SimonRichardson
Copy link
Member

The output find is rather large, now that we have more and more
populated fields, we're potentially showing to much information. Instead
of just removing the fields that look unimportant, we should tailor it
depending on the users needs.

This PR introduces columns for the tabular field. Using --columns flag
with the column alias seems like a decent approach. Other canonical
tools also do this, so it isn't something new (LXD).

With decent defaults it actually looks rather good as well.

QA steps

Default column output

$ juju bootstrap lxd test
$ juju find kubernetes

Tailoured

$ juju bootstrap lxd test
$ juju find --columns=nbvaS

Copy link
Member

@manadart manadart left a comment

Choose a reason for hiding this comment

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

Nice.

@SimonRichardson
Copy link
Member Author

$$merge$$

The output find is rather large, now that we have more and more
populated fields, we're potentially showing to much information. Instead
of just removing the fields that look unimportant, we should tailor it
depending on the users needs.

This PR introduces columns for the tabular field. Using --columns flag
with the column alias seems like a decent approach. Other canonical
tools also do this, so it isn't something new (LXD).

With decent defaults it actually looks rather good as well.
@SimonRichardson
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit 5ae48e5 into juju:2.9 Dec 7, 2020
@wallyworld wallyworld mentioned this pull request Dec 9, 2020
jujubot added a commit that referenced this pull request Dec 9, 2020
#12427

Merge 2.9 with these PRs

#12397 AddPendingResources charhub
#12405 move resources api
#12404 Update the upgrade step for 2.9 for charm origin
#12401 Adds services to service watcher.
#12407 Use model-configured default space for NetworkInfo bindings
#12411 Save charm origin platform to state
#12409 Columnise find to reduce output width
#12400 Make UpdateLatestRevisions controller facade work with charmhub
 #12415 Add Juju-Metadata HTTP headers for charmhub Refresh requests
#12410 Charmhub download progress
#12413 Charmhub info optional flag
#12419 Ensure NetworksForRelation never returns a CAAS container address
#12417 fix intermittent failure in upgrade series test
#12420 Remove state from common client
#12422 Add path and description to ResourceRevision
#12423 charmrevisionupdater: remove "handlers" indirection for saving resources
#12425 Ensure process limits are correctly set with using juju-db snap

No conflicts

## QA steps

see PRs
@SimonRichardson SimonRichardson deleted the charmhub-find-writer branch July 12, 2021 14:13
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.

3 participants