You are here: Foswiki>Tasks Web>Item9464 (31 Jan 2018, GeorgeClark)Edit Attach

Item9464: Improve capabilities of SEARCH $changes parameter

pencil
Priority: Enhancement
Current State: Being Worked On
Released In: 2.2.0
Target Release: minor
Applies To: Engine
Component: FoswikiUsability, SEARCH
Branches: master Item14288 Item14380 Item14537
Reported By: VickiBrown
Waiting For:
Last Change By: GeorgeClark
In Formatted Search
$changes(n)      Summary of changes between latest rev and rev n 

That's not as helpful as it might be. I rarely know what n should be. I'm more likely to want to see changes between latest and 2 back, or 3 back...

I'd like to see support added for this, perhaps
$changes(n)      Summary of changes between latest rev and rev n; 
                 if n is a negative number, show summary of changes between latest
                 rev and "n" revisions ago.

So if I say $changes(-2) and latest is rev 19, show changes between 19 and 17; if latest is 5, changes between 5 and 3, and so on.

That would let me do this:

%SEARCH{".*"  type="regex" nosearch="on" noheader="on" 
   newline="%BR%" order="modified" limit="20" reverse="on" 
   format="| [[$web.$topic][$topic]] | r $rev | $date -- $wikiname | $changes | $changes(-2) | "}%

-- VickiBrown - 12 Aug 2010

Excellent point. It seems like a trivial enhancement, but it probably needs a feature proposal.

Set as enhancement

For what it's worth, this horrible monster could be a work-around:

%STARTSECTION{"search"}%
%SEARCH{"1"
   type="query"
   nonoise="on"
   newline="%BR%"
   order="modified"
   limit="20"
   reverse="on" 
   format="| [[$web.$topic][$topic]] | r $rev | $date -- $wikiname | $changes | Since rev($percntINCLUDE{      \"%TOPIC%\"      section=\"rev\"      web=\"$web\"      topic=\"$topic\"      n=\"-2\"   }$percnt): $changes($percntINCLUDE{      \"%TOPIC%\"      section=\"rev\"      web=\"$web\"      topic=\"$topic\"      n=\"-2\"   }$percnt) | Since rev(5): $changes(5) |"}%
%ENDSECTION{"search"}%

%STARTSECTION{"rev"}%%CALC{"$SUM(%REVINFO{
   "$rev"
   web="%web%"
   topic="%topic%"
}% , %n%)"}%%ENDSECTION{"rev"}%

Test

WebNotify r 177 27 Jun 2024 - 06:05 -- UnknownUser * BobKrzaczek: Item614
- * BramVanOosterhout: Item1087 Item1099 Item12553 Item12554 It...
+ * BramVanOosterhout: Item1087 Item1099 Item12553 Item12554 It...
* BrendanB: Item8533
* ChipsInChief: Item13873
+ * ChrUllrich: Item15167
Since rev(10): * BobKrzaczek: Item614
- * BramVanOosterhout: Item1087 Item1099 Item12553 Item12554 It...
+ * BramVanOosterhout: Item1087 Item1099 Item12553 Item12554 It...
* BrendanB: Item8533
* ChipsInChief: Item13873
+ * ChrUllrich: Item15167
Since rev(5): Tasks.WebNotify
-MAKETEXT{"This is a subscription service to be automatically notified...
+This topic is automatically generated by a script running on the serv...
+script analyses all the 'WaitingFor' and 'ReportedBy' fields in repor...
+generates this WebNotify.
- * Main.TWikiGuest example #64;your.company
WebStatistics r 2242 27 Jun 2024 - 00:59 -- AdminUser }%
- Jun 2024 210935 5 0 14161 AllOutStandingItems 2567 ...
+ Jun 2024 225181 5 0 14931 AllOutStandingItems 2671 ...
May 2024 249984 68 0 17139 AllOutStandingItems 3069 ...
Since rev(10): Tasks.WebStatistics %IF{ "istopic '.Default'" then="$percentINCLUDE{$quot.Default$quot}$percent" else="$percentINCLUDE{$quot.Default$quot}$percent" }% ... Since rev(5): }%
- Jan 2018 94759 150 1 3149 WebHome 653 ItemSummaryQu...
+ Jun 2024 225181 5 0 14931 AllOutStandingItems 2671 ...
+ May 2024 249984 68 0 17139 AllOutStandingItems 3069 ...
+ Apr 2024 325533 42 0 14216 AllOutStandingItems 13154 ...
+ Mar 2024 229549 3 0 12351 AllOutStandingItems 5913 ...
Item15331 r 3 21 Jun 2024 - 15:31 -- JohnElbourne %USERSWEB%.MichaelDaum 04 Jun 2024
+



+Great thank you
+


