The `actions` command does poor data munging
Bug #1871719 reported by
Peter Matulis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Simon Richardson |
Bug Description
When displaying a charm's actions with the `actions` command the text almost always comes out jagged and difficult to read. As long as the actions.yaml file contains valid YAML Juju should be able to do the right thing and display properly formatted text.
Based on
https:/
Can Juju munge the text so that the output can look something like this:
https:/
Instead of like this:
Changed in juju: | |
milestone: | none → 2.8.1 |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: bitesize |
Changed in juju: | |
assignee: | nobody → Simon Richardson (simonrichardson) |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
FWIW this would be a very difficult feature to implement, because it would
require Juju to receive intelligence about what type of output each action
expects to provide.
Seems like a great usability win though.
On Thu, 9 Apr 2020 at 10:00, Peter Matulis <email address hidden>
wrote:
> Public bug reported: /api.jujucharms .com/charmstore /v5/percona- 285/archive/ actions. yaml /paste. ubuntu. com/p/3TnSd4JMR z/ /paste. ubuntu. com/p/kjptT4JcM 9/ /bugs.launchpad .net/bugs/ 1871719 /api.jujucharms .com/charmstore /v5/percona- 285/archive/ actions. yaml /paste. ubuntu. com/p/3TnSd4JMR z/ /paste. ubuntu. com/p/kjptT4JcM 9/ /bugs.launchpad .net/juju/ +bug/1871719/ +subscriptions Notification- Type: bug Undecided; Bug-Information -Type: Public Bug-Private: no Bug-Security- Vulnerability: no Bug-Commenters: petermatulis Bug-Reporter: Peter Matulis (petermatulis) Bug-Modifier: Peter Matulis (petermatulis) Message- Rationale: Subscriber (juju) Message- For: tim-clicks Subscription: juju-bugs Subscription: juju-project-bugs
>
> When displaying a charm's actions with the `actions` command the text
> almost always comes out jagged and difficult to read. As long as the
> actions.yaml file contains valid YAML Juju should be able to do the
> right thing and display properly formatted text.
>
> Based on
>
> https:/
> cluster-
>
> Can Juju munge the text so that the output can look something like this:
>
> https:/
>
> Instead of like this:
>
> https:/
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju-bugs, juju-project-bugs
> https:/
>
> Title:
> The `actions` command does poor data munging
>
> Status in juju:
> New
>
> Bug description:
> When displaying a charm's actions with the `actions` command the text
> almost always comes out jagged and difficult to read. As long as the
> actions.yaml file contains valid YAML Juju should be able to do the
> right thing and display properly formatted text.
>
> Based on
>
> https:/
> cluster-
>
> Can Juju munge the text so that the output can look something like
> this:
>
> https:/
>
> Instead of like this:
>
> https:/
>
> To manage notifications about this bug go to:
> https:/
>
> Launchpad-
> Launchpad-Bug: product=juju; status=New; importance=
> assignee=None;
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
>