questions and comments ;) http://codereview.appspot.com/4650073/diff/1/MoinMoin/app.py File MoinMoin/app.py (right): http://codereview.appspot.com/4650073/diff/1/MoinMoin/app.py#newcode175 MoinMoin/app.py:175: index_dir=app.cfg.index_dir I would prefer that ...
13 years, 4 months ago
(2011-07-05 21:22:02 UTC)
#1
http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/indexing.py#newcode312 MoinMoin/storage/backends/indexing.py:312: def update_item_whoosh(self, meta): the other methods are using "metas" ...
13 years, 4 months ago
(2011-07-06 08:02:04 UTC)
#4
http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/indexing.py#newcode320 MoinMoin/storage/backends/indexing.py:320: async_writer.add_document(**meta) On 2011/07/06 08:02:04, ThomasWaldmann wrote: > if doc_number: ...
13 years, 4 months ago
(2011-07-06 08:41:32 UTC)
#5
http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/ind...
File MoinMoin/storage/backends/indexing.py (right):
http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/ind...
MoinMoin/storage/backends/indexing.py:320: async_writer.add_document(**meta)
On 2011/07/06 08:02:04, ThomasWaldmann wrote:
> if doc_number:
> delete...
> add...
>
> and wasn't there some update... call just to do that?
update_document just do the same things
http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/ind...
MoinMoin/storage/backends/indexing.py:491: yield (doc[MTIME], mountpoint +
doc[NAME], doc["rev_no"])
On 2011/07/06 08:02:04, ThomasWaldmann wrote:
> result is not compatible with the other history implementation, you should at
> least add a comment about that you left out rev_metas from the tuple.
I removed rev_metas because it isn't using, also I think what doc[MTIME] should
be removed too for same reason
13 years, 4 months ago
(2011-07-06 08:54:09 UTC)
#6
http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/ind...
File MoinMoin/storage/backends/indexing.py (right):
http://codereview.appspot.com/4650073/diff/5001/MoinMoin/storage/backends/ind...
MoinMoin/storage/backends/indexing.py:491: yield (doc[MTIME], mountpoint +
doc[NAME], doc["rev_no"])
On 2011/07/06 08:41:32, Michael Mayorov wrote:
> On 2011/07/06 08:02:04, ThomasWaldmann wrote:
> > result is not compatible with the other history implementation, you should
at
> > least add a comment about that you left out rev_metas from the tuple.
>
> I removed rev_metas because it isn't using, also I think what doc[MTIME]
should
> be removed too for same reason
If you create methods that mirror some existing methods, you use exactly the
same API for them. If you think something needs global changes, add a TODO for
it and give the precise reasons. But you don't create an inconsistent API.
some comments http://codereview.appspot.com/4650073/diff/11001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/11001/MoinMoin/storage/backends/indexing.py#newcode77 MoinMoin/storage/backends/indexing.py:77: # an item was created with the ...
13 years, 4 months ago
(2011-07-06 16:02:48 UTC)
#7
http://codereview.appspot.com/4650073/diff/20001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/20001/MoinMoin/storage/backends/indexing.py#newcode457 MoinMoin/storage/backends/indexing.py:457: Yield ready-to-use history raw data for this backend. Typo, ...
13 years, 4 months ago
(2011-07-07 05:19:10 UTC)
#11
http://codereview.appspot.com/4650073/diff/20001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/20001/MoinMoin/storage/backends/indexing.py#newcode431 MoinMoin/storage/backends/indexing.py:431: with self.index_object.all_revisions_index.searcher() as all_revs_searcher: i don't think there is ...
13 years, 4 months ago
(2011-07-07 08:38:16 UTC)
#12
http://codereview.appspot.com/4650073/diff/14002/MoinMoin/script/maint/index.py File MoinMoin/script/maint/index.py (right): http://codereview.appspot.com/4650073/diff/14002/MoinMoin/script/maint/index.py#newcode158 MoinMoin/script/maint/index.py:158: how about just showing repr(rev)?
13 years, 4 months ago
(2011-07-07 09:34:25 UTC)
#13
http://codereview.appspot.com/4650073/diff/14002/MoinMoin/script/maint/index.py File MoinMoin/script/maint/index.py (right): http://codereview.appspot.com/4650073/diff/14002/MoinMoin/script/maint/index.py#newcode158 MoinMoin/script/maint/index.py:158: On 2011/07/07 09:34:25, ThomasWaldmann wrote: > how about just ...
13 years, 4 months ago
(2011-07-07 13:03:22 UTC)
#14
http://codereview.appspot.com/4650073/diff/14002/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4650073/diff/14002/MoinMoin/storage/backends/indexing.py#newcode390 MoinMoin/storage/backends/indexing.py:390: # but other revisions has old name. why did ...
13 years, 4 months ago
(2011-07-07 21:09:28 UTC)
#16
Issue 4650073: WhooshIndex object creation at at start up, implemented some functions for working with indexes
Created 13 years, 4 months ago by Michael Mayorov
Modified 13 years, 4 months ago
Reviewers: Reimar Bauer, ThomasWaldmann
Base URL:
Comments: 44