Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3905)

Issue 13938043: Close inspector when service is destroyed

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by jeff.pihach
Modified:
10 years, 7 months ago
Reviewers:
gary.poster, mp+187612
Visibility:
Public.

Description

Close inspector when service is destroyed The inspector was never hooked up to react to services being removed via the delta and were left in the canvas. This branch has the inspector listen for the service model switching to a dying state and then destroying the inspector and the service menu. https://code.launchpad.net/~hatch/juju-gui/close-inspector-1228410/+merge/187612 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 8

Patch Set 2 : Close inspector when service is destroyed #

Total comments: 12

Patch Set 3 : Close inspector when service is destroyed #

Patch Set 4 : Close inspector when service is destroyed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -10 lines) Patch
A [revision details] View 1 3 1 chunk +2 lines, -0 lines 0 comments Download
M app/models/models.js View 1 3 3 chunks +25 lines, -2 lines 0 comments Download
M app/views/environment.js View 1 1 chunk +30 lines, -0 lines 0 comments Download
M app/views/inspector.js View 1 2 chunks +3 lines, -1 line 0 comments Download
M test/test_fakebackend.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/test_inspector_settings.js View 1 4 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 8
jeff.pihach
Please take a look.
10 years, 7 months ago (2013-09-25 21:27:26 UTC) #1
jeff.pihach
Reviewer comments https://codereview.appspot.com/13938043/diff/1/app/views/environment.js File app/views/environment.js (right): https://codereview.appspot.com/13938043/diff/1/app/views/environment.js#newcode156 app/views/environment.js:156: model.on('lifeChange', function(e) { Because of the sequence ...
10 years, 7 months ago (2013-09-25 21:29:24 UTC) #2
frankban
Thank you Jeff, this branch is nice and definitely fixes one aspect of the bug. ...
10 years, 7 months ago (2013-09-26 07:55:34 UTC) #3
jeff.pihach
Please take a look. https://codereview.appspot.com/13938043/diff/1/app/models/models.js File app/models/models.js (right): https://codereview.appspot.com/13938043/diff/1/app/models/models.js#newcode388 app/models/models.js:388: // Because the packageName is ...
10 years, 7 months ago (2013-09-27 19:13:40 UTC) #4
jeff.pihach
updated reviewer comments https://codereview.appspot.com/13938043/diff/10001/app/models/models.js File app/models/models.js (right): https://codereview.appspot.com/13938043/diff/10001/app/models/models.js#newcode82 app/models/models.js:82: instance.destroy(); Whenever we remove a service ...
10 years, 7 months ago (2013-09-27 19:19:24 UTC) #5
gary.poster
LGTM with rambles. Thank you! https://codereview.appspot.com/13938043/diff/10001/app/models/models.js File app/models/models.js (right): https://codereview.appspot.com/13938043/diff/10001/app/models/models.js#newcode82 app/models/models.js:82: instance.destroy(); On 2013/09/27 19:19:25, ...
10 years, 7 months ago (2013-09-27 19:46:37 UTC) #6
jeff.pihach
Thanks for the review - comments below. https://codereview.appspot.com/13938043/diff/10001/app/models/models.js File app/models/models.js (right): https://codereview.appspot.com/13938043/diff/10001/app/models/models.js#newcode82 app/models/models.js:82: instance.destroy(); On ...
10 years, 7 months ago (2013-09-27 20:13:38 UTC) #7
jeff.pihach
10 years, 7 months ago (2013-09-27 20:31:11 UTC) #8
*** Submitted:

Close inspector when service is destroyed

The inspector was never hooked up to react to services
being removed via the delta and were left in the canvas.
This branch has the inspector listen for the service model
switching to a dying state and then destroying the inspector
and the service menu.

R=frankban, gary.poster
CC=
https://codereview.appspot.com/13938043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b