Skip to content

1.0.0-alpha0 parent/child query parameters not format()ted correctly #2504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
christopherthielen opened this issue Jan 31, 2016 · 4 comments
Closed
Assignees
Milestone

Comments

@christopherthielen
Copy link
Contributor

https://plnkr.co/edit/eP09lKTynJjblgTyprvZ?p=preview

Failing unit test:

 it("should handle additional query parameters from concated matchers", function() {
      var m = new UrlMatcher('/parent?qParent');
      var m2 = m.append(new UrlMatcher('/child?qChild'));
      var formatted = m2.format({ qParent: 'parent', qChild: 'child' });

      expect (formatted).toBe('/parent/child?qParent=parent&qChild=child');
    })```
@pavel-blagodov
Copy link

Could you tell me the approximate date of 1.0.0-alpha.1release?

christopherthielen added a commit that referenced this issue Jan 31, 2016
@christopherthielen
Copy link
Contributor Author

Could be as soon as next week. Are you looking for any fix to alpha0 in particular?

@pavel-blagodov
Copy link

Yes, I'm. It would be great if this issue could be fixed asap.

christopherthielen added a commit that referenced this issue Feb 14, 2016
Build arrays of path parameters and query parameters for the entire path of UrlMatchers.  Map/reduce them, then concatenate at the end.
closes ##2504
@christopherthielen
Copy link
Contributor Author

Fixed in 86e07ef

ns-codereview pushed a commit to couchbase/ns_server that referenced this issue Feb 17, 2016
We have to use latest ui router because it has transitionsProvider,
we need transitionsProvider in order to properly handle transition
to the state with rbac permissions
https://github.com/angular-ui/ui-router/releases/tag/1.0.0alpha0

Old ui-router is deprecated
https://github.com/angular-ui/ui-router/releases/tag/0.2.17

Process of migrating is pretty smooth, although there are couple bugs
angular-ui/ui-router#2504
angular-ui/ui-router#2503

Change-Id: I67fc81adecf5ebf9cf294171d5583f8555696cee
Reviewed-on: http://review.couchbase.org/59318
Reviewed-by: Dave Finlay <[email protected]>
Tested-by: Dave Finlay <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants