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

Issue 6457091: Index code cleanup (Closed)

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

Description

Index code cleanup

Patch Set 1 #

Total comments: 2

Patch Set 2 : eliminate two-pass process in flatenning the index #

Total comments: 18

Patch Set 3 : issues addressed #

Total comments: 8

Patch Set 4 : #

Patch Set 5 : fix errorneous "other items" filtering #

Total comments: 1

Patch Set 6 : Revert to namedtuple implementation of IndexEntry; improved comments and variable naming #

Patch Set 7 : Fix item.rename and test cases #

Patch Set 8 : trivial pep8 fix #

Patch Set 9 : Introduce IndexForm for later extending; always show filtering action bar #

Total comments: 9

Patch Set 10 : Issues addressed #

Patch Set 11 : test case; a minor comment change #

Patch Set 12 : reworked comment #

Total comments: 1

Patch Set 13 : Rework comment, again :) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -226 lines) Patch
M MoinMoin/apps/frontend/views.py View 1 2 3 4 5 6 7 8 3 chunks +27 lines, -34 lines 0 comments Download
M MoinMoin/items/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +118 lines, -109 lines 0 comments Download
M MoinMoin/items/_tests/test_Item.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +32 lines, -61 lines 0 comments Download
M MoinMoin/templates/index.html View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -11 lines 0 comments Download
M MoinMoin/templates/utils.html View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
M MoinMoin/themes/__init__.py View 1 2 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 16
xiaq
http://codereview.appspot.com/6457091/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6457091/diff/1/MoinMoin/items/__init__.py#newcode101 MoinMoin/items/__init__.py:101: self.meta[NAME] = self.item.name This used to give DummyRev a ...
11 years, 9 months ago (2012-08-08 04:00:11 UTC) #1
xiaq
http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py#newcode430 MoinMoin/items/__init__.py:430: def make_flat_index(self, subitems): ignore delta above this line except ...
11 years, 9 months ago (2012-08-10 02:50:52 UTC) #2
ThomasJWaldmann
http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py#newcode134 MoinMoin/items/__init__.py:134: class IndexEntry(object): namedtuple? http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py#newcode139 MoinMoin/items/__init__.py:139: self.hassubitem = hassubitem 0 ...
11 years, 9 months ago (2012-08-10 10:14:54 UTC) #3
Reimar Bauer
look at create right for those "new" items http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py#newcode437 MoinMoin/items/__init__.py:437: and ...
11 years, 9 months ago (2012-08-12 06:55:09 UTC) #4
ThomasJWaldmann
http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py#newcode437 MoinMoin/items/__init__.py:437: and 'application/x.nonexistent' contenttype is created. On 2012/08/12 06:55:09, Reimar ...
11 years, 9 months ago (2012-08-12 18:18:18 UTC) #5
xiaq
http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6457091/diff/4001/MoinMoin/items/__init__.py#newcode134 MoinMoin/items/__init__.py:134: class IndexEntry(object): On 2012/08/10 10:14:54, ThomasJWaldmann wrote: > namedtuple? ...
11 years, 9 months ago (2012-08-13 02:22:23 UTC) #6
xiaq
http://codereview.appspot.com/6457091/diff/1008/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6457091/diff/1008/MoinMoin/apps/frontend/views.py#newcode362 MoinMoin/apps/frontend/views.py:362: @frontend.route('/+show/<itemname:item_name>') ignore delta above this line. http://codereview.appspot.com/6457091/diff/1008/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py ...
11 years, 9 months ago (2012-08-16 01:42:37 UTC) #7
ThomasJWaldmann
http://codereview.appspot.com/6457091/diff/1008/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6457091/diff/1008/MoinMoin/apps/frontend/views.py#newcode348 MoinMoin/apps/frontend/views.py:348: # The second form only accpets GET since modifying ...
11 years, 8 months ago (2012-08-16 08:05:34 UTC) #8
xiaq
http://codereview.appspot.com/6457091/diff/1008/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6457091/diff/1008/MoinMoin/apps/frontend/views.py#newcode348 MoinMoin/apps/frontend/views.py:348: # The second form only accpets GET since modifying ...
11 years, 8 months ago (2012-08-17 09:09:12 UTC) #9
ThomasJWaldmann
11:11 xiaq$ ThomasWaldmann: http://codereview.appspot.com/6457091/ (index cleanup) updated. the only geniune change from patch set 3 ...
11 years, 8 months ago (2012-08-17 17:53:03 UTC) #10
xiaq
On 2012/08/17 17:53:03, ThomasJWaldmann wrote: > 11:11 xiaq$ ThomasWaldmann: http://codereview.appspot.com/6457091/ (index > cleanup) updated. the ...
11 years, 8 months ago (2012-08-18 05:46:05 UTC) #11
ThomasJWaldmann
http://codereview.appspot.com/6457091/diff/5014/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6457091/diff/5014/MoinMoin/apps/frontend/views.py#newcode759 MoinMoin/apps/frontend/views.py:759: selected_groups.remove(u'submit') why was this removed? http://codereview.appspot.com/6457091/diff/4016/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): ...
11 years, 8 months ago (2012-08-19 14:09:00 UTC) #12
xiaq
I've fixed the trivial things in patch set 10. http://codereview.appspot.com/6457091/diff/4016/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6457091/diff/4016/MoinMoin/items/__init__.py#newcode430 MoinMoin/items/__init__.py:430: ...
11 years, 8 months ago (2012-08-19 14:33:29 UTC) #13
xiaq
I modified TestItem.testIndex to test for make_flat_index and filter_index separately. (question: Should the trivial helper ...
11 years, 8 months ago (2012-08-21 18:00:19 UTC) #14
ThomasJWaldmann
http://codereview.appspot.com/6457091/diff/4016/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6457091/diff/4016/MoinMoin/items/__init__.py#newcode456 MoinMoin/items/__init__.py:456: # Find the *direct* subitem that is the ancestor ...
11 years, 8 months ago (2012-08-21 19:02:57 UTC) #15
ThomasJWaldmann
11 years, 8 months ago (2012-08-22 14:10:06 UTC) #16
http://codereview.appspot.com/6457091/diff/16001/MoinMoin/items/__init__.py
File MoinMoin/items/__init__.py (right):

http://codereview.appspot.com/6457091/diff/16001/MoinMoin/items/__init__.py#n...
MoinMoin/items/__init__.py:462: # are its ancestors.
i didn't mean an example for what an ancestor is, but rather for what subitems
your are finding here. giving an example for that, you can have a much shorter,
much clearer comment.
Sign in to reply to this message.

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