Modify

Opened 4 years ago

Closed 4 months ago

#7582 closed enhancement (fixed)

[patch] Filter result pages

Reported by: vaclav.cejka@… Owned by: glinders
Priority: normal Component: WantedPagesMacro
Severity: normal Keywords: patch
Cc: itamarost, glinders Trac Release: 0.11

Description

Among really wanted pages, many other CamelCase strings either in original basic wiki, or i.e. function names or class names in ticket description appear as false wanted page. It might be helpful to specify regex as an parameter to filter only wanted page of some pattern, and thus eliminate like missing TracXXX etc. pages.

Attachments (1)

wantedpagesplugin-filter.patch (2.1 KB) - added by netjunki 3 years ago.
filter patch for WantedPagesPlugin

Download all attachments as: .zip

Change History (11)

comment:1 Changed 3 years ago by netjunki

  • Keywords patch added
  • Summary changed from Filter result pages to [patch] Filter result pages

I've created a patch for this. It adds a "filter=<filter>" argument to the macro. Here's an example:

[[WantedPages(show_referrers,filter=.*?Trac.*|Sandbox|.*?Wiki.*|Inter.*)]]

The pages matched by the filter are not displayed.

Changed 3 years ago by netjunki

filter patch for WantedPagesPlugin

comment:2 Changed 3 years ago by itamarost

  • Cc itamarost added; anonymous removed

Thanks for the patch!

Just started using it, and looks like it does the job.

Any chance it gets into trunk?

comment:3 follow-up: Changed 3 years ago by netjunki

Well... It looks like jfrancis (the current maintainer) hasn't been over here in a while. So someone would need to adopt the plugin and merge the patch. I wouldn't be against doing this myself... Just won't have time until after the new year.

comment:4 Changed 11 months ago by rjollos

  • Owner changed from jfrancis to rjollos
  • Status changed from new to assigned

comment:5 Changed 11 months ago by rjollos

  • Component changed from WantedPagesPlugin to WantedPagesMacro

Renaming plugin from WantedPagesPlugin to WantedPagesMacro.

comment:6 Changed 11 months ago by rjollos

  • Cc glinders added

#10819 closed as a duplicate, with the specific request to exclude the Trac documentation.

comment:7 in reply to: ↑ 3 Changed 11 months ago by rjollos

Replying to netjunki:

Well... It looks like jfrancis (the current maintainer) hasn't been over here in a while. So someone would need to adopt the plugin and merge the patch. I wouldn't be against doing this myself... Just won't have time until after the new year.

See #11491.

comment:8 Changed 11 months ago by rjollos

  • Owner changed from rjollos to glinders

Reassigning tickets to glinders, assuming adoption request in #11491 will be approved.

comment:9 Changed 4 months ago by glinders

Added ignoring referring pages using regex, based on the patch supplied above.

Updated Wiki page WantedPagesMacro to include the new option.

See revision r14076 for details.

comment:10 Changed 4 months ago by glinders

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

Included patch in the macro, see comment:9

Add Comment

Modify Ticket

Action
as closed The owner will remain glinders.
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.