Modify

Opened 12 months ago

Closed 2 weeks ago

#11486 closed defect (fixed)

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 (3)

comment:1 Changed 12 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 5 months ago by seccanj

  • Status changed from new to accepted

comment:3 Changed 2 weeks ago by seccanj

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in 1.8.2.

Add Comment

Modify Ticket

Action
as closed The owner will remain seccanj.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.