Tweak how machine view renders hidden/faded/highlighted services. #625
Conversation
QAWith the
|
Test FAILed. |
Some QA issues: Service hide: Service relations: Machine hide: Machine relations: |
@return {Array} A list of the service names of unrelated services. | ||
*/ | ||
findUnrelatedServices: function(db) { | ||
var relationData = utils.getRelationDataForService(db, this), |
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.
Since this is a calculated value, please define it in its own var.
Code looks good with some changes. |
893c6bc
to
2b53993
Compare
Test FAILed. |
a8c4c89
to
a6d2fb1
Compare
Test PASSed. |
@@ -303,6 +303,31 @@ YUI.add('juju-models', function(Y) { | |||
}, | |||
|
|||
/** | |||
Returns a list of the deployed services that are not related |
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.
Doesn't this also return services which are on the canvas but not deployed?
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.
Yes, though I consider those deployed as well, just not committed. I'll clarify.
Test PASSed. |
a6d2fb1
to
73010e0
Compare
Test PASSed. |
73010e0
to
93850fa
Compare
{id: 'haproxy', name: 'haproxy'} | ||
]); | ||
var relations = [ | ||
{far: {service: 'wordpress'}} |
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'm curious about this method and it's support of peer relations. Have you tested/experimented with that? Maybe there should also be a peer relation here to make sure it works as intended.
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've verified that peer and subordinate relations use the same data structure, so this test should be sufficient.
Test PASSed. |
👍 Thanks for checking on that relationship syntax |
Woo hoo! |
Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/juju-gui-merge |
Tweak how machine view renders hidden/faded/highlighted services. The specs for how hide/highlight should work in machine view: ## Show/hide * Machine view is a literal translation of hardware so we can't be so clear cut. * Hiding a service just de-prioritises the service. * The hidden service is not populated in the machine column. * The hidden services is de-prioritised in the container column. They sit at the bottom of their respective containers and stack up horizontally, the name of the service is not shown but can be found out via a tooltip which should appear from hovering over the charm icon. * The machine and containers never get hidden with show/hide. ## Highlight/unhighlight * Highlighting a service changes the machine column to only show machines which include the highlighted service. This allows users to use it as a filtering tool.
The specs for how hide/highlight should work in machine view:
Show/hide
Highlight/unhighlight