Modify

Opened 8 months ago

Last modified 4 weeks ago

#11486 accepted defect

searching in tickets search in wiki as well even if unchecked

Reported by: kubes@… Owned by: seccanj
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 (2)

comment:1 Changed 8 months 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 4 weeks ago by seccanj

  • Status changed from new to accepted

Add Comment

Modify Ticket

Action
as accepted .
Author


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

 
Note: See TracTickets for help on using tickets.