Modify

Opened 16 years ago

Last modified 12 months ago

#3634 new defect

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

Reported by: who.mobile@… Owned by: Alex Smith
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 (7)

comment:1 Changed 15 years ago by Ryan J Ollos

Owner: changed from Alec Thomas to Ryan J Ollos

Reassigning ticket after changing maintainer of plugin.

comment:2 Changed 15 years ago by Ryan J Ollos

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

comment:3 Changed 14 years ago by Ryan J Ollos

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 13 years ago by Ryan J Ollos

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 10 years ago by Ryan J Ollos

Owner: changed from Ryan J Ollos to anonymous

comment:6 Changed 12 months ago by Ryan J Ollos

Owner: changed from anonymous to Alex Smith
Status: newassigned

comment:7 Changed 12 months ago by Ryan J Ollos

Status: assignednew

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Alex Smith.

Add Comment


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

 
Note: See TracTickets for help on using tickets.