This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Remove the mv based dispatch to service inspector vs ghost inspector #576
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,37 +91,17 @@ YUI.add('juju-view-environment', function(Y) { | |
charm = db.charms.getById(model.get('charm')), | ||
inspector = {}; | ||
|
||
// This method is called with a charm or service. If it's called with a | ||
// charm then it needs to show the ghost inspector instead of the service | ||
// inspector. | ||
if (model.get('pending') && (window.flags && !window.flags.mv)) { | ||
model.set('packageName', charm.get('package_name')); | ||
// XXX In order to support the events below we need to use the same | ||
// object structure. Once the Service inspector is converted to | ||
// an inspector subclass the following events can be fixed. | ||
inspector = new Y.juju.views.GhostServiceInspector({ | ||
db: db, | ||
model: model, | ||
env: env, | ||
ecs: ecs, | ||
environment: this, | ||
charmModel: charm, | ||
topo: topo, | ||
store: topo.get('store') | ||
}).render(); | ||
} else { | ||
var inspectorConfig = Y.mix({ | ||
db: db, | ||
model: model, | ||
env: env, | ||
ecs: ecs, | ||
environment: this, | ||
enableDatabinding: true, | ||
topo: topo, | ||
store: topo.get('store') | ||
}, config, true); | ||
inspector = new Y.juju.views.ServiceInspector(inspectorConfig).render(); | ||
} | ||
var inspectorConfig = Y.mix({ | ||
db: db, | ||
model: model, | ||
env: env, | ||
ecs: ecs, | ||
environment: this, | ||
enableDatabinding: true, | ||
topo: topo, | ||
store: topo.get('store') | ||
}, config, true); | ||
inspector = new Y.juju.views.ServiceInspector(inspectorConfig).render(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you look into this a little further. I don't think that this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's got a call site in topology.js; there's probably work to be done there excising unused code, but I don't think it's in scope for the main work here, e.g. removing the MV flag. |
||
|
||
// Because the inspector can trigger it's own destruction we need to | ||
// listen for the event and remove it from the list of open inspectors | ||
|
@@ -286,7 +266,6 @@ YUI.add('juju-view-environment', function(Y) { | |
'juju-topology', | ||
'juju-view-utils', | ||
'service-inspector', | ||
'ghost-service-inspector', | ||
'node', | ||
'view' | ||
] | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is a drive by fix; this shouldn't have been commented out previously.