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

Issue 23740043: Add an API for bundle metrics

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by benji
Modified:
10 years, 6 months ago
Reviewers:
bac, rharding, mp+194564
Visibility:
Public.

Description

Add an API for bundle metrics https://code.launchpad.net/~benji/charmworld/bundle-deploy-metric-api/+merge/194564 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -22 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M charmworld/models.py View 5 chunks +26 lines, -17 lines 1 comment Download
M charmworld/testing/factory.py View 2 chunks +5 lines, -1 line 2 comments Download
M charmworld/tests/test_models.py View 7 chunks +26 lines, -4 lines 1 comment Download
M charmworld/views/api/__init__.py View 3 chunks +37 lines, -0 lines 5 comments Download
A charmworld/views/tests/test_metrics_api.py View 1 chunk +77 lines, -0 lines 4 comments Download

Messages

Total messages: 5
benji
Please take a look.
10 years, 6 months ago (2013-11-08 18:36:26 UTC) #1
benji
https://codereview.appspot.com/23740043/diff/1/charmworld/models.py File charmworld/models.py (right): https://codereview.appspot.com/23740043/diff/1/charmworld/models.py#newcode1 charmworld/models.py:1: # Copyright 2012, 2013 Marco Ceppi, Canonical Ltd. This ...
10 years, 6 months ago (2013-11-08 18:38:32 UTC) #2
bac
LGTMB https://codereview.appspot.com/23740043/diff/1/charmworld/testing/factory.py File charmworld/testing/factory.py (right): https://codereview.appspot.com/23740043/diff/1/charmworld/testing/factory.py#newcode365 charmworld/testing/factory.py:365: makeBundle = make_bundle You sure you'd not like ...
10 years, 6 months ago (2013-11-08 19:03:29 UTC) #3
rharding
+1 on brad's point of the tuple. https://codereview.appspot.com/23740043/diff/1/charmworld/views/api/__init__.py File charmworld/views/api/__init__.py (right): https://codereview.appspot.com/23740043/diff/1/charmworld/views/api/__init__.py#newcode521 charmworld/views/api/__init__.py:521: if metric_name ...
10 years, 6 months ago (2013-11-08 20:03:11 UTC) #4
benji
10 years, 6 months ago (2013-11-12 15:59:42 UTC) #5
I forgot to publish my draft comments on Friday.  I know everyone has been
waiting patiently for them.

https://codereview.appspot.com/23740043/diff/1/charmworld/testing/factory.py
File charmworld/testing/factory.py (right):

https://codereview.appspot.com/23740043/diff/1/charmworld/testing/factory.py#...
charmworld/testing/factory.py:365: makeBundle = make_bundle
On 2013/11/08 19:03:29, bac wrote:
> You sure you'd not like to just fix them?

I'd like to... but I figured a mechanical branch later would be better.

https://codereview.appspot.com/23740043/diff/1/charmworld/views/api/__init__.py
File charmworld/views/api/__init__.py (right):

https://codereview.appspot.com/23740043/diff/1/charmworld/views/api/__init__....
charmworld/views/api/__init__.py:511: bundle_metric_types = ('deployments')
Good eye.  Fixed.

https://codereview.appspot.com/23740043/diff/1/charmworld/views/api/__init__....
charmworld/views/api/__init__.py:521: if metric_name not in
self.bundle_metric_types:
On 2013/11/08 19:03:29, bac wrote:
> Huh, it works anyway.

Well, I learned something new today.

https://codereview.appspot.com/23740043/diff/1/charmworld/views/tests/test_me...
File charmworld/views/tests/test_metrics_api.py (right):

https://codereview.appspot.com/23740043/diff/1/charmworld/views/tests/test_me...
charmworld/views/tests/test_metrics_api.py:2: 
On 2013/11/08 19:03:29, bac wrote:
> del

Done.

https://codereview.appspot.com/23740043/diff/1/charmworld/views/tests/test_me...
charmworld/views/tests/test_metrics_api.py:20: 
On 2013/11/08 19:03:29, bac wrote:
> Thank you for not piling onto the other test files.

Yeah, we need to start breaking those files apart.  A few are way over the
weight limit.
Sign in to reply to this message.

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