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

Issue 28520044: Pass the bundle id when deploying.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by bac
Modified:
10 years, 5 months ago
Reviewers:
frankban, matthew.scott, mp+195686
Visibility:
Public.

Description

Pass the bundle id when deploying. If bundle: URL is used, pass the bundle id when deploying so Charmworld can increment the counter. https://code.launchpad.net/~bac/juju-quickstart/pass-bundleid/+merge/195686 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 11

Patch Set 2 : Pass the bundle id when deploying. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -22 lines) Patch
A [revision details] View 1 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 2 chunks +2 lines, -2 lines 0 comments Download
M quickstart/juju.py View 1 chunk +3 lines, -1 line 0 comments Download
M quickstart/manage.py View 1 5 chunks +11 lines, -6 lines 0 comments Download
M quickstart/tests/test_app.py View 3 chunks +8 lines, -4 lines 0 comments Download
M quickstart/tests/test_juju.py View 1 1 chunk +14 lines, -0 lines 0 comments Download
M quickstart/tests/test_manage.py View 1 2 chunks +5 lines, -4 lines 0 comments Download
M quickstart/tests/test_utils.py View 1 chunk +7 lines, -3 lines 0 comments Download
M quickstart/utils.py View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 6
bac
Please take a look.
10 years, 5 months ago (2013-11-18 22:52:50 UTC) #1
bac
To QA: Observe http://staging.jujucharms.com/bundle/~jorge/wordpress/wordpress-simple and note download count. juju switch ec2 juju bootstrap make deploy ...
10 years, 5 months ago (2013-11-18 22:54:41 UTC) #2
matthew.scott
Code LGTM, no QA
10 years, 5 months ago (2013-11-19 00:00:53 UTC) #3
frankban
Nice branch Brad, thank you! LGTM with minors/optional changes. Will QA in a minute. https://codereview.appspot.com/28520044/diff/1/quickstart/manage.py ...
10 years, 5 months ago (2013-11-19 10:29:58 UTC) #4
frankban
On 2013/11/18 22:54:41, bac wrote: > To QA: > Observe http://staging.jujucharms.com/bundle/%7Ejorge/wordpress/wordpress-simple > and note download ...
10 years, 5 months ago (2013-11-19 10:42:23 UTC) #5
bac
10 years, 5 months ago (2013-11-19 12:27:04 UTC) #6
*** Submitted:

Pass the bundle id when deploying.

If bundle: URL is used, pass the bundle id when deploying so Charmworld can
increment the counter.

R=matthew.scott, frankban
CC=
https://codereview.appspot.com/28520044

https://codereview.appspot.com/28520044/diff/1/quickstart/manage.py
File quickstart/manage.py (right):

https://codereview.appspot.com/28520044/diff/1/quickstart/manage.py#newcode156
quickstart/manage.py:156: - bundle_yaml: the YAML encoded contents of the
bundle.
I will.  I chose not to since bundle_id is derived and not part of the
command-line options.  But it won't hurt.

https://codereview.appspot.com/28520044/diff/1/quickstart/manage.py#newcode171
quickstart/manage.py:171: '2) a URL (starting with "http://" or "https://") to a
YAML/JSON '
I went with a variant of the first and removed the 'or' on all but the
penultimate, i.e.

1) a,
2) b,
3) c, or
4) d.

https://codereview.appspot.com/28520044/diff/1/quickstart/tests/test_juju.py
File quickstart/tests/test_juju.py (right):

https://codereview.appspot.com/28520044/diff/1/quickstart/tests/test_juju.py#...
quickstart/tests/test_juju.py:189: # The deploy bundle call is properly
generated when passing a name.
Good catch.

https://codereview.appspot.com/28520044/diff/1/quickstart/tests/test_manage.py
File quickstart/tests/test_manage.py (right):

https://codereview.appspot.com/28520044/diff/1/quickstart/tests/test_manage.p...
quickstart/tests/test_manage.py:345: 'bundle_id': None,
On 2013/11/19 10:29:59, frankban wrote:
> It would be nice to have this list alphabetically ordered (and this means
> charm_url was already in the wrong place). <shrug>

Done.

https://codereview.appspot.com/28520044/diff/1/quickstart/tests/test_manage.p...
quickstart/tests/test_manage.py:372: bundle='/my/bundle/file.yaml',
bundle_yaml='mybundle: contents',
Well you only did it once.

Any time I see a typo I grep the entire project to see if it snuck in elsewhere
but that was the only one.
Sign in to reply to this message.

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