Merge lp://staging/~gary/juju-gui/bug1167967 into lp://staging/juju-gui/experimental
Proposed by
Gary Poster
Status: | Merged |
---|---|
Merged at revision: | 540 |
Proposed branch: | lp://staging/~gary/juju-gui/bug1167967 |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
217 lines (+55/-25) 11 files modified
app/app.js (+1/-1) app/assets/javascripts/ns-routing-app-extension.js (+3/-1) app/views/charm.js (+1/-1) app/views/landscape.js (+2/-1) app/views/service.js (+2/-1) app/views/utils.js (+16/-14) test/test_app_hotkeys.js (+1/-1) test/test_charm_view.js (+1/-1) test/test_landscape.js (+15/-0) test/test_routing.js (+6/-0) test/test_service_view.js (+7/-4) |
To merge this branch: | bzr merge lp://staging/~gary/juju-gui/bug1167967 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email:
|
Description of the change
Fix bug 1167967 (hopefully)
This branch attempts to fix the referenced bug. I was unable to duplicate the symptoms locally exactly, but duplicated them closely enough that I am optimistic that these changes address the issue. Regardless, they seem like reasonable changes.
I also fixed a couple of landscape issues I saw with newly created services without annotations.
The aspect of this branch I wonder most if reviewers (particularly Ben) will like is the change to the route url algorithm. If it's not clear why I chose it, I'm happy to discuss my rationale and other options.
Thank you.
To post a comment you must log in.
Reviewers: mp+158468_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix bug 1167967 (hopefully)
This branch attempts to fix the referenced bug. I was unable to
duplicate the symptoms locally exactly, but duplicated them closely
enough that I am optimistic that these changes address the issue.
Regardless, they seem like reasonable changes.
I also fixed a couple of landscape issues I saw with newly created
services without annotations.
The aspect of this branch I wonder most if reviewers (particularly Ben)
will like is the change to the route url algorithm. If it's not clear
why I chose it, I'm happy to discuss my rationale and other options.
Thank you.
https:/ /code.launchpad .net/~gary/ juju-gui/ bug1167967/ +merge/ 158468
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/8680043/
Affected files: javascripts/ ns-routing- app-extension. js landscape. js service. js app_hotkeys. js charm_view. js landscape. js routing. js service_ view.js
A [revision details]
M app/app.js
M app/assets/
M app/views/charm.js
M app/views/
M app/views/
M app/views/utils.js
M test/test_
M test/test_
M test/test_
M test/test_
M test/test_
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: app/app.js
=== modified file 'app/app.js'
--- app/app.js 2013-04-09 20:50:46 +0000
+++ app/app.js 2013-04-11 19:46:11 +0000
@@ -184,7 +184,7 @@
- this.fire(
+ this.fire(
}, this);
Index: test/test_ app_hotkeys. js app_hotkeys. js' app_hotkeys. js 2013-04-08 18:23:28 +0000 app_hotkeys. js 2013-04-11 19:46:11 +0000 on('navigateTo' , function(ev) {
altEtriggere d = true;
=== modified file 'test/test_
--- test/test_
+++ test/test_
@@ -50,7 +50,7 @@
it('should listen for alt-E events', function() {
var altEtriggered = false;
app.
- if (ev && ev.url === '/') {
+ if (ev && ev.url === '/:gui:/') {
}
// Avoid URL change performed by additional listeners.
Index: test/test_ charm_view. js charm_view. js' charm_view. js 2013-02-15 11:58:05 +0000 charm_view. js 2013-04-11 19:46:11 +0000
charmView. on('navigateTo' , function(e) { equal(' /:gui:/ ', e.url);
redirected = true; get('container' ).one(' #charm- deploy' );
=== modified file 'test/test_
--- test/test_
+++ test/test_
@@ -88,7 +88,7 @@
env: env});
var redirected = false;
- assert.equal('/', e.url);
+ assert.
});
var deployInput = charmView.
Index: app/views/charm.js charm.js'
=== modified file 'app/views/
--- app/views/charm.js 2013-03-19 21:58:04 +0000
+++ app/views/charm.js 2013-04-11 19:46:11 +0000
@@ -97,7 +97,7 @@
// The deploy call generates an event ...