Our unit detail view was not data-bound: it would render and never
update. This branch fixes that, except for the relation information,
which is not really available at the moment (in terms of errors) so I
decided that could live to fight another day.
To qa, deploy a service, turn off the simulator (to avoid surprises),
open the unit view of unit 0, and try the following in the console,
looking on in the unit details view as you do.
Affected files (+235, -55 lines):
A [revision details]
M app/templates/unitOverview.handlebars
M app/views/viewlet-manager.js
M app/views/viewlets/unit-details.js
M test/test_unit_detail_viewlet.js
Reviewers: mp+187311_ code.launchpad. net,
Message:
Please take a look.
Description:
Data-bind unit details view
Our unit detail view was not data-bound: it would render and never
update. This branch fixes that, except for the relation information,
which is not really available at the moment (in terms of errors) so I
decided that could live to fight another day.
To qa, deploy a service, turn off the simulator (to avoid surprises),
open the unit view of unit 0, and try the following in the console,
looking on in the unit details view as you do.
myunit = app.db. units.item( 0) private_ address = '10.0.0.1' public_ address = '10.0.0.2' agent_state_ info = 'great!' environment. set('annotation s', {'landscape-url': landscape. example. com','landscape -computers': criteria/ environment: test'}) computer' : 'kumquat'}
myunit.
myunit.
myunit.open_ports = [80]
myunit.open_ports = [8080]
myunit.open_ports = [443]
myunit.open_ports = [443, 8080]
myunit.
app.db.
'http://
'/computers/
myunit.annotations = {'landscape-
(note that the app.dp. environment. set call does not trigger a change in
the view: it sets up data for the next mutation, which does.)
Thank you!
https:/ /code.launchpad .net/~gary/ juju-gui/ bug1228166/ +merge/ 187311
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/13841044/
Affected files (+235, -55 lines): unitOverview. handlebars viewlet- manager. js viewlets/ unit-details. js unit_detail_ viewlet. js
A [revision details]
M app/templates/
M app/views/
M app/views/
M test/test_