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

Issue 6423063: userheads

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by breton
Modified:
11 years, 9 months ago
Reviewers:
evgsyr, Reimar Bauer, thomas.j.waldmann
Visibility:
Public.

Description

userheads

Patch Set 1 #

Total comments: 41

Patch Set 2 : tests and fixes #

Total comments: 5

Patch Set 3 : #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -251 lines) Patch
M MoinMoin/apps/frontend/views.py View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M MoinMoin/constants/keys.py View 1 2 2 chunks +11 lines, -10 lines 1 comment Download
M MoinMoin/items/__init__.py View 1 2 3 chunks +4 lines, -9 lines 0 comments Download
M MoinMoin/script/maint/index.py View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M MoinMoin/storage/backends/stores.py View 1 2 chunks +4 lines, -4 lines 0 comments Download
M MoinMoin/storage/middleware/_tests/test_indexing.py View 1 2 19 chunks +134 lines, -64 lines 2 comments Download
M MoinMoin/storage/middleware/_tests/test_protecting.py View 1 3 chunks +12 lines, -8 lines 0 comments Download
M MoinMoin/storage/middleware/indexing.py View 1 2 21 chunks +133 lines, -132 lines 4 comments Download
M MoinMoin/storage/middleware/protecting.py View 1 2 3 chunks +6 lines, -7 lines 0 comments Download
M MoinMoin/storage/middleware/routing.py View 1 1 chunk +6 lines, -8 lines 0 comments Download
M MoinMoin/templates/history.html View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M MoinMoin/user.py View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9
eSyr
http://codereview.appspot.com/6423063/diff/1/MoinMoin/storage/backends/stores.py File MoinMoin/storage/backends/stores.py (right): http://codereview.appspot.com/6423063/diff/1/MoinMoin/storage/backends/stores.py#newcode145 MoinMoin/storage/backends/stores.py:145: def retrieve_branch(self, userheadid): retrieve_userhead? http://codereview.appspot.com/6423063/diff/1/MoinMoin/storage/middleware/indexing.py File MoinMoin/storage/middleware/indexing.py (right): http://codereview.appspot.com/6423063/diff/1/MoinMoin/storage/middleware/indexing.py#newcode855 ...
11 years, 10 months ago (2012-07-20 12:51:16 UTC) #1
ThomasJWaldmann
well, just some low-level comments. basically I don't know exactly what you are implementing PRECISELY. ...
11 years, 10 months ago (2012-07-20 13:14:29 UTC) #2
Reimar Bauer
some comments http://codereview.appspot.com/6423063/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (left): http://codereview.appspot.com/6423063/diff/1/MoinMoin/items/__init__.py#oldcode514 MoinMoin/items/__init__.py:514: action=unicode(action), why is unicode() needed? http://codereview.appspot.com/6423063/diff/1/MoinMoin/items/__init__.py File ...
11 years, 10 months ago (2012-07-20 14:16:33 UTC) #3
breton
On 2012/07/20 13:14:29, ThomasJWaldmann wrote: > well, just some low-level comments. > > basically I ...
11 years, 10 months ago (2012-07-21 02:28:21 UTC) #4
breton
http://codereview.appspot.com/6423063/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (left): http://codereview.appspot.com/6423063/diff/1/MoinMoin/items/__init__.py#oldcode514 MoinMoin/items/__init__.py:514: action=unicode(action), On 2012/07/20 14:16:34, Reimar Bauer wrote: > why ...
11 years, 10 months ago (2012-07-21 02:28:57 UTC) #5
breton
http://codereview.appspot.com/6423063/diff/1/MoinMoin/storage/middleware/indexing.py File MoinMoin/storage/middleware/indexing.py (right): http://codereview.appspot.com/6423063/diff/1/MoinMoin/storage/middleware/indexing.py#newcode771 MoinMoin/storage/middleware/indexing.py:771: userhead = self._document(idx_name=USERHEADS, userid=user.itemid) Also, I forgot to use ...
11 years, 10 months ago (2012-07-21 09:58:15 UTC) #6
ThomasJWaldmann
some answers. btw: unit tests? http://codereview.appspot.com/6423063/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6423063/diff/1/MoinMoin/items/__init__.py#newcode196 MoinMoin/items/__init__.py:196: rev = item.get_revision(CURRENT) hmmm, ...
11 years, 10 months ago (2012-07-22 10:45:28 UTC) #7
ThomasJWaldmann
as an additional general comment: you are giving MASTER_BRANCH and ALL_REVS as param values rather ...
11 years, 9 months ago (2012-07-31 09:28:41 UTC) #8
ThomasJWaldmann
11 years, 9 months ago (2012-08-07 20:29:50 UTC) #9
some comments.

found your new patchset late as you didn't answer any comment of the last one.
thus you only find ne patchset when manually comparing date of last own comment
to date of latest patchset...

http://codereview.appspot.com/6423063/diff/9001/MoinMoin/storage/middleware/_...
File MoinMoin/storage/middleware/_tests/test_indexing.py (right):

http://codereview.appspot.com/6423063/diff/9001/MoinMoin/storage/middleware/_...
MoinMoin/storage/middleware/_tests/test_indexing.py:69: def
test_nonmaster_branch(self):
On 2012/07/31 09:28:41, ThomasJWaldmann wrote:
> what precisely is this test testing?

no comment?

http://codereview.appspot.com/6423063/diff/14004/MoinMoin/constants/keys.py
File MoinMoin/constants/keys.py (right):

http://codereview.appspot.com/6423063/diff/14004/MoinMoin/constants/keys.py#n...
MoinMoin/constants/keys.py:63: UH_ITEMID = BRANCH_ITEMID = "itemid"
why not just using ITEMID then, if it is the same string anyway (and also the
same meaning)?

http://codereview.appspot.com/6423063/diff/14004/MoinMoin/storage/middleware/...
File MoinMoin/storage/middleware/_tests/test_indexing.py (right):

http://codereview.appspot.com/6423063/diff/14004/MoinMoin/storage/middleware/...
MoinMoin/storage/middleware/_tests/test_indexing.py:402: def
test_current_user_get(self):
for non-trivial tests add a short docstring and described what exactly they
test.

http://codereview.appspot.com/6423063/diff/14004/MoinMoin/storage/middleware/...
MoinMoin/storage/middleware/_tests/test_indexing.py:435: flaskg.user = User()
why is this needed?

http://codereview.appspot.com/6423063/diff/14004/MoinMoin/storage/middleware/...
File MoinMoin/storage/middleware/indexing.py (right):

http://codereview.appspot.com/6423063/diff/14004/MoinMoin/storage/middleware/...
MoinMoin/storage/middleware/indexing.py:715: def generate_branchname(self,
itemid):
what exactly means itemid here?

http://codereview.appspot.com/6423063/diff/14004/MoinMoin/storage/middleware/...
MoinMoin/storage/middleware/indexing.py:723: branch =
self._document(idx_name=BRANCHES, **{BRANCH_DST: itemid})
i don't understand itemid usage here.

http://codereview.appspot.com/6423063/diff/14004/MoinMoin/storage/middleware/...
MoinMoin/storage/middleware/indexing.py:1004: q = {UH_USER: userid, UH_ITEMID:
self.itemid,BRANCH_TYPE: USERHEAD}
a blank missing

http://codereview.appspot.com/6423063/diff/14004/MoinMoin/storage/middleware/...
MoinMoin/storage/middleware/indexing.py:1130: 
in general, code is hard to follow/understand, i suggest you add more docs.
Sign in to reply to this message.

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