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

Issue 194030043: Refactor view parameters.

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 4 months ago by frankban
Modified:
9 years, 4 months ago
Reviewers:
bac, mp+245753, martin.hilton
Visibility:
Public.

Description

Refactor view parameters. Implement a Params object used to store common view parameters. This way it will be easier to add parameters in the future (e.g. one callable to remove stale jenv files). New code include the params module and a fix to the code handling the listing of jenv files in the index view: now the header message is only displayed if jenv files actually exist. The rest of the diff is mechanical: i.e. replacing the single view arguments with the params named tuple. Tests: `make check`. QA: Use the quickstart interactive session and check everything works ok. https://code.launchpad.net/~frankban/juju-quickstart/views-params/+merge/245753 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Refactor view parameters. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -172 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
A quickstart/cli/params.py View 1 chunk +51 lines, -0 lines 0 comments Download
M quickstart/cli/views.py View 14 chunks +70 lines, -74 lines 0 comments Download
M quickstart/manage.py View 2 chunks +11 lines, -4 lines 0 comments Download
A quickstart/tests/cli/test_params.py View 1 chunk +87 lines, -0 lines 0 comments Download
M quickstart/tests/cli/test_views.py View 38 chunks +71 lines, -90 lines 0 comments Download
M quickstart/tests/test_manage.py View 2 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 6
frankban
Please take a look.
9 years, 4 months ago (2015-01-07 15:45:29 UTC) #1
bac
LGTM. No QA yet. https://codereview.appspot.com/194030043/diff/1/quickstart/cli/views.py File quickstart/cli/views.py (right): https://codereview.appspot.com/194030043/diff/1/quickstart/cli/views.py#newcode314 quickstart/cli/views.py:314: # and supposed to be ...
9 years, 4 months ago (2015-01-07 15:58:26 UTC) #2
martin.hilton
LGTM
9 years, 4 months ago (2015-01-07 16:32:12 UTC) #3
bac
QA-OK. I simply ran quickstart and launched a local provider. Everything came up as expected.
9 years, 4 months ago (2015-01-07 16:39:39 UTC) #4
frankban
*** Submitted: Refactor view parameters. Implement a Params object used to store common view parameters. ...
9 years, 4 months ago (2015-01-07 16:48:34 UTC) #5
frankban
9 years, 4 months ago (2015-01-07 16:57:57 UTC) #6
Thanks 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