+ %USERSWEB%.JohnElbourne 21 Jun 2024
%COMMENT%
Since rev(1): Tasks.Item15331 Recently my installation of Foswiki (version 2.1.7) has failed to send emails to a postfix server, due to the specification of an old version of ... Since rev(5): Tasks.Item15331 Recently my installation of Foswiki (version 2.1.7) has failed to send emails to a postfix server, due to the specification of an old version of ...
Item15235 r 11 21 May 2024 - 11:53 -- MichaelDaum %USERSWEB%.KennethLavrsen 07 May 2024
+



+This one needs somebody with access to a Safari browser, plus a bit o...
+


+ %USERSWEB%.MichaelDaum 21 May 2024
%COMMENT%
Since rev(9): Tasks.Item15235 The safari web browser displays the sidebar at the bottom of the page as of Foswiki 2.1.8. Main.WyattChilders 29 Dec 2023 Can you share a scr... Since rev(5): %USERSWEB%.WyattChilders 08 Jan 2024
+



+I can confirm this bug. It was a change to Safari that caused this as...
+


+ %USERSWEB%.KennethLavrsen 06 May 2024
+


Item15330 r 1 21 May 2024 - 11:52 -- MichaelDaum Tasks.Item15330 Main.MichaelDaum 21 May 2024 Since rev(-1): Tasks.Item15330 Main.MichaelDaum 21 May 2024 Since rev(5): Tasks.Item15330 Main.MichaelDaum 21 May 2024
Item13883 r 239 21 May 2024 - 11:50 -- MichaelDaum %META:FIELD{name="WaitingFor" title="WaitingFor" value=""}%
-%META:FIELD{name="Checkins" value="%25GITREF%7bdistro:a628fb3a133f%7d...
+%META:FIELD{name="Checkins" value="%25GITREF%7bdistro:a628fb3a133f%7d...
%META:FIELD{name="TargetRelease" title="TargetRelease" value="minor"}...
%META:FIELD{name="trunkCheckins" title="trunkCheckins" value=""}%
-%META:FIELD{name="masterCheckins" value="%25GITREF%7bdistro:c994933c2...
Since rev(10): Tasks.Item13883 Since rev(5): Tasks.Item13883
- Main.GeorgeClark 03 Dec 2015
-


%COMMENT%
%META:FIELD{name="WaitingFor" title="WaitingFor" value=""}%
-%META:FIELD{name="Checkins" value="%25GITREF%7bdistro:a628fb3a133f%7d...
Item15329 r 1 21 May 2024 - 11:44 -- MichaelDaum Tasks.Item15329 Main.MichaelDaum 21 May 2024 Since rev(-1): Tasks.Item15329 Main.MichaelDaum 21 May 2024 Since rev(5): Tasks.Item15329 Main.MichaelDaum 21 May 2024
Item15229 r 2 21 May 2024 - 11:42 -- MichaelDaum %META:FIELD{name="WaitingFor" title="WaitingFor" value=""}%
-%META:FIELD{name="Checkins" title="Checkins" value="%25GITREF%7bdistr...
+%META:FIELD{name="Checkins" title="Checkins" value="%25GITREF%7bdistr...
%META:FIELD{name="TargetRelease" title="TargetRelease" value="patch"}...
%META:FIELD{name="trunkCheckins" title="trunkCheckins" value=""}%
-%META:FIELD{name="masterCheckins" title="masterCheckins" value="%25GI...
Since rev(0): Tasks.Item15229 The set of modules to be combined can be configured freely. This massively reduces the number of http requests per page. Main.MichaelDaum 17 ... Since rev(5): Tasks.Item15229 The set of modules to be combined can be configured freely. This massively reduces the number of http requests per page. Main.MichaelDaum 17 ...
Item15328 r 1 21 May 2024 - 11:37 -- MichaelDaum Tasks.Item15328 Main.MichaelDaum 21 May 2024 Since rev(-1): Tasks.Item15328 Main.MichaelDaum 21 May 2024 Since rev(5): Tasks.Item15328 Main.MichaelDaum 21 May 2024
Item15327 r 1 21 May 2024 - 11:33 -- MichaelDaum Tasks.Item15327 Main.MichaelDaum 21 May 2024 Since rev(-1): Tasks.Item15327 Main.MichaelDaum 21 May 2024 Since rev(5): Tasks.Item15327 Main.MichaelDaum 21 May 2024
Item15326 r 1 21 May 2024 - 11:31 -- MichaelDaum Tasks.Item15326 as per https://github.com/desandro/imagesloaded/blob/master/imagesloaded.js Main.MichaelDaum 21 May 2024 Since rev(-1): Tasks.Item15326 as per https://github.com/desandro/imagesloaded/blob/master/imagesloaded.js Main.MichaelDaum 21 May 2024 Since rev(5): Tasks.Item15326 as per https://github.com/desandro/imagesloaded/blob/master/imagesloaded.js Main.MichaelDaum 21 May 2024
Item15325 r 1 21 May 2024 - 11:28 -- MichaelDaum Tasks.Item15325 ... that is usable in dark mode as well Main.MichaelDaum 21 May 2024 Since rev(-1): Tasks.Item15325 ... that is usable in dark mode as well Main.MichaelDaum 21 May 2024 Since rev(5): Tasks.Item15325 ... that is usable in dark mode as well Main.MichaelDaum 21 May 2024
Item15324 r 1 21 May 2024 - 11:15 -- MichaelDaum Tasks.Item15324 Main.MichaelDaum 21 May 2024 Since rev(-1): Tasks.Item15324 Main.MichaelDaum 21 May 2024 Since rev(5): Tasks.Item15324 Main.MichaelDaum 21 May 2024
Item13691 r 13 21 May 2024 - 11:10 -- MichaelDaum %USERSWEB%.JozefMojzis 14 Sep 2015
+



+The theme will be made customizable using css variables. See Item15...
+


+ %USERSWEB%.MichaelDaum 21 May 2024
%COMMENT%
Since rev(10): Tasks.Item13691 In the http://foswiki.org/System/JQueryUI is a line: See System.JQueryThemeSwitcher to view available themes. Unfortunately the topic (and the wh... Since rev(5): Tasks.Item13691
- Missing an important topic
-


In the http://foswiki.org/System/JQueryUI is a line:
%USERSWEB%.JozefMojzis 10 Sep 2015
+


Item15323 r 1 21 May 2024 - 11:08 -- MichaelDaum Tasks.Item15323 * don't modify $_ in map {} * use numeric comparison for numeric values * use exlicit notation for octal values as in oct(600) * use ... Since rev(-1): Tasks.Item15323 * don't modify $_ in map {} * use numeric comparison for numeric values * use exlicit notation for octal values as in oct(600) * use ... Since rev(5): Tasks.Item15323 * don't modify $_ in map {} * use numeric comparison for numeric values * use exlicit notation for octal values as in oct(600) * use ...
Item15322 r 1 03 May 2024 - 07:46 -- MichaelDaum Tasks.Item15322 Browser locales, those that you get from navigator.language may either be a 2 char expression or a 5 char one, e.g. en, en US, en GB etc. However... Since rev(-1): Tasks.Item15322 Browser locales, those that you get from navigator.language may either be a 2 char expression or a 5 char one, e.g. en, en US, en GB etc. However... Since rev(5): Tasks.Item15322 Browser locales, those that you get from navigator.language may either be a 2 char expression or a 5 char one, e.g. en, en US, en GB etc. However...
Item15321 r 1 01 May 2024 - 14:46 -- MichaelDaum Tasks.Item15321 Let's have 5306 more icons. See https://tabler.io/icons Main.MichaelDaum 01 May 2024 Since rev(-1): Tasks.Item15321 Let's have 5306 more icons. See https://tabler.io/icons Main.MichaelDaum 01 May 2024 Since rev(5): Tasks.Item15321 Let's have 5306 more icons. See https://tabler.io/icons Main.MichaelDaum 01 May 2024
Item15320 r 1 30 Apr 2024 - 11:30 -- MichaelDaum Tasks.Item15320 QMPlugin isn't release yet. Still plugins see integrations early. Main.MichaelDaum 30 Apr 2024 Since rev(-1): Tasks.Item15320 QMPlugin isn't release yet. Still plugins see integrations early. Main.MichaelDaum 30 Apr 2024 Since rev(5): Tasks.Item15320 QMPlugin isn't release yet. Still plugins see integrations early. Main.MichaelDaum 30 Apr 2024
Item15319 r 1 30 Apr 2024 - 11:25 -- MichaelDaum Tasks.Item15319 ... as attachments are cleaned up too early. Main.MichaelDaum 30 Apr 2024 Since rev(-1): Tasks.Item15319 ... as attachments are cleaned up too early. Main.MichaelDaum 30 Apr 2024 Since rev(5): Tasks.Item15319 ... as attachments are cleaned up too early. Main.MichaelDaum 30 Apr 2024
Item15318 r 1 30 Apr 2024 - 11:22 -- MichaelDaum Tasks.Item15318 Main.MichaelDaum 30 Apr 2024 Since rev(-1): Tasks.Item15318 Main.MichaelDaum 30 Apr 2024 Since rev(5): Tasks.Item15318 Main.MichaelDaum 30 Apr 2024

Rev test

10

-- PaulHarvey - 13 Aug 2010

I'm not sure that "horrible monster" is doing what you think. The results are similar to what I got using CALC. No + or - anywhere in the output is suspicious. I don't think it's actually a diff.

-- VickiBrown - 13 Aug 2010

I don't quite agree - the $percentINCLUDE is correctly calculating the rev number -2 - however I would agree that the $changes() token isn't very useful in its output; probably, that's a bug

-- PaulHarvey - 14 Aug 2010

Okay, now it should be fixed (the example, that is)

-- PaulHarvey - 17 Aug 2010

I've raised Item9502 for the crash this example causes on 1.1 - separate from the issues that Vicki raises.

-- SvenDowideit - 19 Aug 2010
 
Topic revision: r12 - 31 Jan 2018, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy