NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item11383 for general documentation changes for release 1.1.5. Use Item9693 for docu changes for release 2.0.

Item1946: actionsearch: negation of regular expressions for web or who

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Extension ActionTrackerPlugin  

Description

In many cases it's necessary to define negated expressions in ACTIONSEARCH, e.g.:
  1. for the web parameter: search all webs but {Sandbox, Trash, System}
  2. for the who parameter: look for all orphaned actions, i.e. the who field is "".

Negating the "=" by use of "!" doesn't seem to work here and all our efforts in searching fro how to negate a regex1, 2 weren't fruitful either.

We noticed that even in the plugin's documentation a rather dirty and not very failsafe hack to pick the webs of interest is used: web=[CEIMPSW].*

Using NOSEARCHALL for this task is not generally an option.

If there are ways to define the abovementioned examples, please let us know (and a hint in the documentation would be welcome). Else: regarding the web parameter one could think of a excludeweb parameter as well.

-- PhilippLeufke - 19 Aug 2009

UPDATED Regarding 1.: Just noticed that this can be found in the documentation. For everyone who is interested: web="(?!Sandbox|System|Trash|TWiki).*"

But still we have no clue how to look for orphaned tasks...

-- PhilippLeufke - 24 Aug 2009

Why can't you %ACTIONSEARCH{who=""}% ?

-- CrawfordCurrie - 05 Nov 2009

Good question. I thought someone could tell me... Just tested it once more, but it just results in an empty list, although there are orphaned tasks with attribute who="" in raw code.

Does it work for you?

-- PhilippLeufke - 05 Nov 2009

It does now.

-- CrawfordCurrie - 28 Jan 2011

ItemTemplate edit

Summary actionsearch: negation of regular expressions for web or who
ReportedBy PhilippLeufke, HolgerHain
Codebase 1.0.7
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component ActionTrackerPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:10626
TargetRelease n/a
ReleasedIn n/a
Topic revision: r6 - 28 Jan 2011 - 17:52:38 - CrawfordCurrie
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads