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

Issue 15210050: Refactory the proof api to be it's own module.

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

Description

Refactory the proof api to be it's own module. - Break out the proof api bits into a new api module vs the same api file. - Move tests and fix to match - Remove the model in the lib bits and try to keep things in views/models. https://code.launchpad.net/~rharding/charmworld/proof-config2/+merge/192243 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : Refactory the proof api to be it's own module. #

Patch Set 3 : Refactory the proof api to be it's own module. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -407 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M charmworld/lib/proof.py View 2 chunks +0 lines, -33 lines 0 comments Download
M charmworld/lib/tests/test_proof.py View 3 chunks +2 lines, -72 lines 1 comment Download
M charmworld/models.py View 4 chunks +17 lines, -1 line 1 comment Download
M charmworld/tests/test_models.py View 3 chunks +39 lines, -0 lines 0 comments Download
M charmworld/views/api/__init__.py View 5 chunks +4 lines, -132 lines 0 comments Download
A charmworld/views/api/proof.py View 1 chunk +145 lines, -0 lines 1 comment Download
M charmworld/views/tests/test_api.py View 3 chunks +4 lines, -169 lines 2 comments Download
A charmworld/views/tests/test_proof.py View 1 chunk +175 lines, -0 lines 1 comment Download
A charmworld/views/utils.py View 1 chunk +33 lines, -0 lines 1 comment Download

Messages

Total messages: 5
rharding
Reviewer comments https://codereview.appspot.com/15210050/diff/1/charmworld/lib/proof.py File charmworld/lib/proof.py (left): https://codereview.appspot.com/15210050/diff/1/charmworld/lib/proof.py#oldcode7 charmworld/lib/proof.py:7: ) model code moved from the lib ...
10 years, 6 months ago (2013-10-22 21:27:34 UTC) #1
rharding
Please take a look.
10 years, 6 months ago (2013-10-22 21:32:56 UTC) #2
rharding
Please take a look.
10 years, 6 months ago (2013-10-22 22:02:45 UTC) #3
bac
LGTM with some requested changes. Some more refactoring to create api/charms.py and api/bundles.py will be ...
10 years, 6 months ago (2013-10-22 22:40:33 UTC) #4
rharding
10 years, 6 months ago (2013-10-22 22:55:29 UTC) #5
Thanks for the review. Updated and pushing. One comment below on why I'm not
going to remove the api3 tests on the api2 run below.

https://codereview.appspot.com/15210050/diff/210001/charmworld/views/tests/te...
File charmworld/views/tests/test_api.py (right):

https://codereview.appspot.com/15210050/diff/210001/charmworld/views/tests/te...
charmworld/views/tests/test_api.py:875: class TestAPI2Bundles(TestAPIBundles,
API2Mixin, TestBundleProof):
On 2013/10/22 22:40:33, bac wrote:
> I know this is already existing but why is there a TestAPI2Bundles?  APIv2 has
> no bundles.

I honestly wasn't sure why things were in both. I *think* it's because API2 is
created via extending API3. So we have to make sure tests work on both since
they're really a nested object.
Sign in to reply to this message.

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