Merge lp:~rvb/maas/cluster-connected into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2958 |
Proposed branch: | lp:~rvb/maas/cluster-connected |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
220 lines (+110/-8) 7 files modified
src/maasserver/models/nodegroup.py (+10/-0) src/maasserver/models/tests/test_nodegroup.py (+19/-0) src/maasserver/templates/maasserver/cluster_listing.html (+1/-1) src/maasserver/templates/maasserver/cluster_listing_head.html (+1/-0) src/maasserver/templates/maasserver/cluster_listing_row.html (+17/-2) src/maasserver/views/clusters.py (+3/-3) src/maasserver/views/tests/test_clusters.py (+59/-2) |
To merge this branch: | bzr merge lp:~rvb/maas/cluster-connected |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Review via email:
|
Commit message
Display if clusters are connected on the cluster listing page.
Description of the change
Here is what it looks like:
connected: http://
disconnected: http://
The plan is to integrate this with a proper notification system when it's implemented but this needs some serious UI work. This branch is a first step: backend work + basic display in the UI.
To post a comment you must log in.
I guess there are no HTML entity codes for the special characters you wanted... shame.
The naming trick in test_listing_ displays_ connection_ status is a bit hairy. I'd explain that right up front so that the reader understands how the code fits together.
Also in that test, instead of “self.name[-1] == '0'” I'd say “self.name. endswith( '0')”.
And finally, test_warning_ is_displayed_ if_a_cluster_ is_not_ connected could use the HasLength matcher.