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 19 Apr 2024 - 18: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 2173 19 Apr 2024 - 00:58 -- AdminUser }%
- Apr 2024 166897 9 0 9927 WebCreateNewTopic 8302 All...
+ Apr 2024 179736 9 0 10502 WebCreateNewTopic 8767 Al...
Mar 2024 229549 3 0 12351 AllOutStandingItems 5913 ...
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...
+ Apr 2024 179736 9 0 10502 WebCreateNewTopic 8767 Al...
+ Mar 2024 229549 3 0 12351 AllOutStandingItems 5913 ...
+ Feb 2024 293155 38 1 13574 AllOutStandingItems 3177 ...
+ Jan 2024 255532 211 0 23169 AllOutStandingItems 8401 ...
Item15172 r 5 17 Apr 2024 - 21:42 -- JonMcCoy %USERSWEB%.BramVanOosterhout 14 Jan 2023
+



+I've been playing around with this error before finding this Task, an...
+


+Can this not be set by default in Applications.WebPreferences?
+

Since rev(3): Tasks.Item15172 Main.BramVanOosterhout 09 Jan 2023 Applications.RenderWikiApplicationWebHome is meant to list all topics relevant to an application if the ?q... Since rev(5):
WebHome r 64 12 Apr 2024 - 06:48 -- MichaelDaum Tasks.WebHome Task Tracker TWISTYBUTTON{id="newtask" link=" %TWISTYTOGGLE{ id="newtask" mode="div" }% INCLUDE{"CreateNewTask"} Search %IF{"'' = 'Wik... Since rev(10): Tasks.WebHome Task Tracker TWISTYBUTTON{id="newtask" link=" %TWISTYTOGGLE{ id="newtask" mode="div" }% INCLUDE{"CreateNewTask"} Search %IF{"'' = 'Wik... Since rev(5): Tasks.WebHome
- Report new issue
+ Task Tracker TWISTYBUTTON{id="newtask" link="%BUTTON{"Create a new ...
+
+%TWISTYTOGGLE{
+ id="newtask"
Item14127 r 7 09 Apr 2024 - 08:19 -- MichaelDaum %META:FORM{name="ItemTemplate"}%
-%META:FIELD{name="Summary" title="Summary" value="Debian packages are...
+%META:FIELD{name="Summary" title="Summary" value="Debian packages at ...
%META:FIELD{name="ReportedBy" title="ReportedBy" value="Main.AndyNon"...
Since rev(5): Tasks.Item14127 Recently I've been getting the following warning when updating packages from your Debian repository: ========================================... Since rev(5): Tasks.Item14127 Recently I've been getting the following warning when updating packages from your Debian repository: ========================================...
Item13423 r 14 09 Apr 2024 - 08:18 -- MichaelDaum %USERSWEB%.GeorgeClark 23 Jun 2015
-



- more regex issues
- %USERSWEB%.MariakatosvichC 09 Apr 2024
-

%COMMENT%
Since rev(10): Tasks.Item13423 The 5.22 introduced new deprecation warnings. The current trunk emits them at every request many times, depending how much plugins are installed.... Since rev(5): %USERSWEB%.GeorgeClark 21 May 2015
+Reopen if any more regex issues encountered.
+


+ %USERSWEB%.GeorgeClark 23 Jun 2015
+


%COMMENT%
Item15300 r 2 12 Mar 2024 - 07:21 -- MichaelDaum Main.GeorgeClark 12 Mar 2024
+




+jquery 3 is largly untested, ie on configure.
+ %USERSWEB%.MichaelDaum 12 Mar 2024
%COMMENT%
Since rev(0): Tasks.Item15300 I updated to 2.1.8, and accidentally enabled the latest 3.x JQuery. When I visit bin/configure, it immediately shows "Save 1 change" Save change... Since rev(5): Tasks.Item15300 I updated to 2.1.8, and accidentally enabled the latest 3.x JQuery. When I visit bin/configure, it immediately shows "Save 1 change" Save change...
DISKFullcaused500InternalServerError r 1 25 Feb 2024 - 13:25 -- NITTOGUtechWIKI Tasks.DISKFullcaused500InternalServerError DISKFullcaused500InternalServerError HI OUr server runs in OPENSUS Recently our server disk become full and qwiki a... Since rev(-1): Tasks.DISKFullcaused500InternalServerError DISKFullcaused500InternalServerError HI OUr server runs in OPENSUS Recently our server disk become full and qwiki a... Since rev(5): Tasks.DISKFullcaused500InternalServerError DISKFullcaused500InternalServerError HI OUr server runs in OPENSUS Recently our server disk become full and qwiki a...
Item15299 r 3 23 Feb 2024 - 11:41 -- BramVanOosterhout %USERSWEB%.MarcSCHAEFER 19 Feb 2024
+



+The following observations are based on
+


+%GRAPHVIZ{ "digraph G { Workstation image="Sun_Workstation.jpg" ; }"
+ type="png"
Since rev(1): Tasks.Item15299 In fact it did go away ingraphviz 6.0.1 See https://forum.graphviz.org/t/removal of gv file path environment variable/2031 A possible replacement... Since rev(5): Tasks.Item15299 In fact it did go away ingraphviz 6.0.1 See https://forum.graphviz.org/t/removal of gv file path environment variable/2031 A possible replacement...
Item14361 r 8 19 Feb 2024 - 17:28 -- MarcSCHAEFER %USERSWEB%.MichaelDaum 19 Feb 2024
+



+For the library GRAPHIZ macro argument: You are right: if I remember ...
+


+However, if there is any way to do bad things in dot itself (in the e...
+

Since rev(6): Tasks.Item14361 You can create a graphviz diagram using a definition like the following: digraph "G" { req0021 shape=plaintext,label= req0021 } This d... Since rev(5): Tasks.Item14361
+%TOC%
+


You can create a graphviz diagram using a definition like the followi...
Comments???
-

Item15298 r 1 01 Feb 2024 - 14:20 -- MichaelDaum Tasks.Item15298 * attachment multi formfields now allow to upload multiple files at once * new formfield uuid * added mindate and maxdate to date2 and d... Since rev(-1): Tasks.Item15298 * attachment multi formfields now allow to upload multiple files at once * new formfield uuid * added mindate and maxdate to date2 and d... Since rev(5): Tasks.Item15298 * attachment multi formfields now allow to upload multiple files at once * new formfield uuid * added mindate and maxdate to date2 and d...
Item15297 r 1 01 Feb 2024 - 14:03 -- MichaelDaum Tasks.Item15297 Main.MichaelDaum 01 Feb 2024 Since rev(-1): Tasks.Item15297 Main.MichaelDaum 01 Feb 2024 Since rev(5): Tasks.Item15297 Main.MichaelDaum 01 Feb 2024
TableOfContentsPlugin r 1 01 Feb 2024 - 14:00 -- MichaelDaum Tasks.TableOfContentsPlugin INCLUDE{"Component"} Since rev(-1): Tasks.TableOfContentsPlugin INCLUDE{"Component"} Since rev(5): Tasks.TableOfContentsPlugin INCLUDE{"Component"}
Item15296 r 6 01 Feb 2024 - 12:19 -- MichaelDaum %USERSWEB%.ChristianKern 01 Feb 2024
+



+:)
+


+ %USERSWEB%.MichaelDaum 01 Feb 2024
%COMMENT%
Since rev(4): Tasks.Item15296 The title says it all. Should be a two minute task to fix. Main.ChristianKern 31 Jan 2024 I've seen it in 2.1.8, I don't know if it also affe... Since rev(5): %USERSWEB%.ChristianKern 01 Feb 2024
+



+:)
+


+ %USERSWEB%.MichaelDaum 01 Feb 2024
%COMMENT%
Item15292 r 11 01 Feb 2024 - 10:08 -- MichaelDaum I've uploaded the script yesterday.
+ * repair_pfv_file_timestamps: Proposal for a Python 3 script repai...
+


%USERSWEB%.ChristianKern 01 Feb 2024
+



+Thanks!
Since rev(9): Tasks.Item15292 Renaming a web changes the timestamp of all files in the *,pfv/ folders to the current date. Thus, when viewing the history of a topic, all of th... Since rev(5): %USERSWEB%.ChristianKern 31 Jan 2024
+



+Any help is welcome. Programming languages don't matter. However if t...
+


+ %USERSWEB%.MichaelDaum 31 Jan 2024
+


Item15295 r 1 31 Jan 2024 - 16:29 -- MichaelDaum Tasks.Item15295 add a boolean flag to automatically subscribe/unsubscribe to a topic if it is favorited by means of the %FAVBUTTON. Main.MichaelDaum 31 Jan 2... Since rev(-1): Tasks.Item15295 add a boolean flag to automatically subscribe/unsubscribe to a topic if it is favorited by means of the %FAVBUTTON. Main.MichaelDaum 31 Jan 2... Since rev(5): Tasks.Item15295 add a boolean flag to automatically subscribe/unsubscribe to a topic if it is favorited by means of the %FAVBUTTON. Main.MichaelDaum 31 Jan 2...
Item15294 r 1 31 Jan 2024 - 15:46 -- MichaelDaum Tasks.Item15294 To fully be able to cover all code points of utf8, all 4 bytes are required. Only then will chars like emojis are covered. Main.MichaelDaum 3... Since rev(-1): Tasks.Item15294 To fully be able to cover all code points of utf8, all 4 bytes are required. Only then will chars like emojis are covered. Main.MichaelDaum 3... Since rev(5): Tasks.Item15294 To fully be able to cover all code points of utf8, all 4 bytes are required. Only then will chars like emojis are covered. Main.MichaelDaum 3...
Item15293 r 1 31 Jan 2024 - 13:10 -- MichaelDaum Tasks.Item15293 Main.MichaelDaum 31 Jan 2024 Since rev(-1): Tasks.Item15293 Main.MichaelDaum 31 Jan 2024 Since rev(5): Tasks.Item15293 Main.MichaelDaum 31 Jan 2024
DeeplPlugin r 1 31 Jan 2024 - 13:07 -- MichaelDaum Tasks.DeeplPlugin INCLUDE{"Component"} Since rev(-1): Tasks.DeeplPlugin INCLUDE{"Component"} Since rev(5): Tasks.DeeplPlugin INCLUDE{"Component"}
Item15291 r 1 30 Jan 2024 - 16:26 -- MichaelDaum Tasks.Item15291 * only used on delegate * adds reset() api to clear the favicon overlay Main.MichaelDaum 30 Jan 2024 Since rev(-1): Tasks.Item15291 * only used on delegate * adds reset() api to clear the favicon overlay Main.MichaelDaum 30 Jan 2024 Since rev(5): Tasks.Item15291 * only used on delegate * adds reset() api to clear the favicon overlay Main.MichaelDaum 30 Jan 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