Merge lp:~thomir-deactivatedaccount/juju-viz/fix-box-drawing-for-services into lp:juju-viz
Proposed by
Thomi Richards
Status: | Merged |
---|---|
Approved by: | Haw Loeung |
Approved revision: | 48 |
Merge reported by: | JuanJo Ciarlante |
Merged at revision: | not available |
Proposed branch: | lp:~thomir-deactivatedaccount/juju-viz/fix-box-drawing-for-services |
Merge into: | lp:juju-viz |
Diff against target: |
12 lines (+1/-1) 1 file modified
bin/juju-dotty.py (+1/-1) |
To merge this branch: | bzr merge lp:~thomir-deactivatedaccount/juju-viz/fix-box-drawing-for-services |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
JuanJo Ciarlante | lgtm | Approve | |
Haw Loeung | Approve | ||
Review via email: mp+290390@code.launchpad.net |
Description of the change
juju-viz currently checks to see if the service name contains 'db' or the charm name contains 'sql', and if so, renders that service in a box. This is intended to draw database services differently.
However, this fails when services happen to contain 'db' in their name. For example, we deploy services that contain a git commit hash in the service name, which causes juju viz to display some of our services as box when they shouldn't.
This branch changes that logic so the charm name is searched for both the 'db' and 'sql' strings instead.
To post a comment you must log in.
LGTM. Searching https:/ /jujucharms. com/q/db, this will also catch influxdb should we ever use that :)