Modify

Opened 6 years ago

Last modified 6 weeks ago

#3634 new defect

[Patch] update-index is not work with repository change

Reported by: who.mobile@… Owned by:
Priority: low Component: RepoSearchPlugin
Severity: trivial Keywords:
Cc: Trac Release: 0.11

Description

With trac 0.11, it looks update-index script re-indesh when revision change.
adding indexer.reindex() solve problem, in my case.

$ cat update-index
#!/usr/bin/env python

import sys
from trac.env import Environment

assert len(sys.argv) == 2, "\n\nusage: %s <trac-environment>\n\nRe-index repository." % sys.argv[0]

e = Environment(sys.argv[1])
from tracreposearch.indexer import Indexer
indexer = Indexer(e)
indexer.reindex()
$

Attachments (0)

Change History (5)

comment:1 Changed 5 years ago by rjollos

  • Owner changed from athomas to rjollos

Reassigning ticket after changing maintainer of plugin.

comment:2 Changed 5 years ago by rjollos

  • Summary changed from update-index is not work with repository change to [Patch] update-index is not work with repository change

comment:3 Changed 4 years ago by rjollos

It appears that it shouldn't be necessary to call indexer.reindex() because that is done in the constructor when you instantiate the Index object, so there must be some other problem here.

comment:4 Changed 3 years ago by rjollos

Hello,

I took over maintainership of this plugin from athomas some time ago. There is a significant amount of work to do on this plugin, and I don't foresee having the time to do it all.

helend has written the TracSuposePlugin, which seems like a much better solution. Rather than writing the repository search functionality from scratch, a Trac interface to an existing repository search tool has been created. Rather than throwing more effort at this plugin, I'd prefer to help helend with enhancements to the TracSuposePlugin, or spend my time on other Trac plugin projects altogether.

I'd like to get some feedback and hear if anyone knows of a compelling reason to continue this project rather than moving to the TracSuposePlugin. Is there functionality in this plugin that doesn't exist in the TracSuposePlugin? I'm open to hearing all opinions and suggestions.

I'll leave these tickets open for about a week, but in all likelihood will close all of them and deprecate the plugin.

Thanks for your time,

  • Ryan

comment:5 Changed 6 weeks ago by rjollos

  • Owner rjollos deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.