Modify

Opened 11 years ago

Closed 10 years ago

#11486 closed defect (fixed)

searching in tickets search in wiki as well even if unchecked

Reported by: kubes@… Owned by: Roberto Longobardi
Priority: normal Component: TestManagerForTracPlugin
Severity: normal Keywords: search
Cc: Trac Release: 1.0

Description

When I search term in trac adn I check only Test Case and everythink else is unchecked, the search results contains wiki pages.

but should not, because it is unchecked.

Attachments (0)

Change History (3)

comment:1 Changed 11 years ago by kubes@…

I suppose that needed change should be done in:

svn://svn.code.sf.net/p/testman4trac/code/tracgenericclass/tracgenericclass/model.py near line 1024

 def get_search_results(self, req, terms, filters):
        """
        Currently delegates the search to the Wiki module. 
        """
        for result in WikiModule(self.env).get_search_results(req, terms, ('wiki',)):
            yield result

should change into:

 def get_search_results(self, req, terms, filters):
        """
        Currently delegates the search to the Wiki module. 
        """
        for result in WikiModule(self.env).get_search_results(req, terms, ('wiki',)):
            //pseudocode, i am not sure the about the exact syntax
            if result wiki page name start with "TC":
                   yield result

It is very painfull if there are hunderts or thousands of wikipages.

comment:2 Changed 10 years ago by Roberto Longobardi

Status: newaccepted

comment:3 Changed 10 years ago by Roberto Longobardi

Resolution: fixed
Status: acceptedclosed

Fixed in 1.8.2.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Roberto Longobardi.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.