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

Issue 207040043: Support retrieving bundles from charm store v4.

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 2 months ago by frankban
Modified:
9 years, 2 months ago
Reviewers:
rharding, mp+251156, matthew.scott
Visibility:
Public.

Description

Support retrieving bundles from charm store v4. This branch implements the ability to deploy bundles from the new charm store, retrieving them with the v4 API. Also introduce the new preferred bundle id spelling, i.e. reflecting jujucharms.com paths, like "mediawiki-single" or "u/who/bundle-name". The old "bundle:basket/name" identifiers are still supported but deprecated. Deploying a bundle by specifying a directory containing the YAML file is instead not supported anymore. Ok, after this brief summary let me take two lines to really apologize for the huge diff. While I was there, I refactored some historical inconsistencies (e.g. models.Charm really being just a charm or bundle reference), and I also improved the bundle model API so that the work is done in the model and not in manage as before. There are a lot of tests too, and some documentation. Nonetheless, let me say sorry again, this is really too much stuff. With this branch Juju Quickstart is quite ready for the v4 world. The "deploy bundle" API call to the GUI server still uses the legacy format, but the ugliness of being backward compatible with namespaced bundles is very restrained and implemented in private logic in the bundles model module. Tests: `make check`. QA: run `devenv/bin/juju-quickstart` to deploy new style and old style bundles, with both version 3 and 4 formats. Note that version 3 can only be provided with arbitrary URLs or local files. Thanks a lot! https://code.launchpad.net/~frankban/juju-quickstart/jujucharms-bundles/+merge/251156 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 8

Patch Set 2 : Support retrieving bundles from charm store v4. #

Patch Set 3 : Support retrieving bundles from charm store v4. #

Patch Set 4 : Support retrieving bundles from charm store v4. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1521 lines, -940 lines) Patch
M HACKING.rst View 1 chunk +2 lines, -2 lines 0 comments Download
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M quickstart/__init__.py View 1 chunk +1 line, -1 line 0 comments Download
M quickstart/app.py View 4 chunks +19 lines, -10 lines 0 comments Download
M quickstart/juju.py View 1 chunk +3 lines, -3 lines 0 comments Download
M quickstart/jujutools.py View 4 chunks +22 lines, -21 lines 0 comments Download
M quickstart/manage.py View 12 chunks +63 lines, -90 lines 0 comments Download
M quickstart/models/bundles.py View 1 chunk +300 lines, -88 lines 0 comments Download
M quickstart/models/references.py View 2 chunks +191 lines, -70 lines 0 comments Download
M quickstart/netutils.py View 1 chunk +2 lines, -2 lines 0 comments Download
M quickstart/settings.py View 2 chunks +4 lines, -7 lines 0 comments Download
M quickstart/tests/functional/test_functional.py View 1 chunk +1 line, -1 line 0 comments Download
M quickstart/tests/helpers.py View 2 chunks +8 lines, -21 lines 0 comments Download
M quickstart/tests/models/test_bundles.py View 1 chunk +384 lines, -196 lines 0 comments Download
M quickstart/tests/models/test_references.py View 1 chunk +386 lines, -184 lines 0 comments Download
M quickstart/tests/test_app.py View 13 chunks +50 lines, -32 lines 0 comments Download
M quickstart/tests/test_juju.py View 3 chunks +14 lines, -11 lines 0 comments Download
M quickstart/tests/test_jujutools.py View 3 chunks +38 lines, -28 lines 0 comments Download
M quickstart/tests/test_manage.py View 9 chunks +30 lines, -172 lines 0 comments Download
M tox.ini View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8
frankban
Please take a look.
9 years, 2 months ago (2015-02-26 19:50:00 UTC) #1
rharding
Thanks for this branch. It looks really solid and loving the new features. I'm not ...
9 years, 2 months ago (2015-02-27 03:00:10 UTC) #2
frankban
Please take a look. https://codereview.appspot.com/207040043/diff/1/HACKING.rst File HACKING.rst (right): https://codereview.appspot.com/207040043/diff/1/HACKING.rst#newcode228 HACKING.rst:228: juju quickstart -e local mediawiki-single ...
9 years, 2 months ago (2015-02-27 09:39:58 UTC) #3
rharding
LGTM with the feedback thanks Francesco!
9 years, 2 months ago (2015-02-27 12:33:18 UTC) #4
matthew.scott
LGTM - thanks for this, I think it's a great cleanup and implementation of the ...
9 years, 2 months ago (2015-02-27 18:22:41 UTC) #5
frankban
Please take a look.
9 years, 2 months ago (2015-02-27 18:41:46 UTC) #6
frankban
*** Submitted: Support retrieving bundles from charm store v4. This branch implements the ability to ...
9 years, 2 months ago (2015-03-02 09:24:38 UTC) #7
frankban
9 years, 2 months ago (2015-03-02 09:29:25 UTC) #8
Thanks a lot for the reviews!
Sign in to reply to this message.

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