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

Issue 7327045: Namespace aware routing

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by bcsaller
Modified:
11 years, 2 months ago
Reviewers:
mp+148365
Visibility:
Public.

Description

Namespace aware routing Add namespace aware routing to app. This is forward looking. It adds support for namespaced urls where these are defined as /:ns:/urlFragment/:ns2:/etc. Each namespace in the url will be preserved and dispatched to accordingly. Middleware should only fire once for a given request. https://code.launchpad.net/~bcsaller/juju-gui/namespace-routing/+merge/148365 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Namespace aware routing #

Total comments: 21

Patch Set 3 : Namespace aware routing #

Total comments: 4

Patch Set 4 : Namespace aware routing #

Total comments: 28

Patch Set 5 : Namespace aware routing #

Total comments: 9

Patch Set 6 : Namespace aware routing #

Total comments: 1

Patch Set 7 : Namespace aware routing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -101 lines) Patch
A [revision details] View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 2 3 4 5 6 11 chunks +209 lines, -30 lines 0 comments Download
A app/assets/javascripts/routing.js View 1 2 3 4 5 1 chunk +217 lines, -0 lines 0 comments Download
M app/modules-debug.js View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M app/views/service.js View 1 2 3 4 5 2 chunks +6 lines, -5 lines 0 comments Download
M bin/merge-files View 1 1 chunk +1 line, -0 lines 0 comments Download
M test/index.html View 1 2 3 4 5 6 3 chunks +2 lines, -1 line 0 comments Download
M test/test_app.js View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
A test/test_routing.js View 1 2 3 4 5 1 chunk +108 lines, -0 lines 0 comments Download
M undocumented View 1 2 3 4 5 6 4 chunks +63 lines, -63 lines 0 comments Download

Messages

Total messages: 22
bcsaller
Please take a look.
11 years, 2 months ago (2013-02-14 12:50:46 UTC) #1
bcsaller
Please take a look.
11 years, 2 months ago (2013-02-14 13:19:56 UTC) #2
gary.poster
I only got halfway through routing.js, but wanted to share what I had before I ...
11 years, 2 months ago (2013-02-14 14:00:09 UTC) #3
bcsaller
Made changes around your suggestions, but will wait for other reviews https://codereview.appspot.com/7327045/diff/3001/app/assets/javascripts/routing.js File app/assets/javascripts/routing.js (right): ...
11 years, 2 months ago (2013-02-14 15:12:53 UTC) #4
bcsaller
Please take a look.
11 years, 2 months ago (2013-02-14 15:16:20 UTC) #5
matthew.scott
Some minors below. The code looks fine for the most part, with the queue addition. ...
11 years, 2 months ago (2013-02-14 17:58:27 UTC) #6
bcsaller
thanks for the review, pushing the updates. https://codereview.appspot.com/7327045/diff/3001/app/app.js File app/app.js (right): https://codereview.appspot.com/7327045/diff/3001/app/app.js#newcode381 app/app.js:381: // Null-queue ...
11 years, 2 months ago (2013-02-14 20:42:24 UTC) #7
bcsaller
Please take a look.
11 years, 2 months ago (2013-02-14 20:45:47 UTC) #8
bcsaller
Please take a look.
11 years, 2 months ago (2013-02-15 14:06:47 UTC) #9
bcsaller
There was an issue with the login-mask renaming that I somehow missed in the merge, ...
11 years, 2 months ago (2013-02-15 14:10:12 UTC) #10
gary.poster
Hi Ben. This is a very impressive branch. In terms of usability, I think we ...
11 years, 2 months ago (2013-02-15 18:19:40 UTC) #11
jeff.pihach
This looks great! I just have a couple small comments :-) https://codereview.appspot.com/7327045/diff/16001/app/assets/javascripts/routing.js File app/assets/javascripts/routing.js (right): ...
11 years, 2 months ago (2013-02-18 17:12:47 UTC) #12
matthew.scott
Just a quick FYI. https://codereview.appspot.com/7327045/diff/16001/app/assets/javascripts/routing.js File app/assets/javascripts/routing.js (right): https://codereview.appspot.com/7327045/diff/16001/app/assets/javascripts/routing.js#newcode90 app/assets/javascripts/routing.js:90: console.log('URL namespace without path'); On ...
11 years, 2 months ago (2013-02-18 17:48:00 UTC) #13
benji
Non-full review comments about trim function. https://codereview.appspot.com/7327045/diff/16001/app/assets/javascripts/routing.js File app/assets/javascripts/routing.js (right): https://codereview.appspot.com/7327045/diff/16001/app/assets/javascripts/routing.js#newcode5 app/assets/javascripts/routing.js:5: function _trim(s, char, ...
11 years, 2 months ago (2013-02-18 20:00:06 UTC) #14
jeff.pihach
> Building regexes programmatically requires escaping the inputs. > > For example, what if I ...
11 years, 2 months ago (2013-02-18 21:22:10 UTC) #15
gary.poster
Data: * Trim is available in recent JS, but it only trims whitespace: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/Trim * ...
11 years, 2 months ago (2013-02-19 13:21:59 UTC) #16
bcsaller
On 2013/02/15 18:19:40, gary.poster wrote: > In terms of usability, I think we need a ...
11 years, 2 months ago (2013-02-20 04:18:47 UTC) #17
bcsaller
Thanks, I've included the minors, I didn't change to the regex because of the escaping. ...
11 years, 2 months ago (2013-02-20 04:23:10 UTC) #18
bcsaller
Please take a look.
11 years, 2 months ago (2013-02-20 04:24:51 UTC) #19
jeff.pihach
Looks good! I just wanted to add a comment for a future enhancement. https://codereview.appspot.com/7327045/diff/26001/app/app.js File ...
11 years, 2 months ago (2013-02-20 14:39:46 UTC) #20
matthew.scott
Land as is - looks good to me and works well. Thanks for the branch!
11 years, 2 months ago (2013-02-20 16:06:48 UTC) #21
bcsaller
11 years, 2 months ago (2013-02-20 16:36:16 UTC) #22
*** Submitted:

Namespace aware routing

Add namespace aware routing to app. This is forward looking. It adds support
for namespaced urls where these are defined as /:ns:/urlFragment/:ns2:/etc.

Each namespace in the url will be preserved and dispatched to accordingly.

Middleware should only fire once for a given request.

R=gary.poster, matthew.scott, jeff.pihach, benji
CC=
https://codereview.appspot.com/7327045
Sign in to reply to this message.

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