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

Issue 8826043: Fix navigateTo events to use nsRouter.

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

Description

Fix navigateTo events to use nsRouter. Fix the "navigateTo" event firings to define URLs by means of an nsRouter instance. Also change the "url" method in the app/assets/javascripts/ns-routing-app-extension.js file, and related tests, by changing the includeRootPaths flag into excludeRootPaths. Including root paths in URLs becomes the default behavior, as agreed. The code in app/views/charm.js was not changed: its status is not clear, it does not seem current in its code structure and conventions, and it's also not clear how to add an nsRouter object to its views. https://code.launchpad.net/~teknico/juju-gui/1169511-use-nsrouter-in-navigateTo/+merge/159366 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix navigateTo events to use nsRouter. #

Total comments: 1

Patch Set 3 : Fix navigateTo events to use nsRouter. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -17 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 chunk +1 line, -1 line 0 comments Download
M app/assets/javascripts/ns-routing-app-extension.js View 1 2 chunks +4 lines, -3 lines 0 comments Download
M app/views/service.js View 1 chunk +1 line, -1 line 0 comments Download
M app/views/topology/service.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/test_routing.js View 1 4 chunks +8 lines, -10 lines 0 comments Download

Messages

Total messages: 8
teknico
Please take a look.
11 years, 7 months ago (2013-04-17 11:58:34 UTC) #1
gary.poster
Hi Nicola. LGTM with important changes given below, plus a test for your change to ...
11 years, 7 months ago (2013-04-17 12:19:27 UTC) #2
teknico
Thanks for the review, Gary. https://codereview.appspot.com/8826043/diff/1/app/assets/javascripts/ns-routing-app-extension.js File app/assets/javascripts/ns-routing-app-extension.js (left): https://codereview.appspot.com/8826043/diff/1/app/assets/javascripts/ns-routing-app-extension.js#oldcode5 app/assets/javascripts/ns-routing-app-extension.js:5: function _trim(s, char, leading, ...
11 years, 7 months ago (2013-04-17 14:28:17 UTC) #3
teknico
Please take a look.
11 years, 7 months ago (2013-04-17 14:37:27 UTC) #4
jeff.pihach
LGTM with a trvial suggestion, do with it what you wish :) https://codereview.appspot.com/8826043/diff/6001/app/assets/javascripts/ns-routing-app-extension.js File app/assets/javascripts/ns-routing-app-extension.js ...
11 years, 7 months ago (2013-04-17 15:07:24 UTC) #5
frankban
LGTM, thanks!
11 years, 7 months ago (2013-04-17 15:09:36 UTC) #6
teknico
jeff.pihach wrote: > I'm not a fan of the negating checks as it makes it ...
11 years, 7 months ago (2013-04-17 15:13:17 UTC) #7
teknico
11 years, 7 months ago (2013-04-17 15:22:58 UTC) #8
*** Submitted:

Fix navigateTo events to use nsRouter.

Fix the "navigateTo" event firings to define URLs by means of an
nsRouter instance.

Also change the "url" method in the
app/assets/javascripts/ns-routing-app-extension.js file, and related
tests, by changing the includeRootPaths flag into excludeRootPaths.
Including root paths in URLs becomes the default behavior, as agreed.

The code in app/views/charm.js was not changed: its status is not
clear, it does not seem current in its code structure and conventions,
and it's also not clear how to add an nsRouter object to its views.

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

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