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

Issue 17780043: Refactor Model implementation details out of views.py and into models.py. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by iannucci
Modified:
11 years, 10 months ago
Reviewers:
Andi, M-A, abarth
CC:
codereview-list_googlegroups.com
Visibility:
Public.

Description

Refactor Model implementation details out of views.py and into models.py. This is in preparation for the upload rewrite planned here: https://docs.google.com/a/chromium.org/document/d/1XNucijypKyfiUUMIrHn9Bxvz-mFHUhTqgddIirUl73Y/edit# This change should have no semantic effect on the behavior of Rietveld.

Patch Set 1 #

Patch Set 2 : Make delta calculation work again #

Patch Set 3 : Remove testing comment from Makefile #

Total comments: 22

Patch Set 4 : Address comments, add broken code back #

Total comments: 2

Patch Set 5 : Final comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -266 lines) Patch
M codereview/feeds.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M codereview/models.py View 1 2 3 4 5 chunks +228 lines, -2 lines 0 comments Download
M codereview/views.py View 1 2 3 18 chunks +62 lines, -260 lines 0 comments Download
M templates/diff.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M templates/patch.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M templates/patchset.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8
iannucci
PTAL. Refactor only, no behavior changes intended. Instance running on testfoo-codereview.appspot.com I plan to make ...
11 years, 10 months ago (2013-10-27 10:20:43 UTC) #1
M-A
https://codereview.appspot.com/17780043/diff/40001/codereview/models.py File codereview/models.py (right): https://codereview.appspot.com/17780043/diff/40001/codereview/models.py#newcode14 codereview/models.py:14: """App Engine data model (schema) definition for Rietveld.""" add ...
11 years, 10 months ago (2013-10-28 15:25:26 UTC) #2
abarth
https://codereview.appspot.com/17780043/diff/40001/codereview/urls.py File codereview/urls.py (left): https://codereview.appspot.com/17780043/diff/40001/codereview/urls.py#oldcode74 codereview/urls.py:74: (r'^api/(\d+)/(\d+)/draft_comments$', 'api_draft_comments'), On 2013/10/28 15:25:27, M-A wrote: > Adam ...
11 years, 10 months ago (2013-10-28 16:16:47 UTC) #3
abarth
https://codereview.appspot.com/17780043/diff/40001/codereview/views.py File codereview/views.py (left): https://codereview.appspot.com/17780043/diff/40001/codereview/views.py#oldcode3225 codereview/views.py:3225: return HttpTextResponse('An error occurred.', status=500) On 2013/10/27 10:20:43, iannucci ...
11 years, 10 months ago (2013-10-28 16:18:40 UTC) #4
iannucci
added the broken code back, too. https://codereview.appspot.com/17780043/diff/40001/codereview/models.py File codereview/models.py (right): https://codereview.appspot.com/17780043/diff/40001/codereview/models.py#newcode14 codereview/models.py:14: """App Engine data ...
11 years, 10 months ago (2013-10-29 00:09:26 UTC) #5
M-A
lgtm https://codereview.appspot.com/17780043/diff/60001/codereview/models.py File codereview/models.py (right): https://codereview.appspot.com/17780043/diff/60001/codereview/models.py#newcode559 codereview/models.py:559: if patch.delta_calculated: patches.extend( p for p in patchset.patches ...
11 years, 10 months ago (2013-10-29 00:20:30 UTC) #6
iannucci
https://codereview.appspot.com/17780043/diff/60001/codereview/models.py File codereview/models.py (right): https://codereview.appspot.com/17780043/diff/60001/codereview/models.py#newcode559 codereview/models.py:559: if patch.delta_calculated: On 2013/10/29 00:20:30, M-A wrote: > patches.extend( ...
11 years, 10 months ago (2013-10-29 00:29:08 UTC) #7
iannucci
11 years, 10 months ago (2013-10-29 00:31:47 UTC) #8
Message was sent while issue was closed.
Committed as
https://code.google.com/p/rietveld/source/detail?r=b289d7eb758be0f76fbb7c56bf...

Will merge chromium shortly.
Sign in to reply to this message.

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