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 21 Jan 2022 - 23:05 -- UnknownUser * BobKrzaczek: Item614
- * BramVanOosterhout: Item1087 Item1099 Item12553 Item12554 It...
+ * BramVanOosterhout: Item1087 Item1099 Item12553 Item12554 It...
* BrendanB: Item8533
* ChristianHölzer: Item14856
- * ChristianKern: Item14765 Item14920 Item14921 Item14925
Since rev(175): * BobKrzaczek: Item614
- * BramVanOosterhout: Item1087 Item1099 Item12553 Item12554 It...
+ * BramVanOosterhout: Item1087 Item1099 Item12553 Item12554 It...
* BrendanB: Item8533
* ChristianHölzer: Item14856
- * ChristianKern: Item14765 Item14920 Item14921 Item14925
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
Item15062 r 2 21 Jan 2022 - 16:39 -- MichaelDaum %META:FIELD{name="Priority" title=" Priority " value="Enhancement"}
-%META:FIELD{name="CurrentState" title="CurrentState" value="Closed"}%
+%META:FIELD{name="CurrentState" title="CurrentState" value="Being Wor...
%META:FIELD{name="WaitingFor" title="WaitingFor" value=""}%
Since rev(0): Tasks.Item15062 placeholder for Item15061 Main.MichaelDaum 21 Jan 2022 Since rev(5): Tasks.Item15062 placeholder for Item15061 Main.MichaelDaum 21 Jan 2022
WebStatistics r 1355 21 Jan 2022 - 01:58 -- AdminUser }%
- Jan 2022 198618 19 0 14900 WebCreateNewTopic 2130 W...
+ Jan 2022 206904 19 0 15083 WebCreateNewTopic 2239 W...
Dec 2021 321275 16 0 18148 WebCreateNewTopic 3257 W...
Since rev(1353): 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...
+ Jan 2022 206904 19 0 15083 WebCreateNewTopic 2239 W...
+ Dec 2021 321275 16 0 18148 WebCreateNewTopic 3257 W...
+ Nov 2021 454800 40 0 44845 WebCreateNewTopic 3238 W...
+ Oct 2021 400072 17 0 25563 WebCreateNewTopic 3499 W...
Item15058 r 3 07 Jan 2022 - 17:36 -- MichaelDaum Tasks.Item15058 jquery modules that come with i18n definitions were added in this format: However any script tag with a src attribute is treated as a javascript ... Since rev(1): Tasks.Item15058 jquery modules that come with i18n definitions were added in this format: However any script tag with a src attribute is treated as a javascript ... Since rev(5): Tasks.Item15058 jquery modules that come with i18n definitions were added in this format: However any script tag with a src attribute is treated as a javascript ...
Item15060 r 1 05 Jan 2022 - 17:17 -- MichaelDaum Tasks.Item15060 This originates from NatEditPlugin which adds this validation rule on its own behalf. However we want to use this rule basically in any form to b... Since rev(-1): Tasks.Item15060 This originates from NatEditPlugin which adds this validation rule on its own behalf. However we want to use this rule basically in any form to b... Since rev(5): Tasks.Item15060 This originates from NatEditPlugin which adds this validation rule on its own behalf. However we want to use this rule basically in any form to b...
Item15059 r 1 05 Jan 2022 - 17:13 -- MichaelDaum Tasks.Item15059 Main.MichaelDaum 05 Jan 2022 Since rev(-1): Tasks.Item15059 Main.MichaelDaum 05 Jan 2022 Since rev(5): Tasks.Item15059 Main.MichaelDaum 05 Jan 2022
Item15057 r 3 05 Jan 2022 - 08:19 -- MichaelDaum %META:FIELD{name="Priority" title=" Priority " value="Normal"}%
-%META:FIELD{name="CurrentState" title="CurrentState" value="Confirmed...
+%META:FIELD{name="CurrentState" title="CurrentState" value="Waiting f...
%META:FIELD{name="WaitingFor" title="WaitingFor" value=""}%
Since rev(1): Tasks.Item15057 Main.MichaelDaum 03 Jan 2022 Unit tests need fixes .MichaelDaum 04 Jan 2022 Since rev(5): Tasks.Item15057 Main.MichaelDaum 03 Jan 2022 Unit tests need fixes .MichaelDaum 04 Jan 2022
Item15055 r 2 03 Jan 2022 - 05:14 -- BramVanOosterhout -Tasks.Item15055
+Tasks.Item15055
+%META:TOPICPARENT{name="PublishPlugin"}%
+ Main.BramVanOosterhout 27 Dec 2021
+


+The implementation of Item15053 publishes links like:
Since rev(0): Tasks.Item15055 Main.BramVanOosterhout 27 Dec 2021 The implementation of Item15053 publishes links like: * http://cdl/devwiki/pub/System/JQueryPlugin/... Since rev(5): Tasks.Item15055 Main.BramVanOosterhout 27 Dec 2021 The implementation of Item15053 publishes links like: * http://cdl/devwiki/pub/System/JQueryPlugin/...
Item15056 r 1 03 Jan 2022 - 05:13 -- BramVanOosterhout Tasks.Item15056 Main.BramVanOosterhout 03 Jan 2022 Line 605,606 in Publisher.pm # Force static context for all published topics Foswiki::Func::getCon... Since rev(-1): Tasks.Item15056 Main.BramVanOosterhout 03 Jan 2022 Line 605,606 in Publisher.pm # Force static context for all published topics Foswiki::Func::getCon... Since rev(5): Tasks.Item15056 Main.BramVanOosterhout 03 Jan 2022 Line 605,606 in Publisher.pm # Force static context for all published topics Foswiki::Func::getCon...
Item15054 r 3 19 Dec 2021 - 10:16 -- MichaelDaum %USERSWEB%.BramVanOosterhout 19 Dec 2021
+



+I think that instead of using a one time access token we need to come...
+


+ %USERSWEB%.MichaelDaum 19 Dec 2021
%COMMENT%
Since rev(1): Tasks.Item15054 ResetPassword or UserRegistration sends a one time access token to the user forcing them to change their password afterwards. However when this i... Since rev(5): Tasks.Item15054 ResetPassword or UserRegistration sends a one time access token to the user forcing them to change their password afterwards. However when this i...
Item15053 r 8 19 Dec 2021 - 05:17 -- BramVanOosterhout Main.BramVanOosterhout 21 Nov 2021
-Pushed to github. Package to be released 14 Dec 2021.
+Pushed to github. Package to be released 14 Dec 2021. Done 19 Dec.
%TOC%
%META:FIELD{name="Priority" title=" Priority " value="Normal"}%
-%META:FIELD{name="CurrentState" title="CurrentState" value="Being Wor...
Since rev(6): Tasks.Item15053 Main.BramVanOosterhout 21 Nov 2021 Pushed to github. Package to be released 14 Dec 2021. Done 19 Dec. PublishPlugin with copyexternal=0 tra... Since rev(5): Main.BramVanOosterhout 21 Nov 2021
+Pushed to github. Package to be released 14 Dec 2021. Done 19 Dec.
+


%TOC%
Making absolute references relative.
+ A third attempt (7 Dec 2021)
Item15052 r 3 19 Dec 2021 - 05:16 -- BramVanOosterhout %META:FIELD{name="Priority" title=" Priority " value="Normal"}%
-%META:FIELD{name="CurrentState" title="CurrentState" value="Being Wor...
+%META:FIELD{name="CurrentState" title="CurrentState" value="Closed"}%
-%META:FIELD{name="WaitingFor" title="WaitingFor" value="BramVanOoster...
+%META:FIELD{name="WaitingFor" title="WaitingFor" value=""}%
%META:FIELD{name="Checkins" title="Checkins" value=""}%
Since rev(1): Tasks.Item15052 Main.BramVanOosterhout 20 Nov 2021 Pushed to github. Package to be released 14 Dec 2021. The publishskin parameter insists on a single value.... Since rev(5): Tasks.Item15052 Main.BramVanOosterhout 20 Nov 2021 Pushed to github. Package to be released 14 Dec 2021. The publishskin parameter insists on a single value....
Item15051 r 3 19 Dec 2021 - 05:15 -- BramVanOosterhout Main.BramVanOosterhout 20 Nov 2021
-Pushed to github. Package to be released 14 Dec 2021.
+Pushed to github. Package to be released 14 Dec 2021. Done 19 Dec
The history topic created when the history option is set is not well ...
%META:FIELD{name="Priority" title=" Priority " value="Normal"}%
-%META:FIELD{name="CurrentState" title="CurrentState" value="Being Wor...
Since rev(1): Tasks.Item15051 Main.BramVanOosterhout 20 Nov 2021 Pushed to github. Package to be released 14 Dec 2021. Done 19 Dec The history topic created when the histo... Since rev(5): Tasks.Item15051 Main.BramVanOosterhout 20 Nov 2021 Pushed to github. Package to be released 14 Dec 2021. Done 19 Dec The history topic created when the histo...
Item15050 r 3 19 Dec 2021 - 05:14 -- BramVanOosterhout Main.BramVanOosterhout 20 Nov 2021
-Pushed to github. Package to be released 14 Dec 2021.
+Pushed to github. Package to be released 14 Dec 2021. Done 19 Dec.
Publishing a web/topic with the config topic like:
%META:FIELD{name="Priority" title=" Priority " value="Normal"}%
-%META:FIELD{name="CurrentState" title="CurrentState" value="Waiting f...
Since rev(1): Tasks.Item15050 Main.BramVanOosterhout 20 Nov 2021 Pushed to github. Package to be released 14 Dec 2021. Done 19 Dec. Publishing a web/topic with the config ... Since rev(5): Tasks.Item15050 Main.BramVanOosterhout 20 Nov 2021 Pushed to github. Package to be released 14 Dec 2021. Done 19 Dec. Publishing a web/topic with the config ...
Item15049 r 1 12 Nov 2021 - 08:03 -- MichaelDaum Tasks.Item15049 Regression during dev cycle. needs to be backwards compatible. Main.MichaelDaum 12 Nov 2021 Since rev(-1): Tasks.Item15049 Regression during dev cycle. needs to be backwards compatible. Main.MichaelDaum 12 Nov 2021 Since rev(5): Tasks.Item15049 Regression during dev cycle. needs to be backwards compatible. Main.MichaelDaum 12 Nov 2021
Item15038 r 2 09 Nov 2021 - 09:36 -- MichaelDaum %META:FIELD{name="Priority" title=" Priority " value="Normal"}%
-%META:FIELD{name="CurrentState" title="CurrentState" value="Confirmed...
+%META:FIELD{name="CurrentState" title="CurrentState" value="Waiting f...
%META:FIELD{name="WaitingFor" title="WaitingFor" value=""}%
Since rev(0): Tasks.Item15038 JQSelect2Contrib creates a hidden counterpart of the nice ui. However natedit does skip any validation for hidden form elements. It should still... Since rev(5): Tasks.Item15038 JQSelect2Contrib creates a hidden counterpart of the nice ui. However natedit does skip any validation for hidden form elements. It should still...
Item14963 r 6 09 Nov 2021 - 09:33 -- MichaelDaum Tasks.Item14963 fix some issues flagged by perlcritique as well Main.MichaelDaum 21 Oct 2020 Since rev(4): Tasks.Item14963 fix some issues flagged by perlcritique as well Main.MichaelDaum 21 Oct 2020 Since rev(5): Tasks.Item14963 fix some issues flagged by perlcritique as well Main.MichaelDaum 21 Oct 2020
Item15047 r 1 01 Nov 2021 - 19:19 -- MichaelDaum Tasks.Item15047 When no languages are enabled the Foswiki::I18n module tries to log an error message Could not load I18N infrastructure; falling back to English.... Since rev(-1): Tasks.Item15047 When no languages are enabled the Foswiki::I18n module tries to log an error message Could not load I18N infrastructure; falling back to English.... Since rev(5): Tasks.Item15047 When no languages are enabled the Foswiki::I18n module tries to log an error message Could not load I18N infrastructure; falling back to English....
Item8077 r 4 20 Oct 2021 - 15:48 -- MichaelDaum %META:FIELD{name="Component" title="Component" value="SyntaxHighlight
-%META:FIELD{name="Priority" title=" Priority " value="Enhancement"}...
+%META:FIELD{name="Priority" title=" Priority " value="Urgent"}%
-%META:FIELD{name="CurrentState" title="CurrentState" value="New"}%
+%META:FIELD{name="CurrentState" title="CurrentState" value="Being Wor...
-%META:FIELD{name="WaitingFor" title="WaitingFor" value=""}%
Since rev(2): Tasks.Item8077 Don't have the time to look at this now, but it looks like something that could be improved. Anyone else is free to pick this up if they have a ne... Since rev(5): Tasks.Item8077 Don't have the time to look at this now, but it looks like something that could be improved. Anyone else is free to pick this up if they have a ne...
Item15046 r 5 06 Oct 2021 - 06:14 -- MichaelDaum %USERSWEB%.DanielSchwab 05 Oct 2021
+



+Try these config settings:
+



+$Foswiki::cfg{Register}{NeedApproval} = $TRUE;
+$Foswiki::cfg{Register}{Approvers} = 'DanielSchwab';
Since rev(3): Tasks.Item15046 The user registration can be misused for any information and the people are capable to edit it. I use the wiki, just for my project documentation... Since rev(5):

Rev test

1353

-- 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