Merge lp:~rharding/charmworld/move-bundle-url into lp:charmworld
Status: | Merged |
---|---|
Approved by: | Richard Harding |
Approved revision: | 445 |
Merged at revision: | 442 |
Proposed branch: | lp:~rharding/charmworld/move-bundle-url |
Merge into: | lp:charmworld |
Diff against target: |
255 lines (+44/-25) 5 files modified
charmworld/routes.py (+4/-4) charmworld/views/api/__init__.py (+14/-5) charmworld/views/tests/test_api.py (+14/-10) charmworld/views/tests/test_bundles.py (+6/-6) charmworld/views/tests/test_misc.py (+6/-0) |
To merge this branch: | bzr merge lp:~rharding/charmworld/move-bundle-url |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Gui Bot | continuous-integration | Approve | |
Charmworld Developers | Pending | ||
Review via email: mp+193851@code.launchpad.net |
Commit message
Update bundle user url to be /bundle/$id-bits.
- Update the api to provide that url as part of the bundle metadata so the gui
can link to it as a valid quickstart end point.
- Drive by to skip the test that fails with the known bug issue.
- Rename the TestApi2 and 3 back to not have the Z since we're just skipping
vs working around the issue.
https:/
R=benji
Description of the change
Update bundle user url to be /bundle/$id-bits.
- Update the api to provide that url as part of the bundle metadata so the gui
can link to it as a valid quickstart end point.
- Drive by to skip the test that fails with the known bug issue.
- Rename the TestApi2 and 3 back to not have the Z since we're just skipping
vs working around the issue.
Reviewers: mp+193851_ code.launchpad. net,
Message:
Please take a look.
Description:
Update bundle user url to be /bundle/$id-bits.
- Update the api to provide that url as part of the bundle metadata so
the gui
can link to it as a valid quickstart end point.
- Drive by to skip the test that fails with the known bug issue.
- Rename the TestApi2 and 3 back to not have the Z since we're just
skipping
vs working around the issue.
https:/ /code.launchpad .net/~rharding/ charmworld/ move-bundle- url/+merge/ 193851
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/21370044/
Affected files (+43, -21 lines): routes. py views/api/ __init_ _.py views/bundles. py views/tests/ test_api. py views/tests/ test_bundles. py views/tests/ test_misc. py
A [revision details]
M charmworld/
M charmworld/
M charmworld/
M charmworld/
M charmworld/
M charmworld/
Index: [revision details] 20131104185142- yu1k77h95eemcw1 g
=== 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: tarmac-
+New revision: <email address hidden>
Index: charmworld/ routes. py routes. py' routes. py 2013-10-29 19:59:01 +0000 routes. py 2013-11-04 20:52:52 +0000
=== modified file 'charmworld/
--- charmworld/
+++ charmworld/
@@ -54,13 +54,13 @@
# Personal Bundles add_route( "personal- bundle- json-revision" , /bundle/ {basket} /{rev}/ {bundle} /json") ~{owner} /{basket} /{rev}/ {bundle} /json") add_route( "personal- bundle- json", /bundle/ {basket} /{bundle} /json") ~{owner} /{basket} /{bundle} /json") add_route( "personal- bundle- revision" , /bundle/ {basket} /{rev}/ {bundle} ") ~{owner} /{basket} /{rev}/ {bundle} ") add_route( "personal- bundle" , /bundle/ {basket} /{bundle} ") ~{owner} /{basket} /{bundle} ")
config.
- "/~{owner}
+ "/bundle/
config.
- "/~{owner}
+ "/bundle/
config.
- "/~{owner}
+ "/bundle/
config.
- "/~{owner}
+ "/bundle/
# Official (promulgated) Bundles add_route( "official- bundle- json",
config.
Index: charmworld/ views/bundles. py views/bundles. py' views/bundles. py 2013-10-29 19:59:01 +0000 views/bundles. py 2013-11-04 20:52:52 +0000 service_ keys:
d[key] = v.get(key, u'')
=== modified file 'charmworld/
--- charmworld/
+++ charmworld/
@@ -40,7 +40,7 @@
for k, v in services.items():
d = dict(name=k)
for key in BundleDetail.
- if key != 'options':
+ if key != 'option':
# Flatten options.
Index: charmworld/ views/api/ __init_ _.py views/api/ __init_ _.py' views/api/ __init_ _.py 2013-10-24 22:04:01 +0000 views/api/ __init_ _.py 2013-11-04 20:52:52 +0000
=== modified file 'charmworld/
--- charmworld/
+++ charmworld/
@@ -156,10 +156,10 @@
}
@classmethod
bundle_ obj = Bun...
- def _bundle_result(cls, bundle, db):
+ def _bundle_result(cls, bundle, db, route_url):
"""Build standard metadata around a bundle search result."""