r16 - 19 Jul 2007 - 15:55:06 - MatthiasRoederYou are here: TWiki >  Support Web > HowToGenerateListOfUserEdits
Tags:
search 1 Add my vote for this tag, , create new tag

Question

I'd like to be able to generate a table/page containing a list of all the pages a given user has edited in the past, even if they're not currently the most recent editor; I'm thinking of something similar to the Wikipedia's "user contributions" feature. I've looked at the search function, but haven't seen an intuitive way of doing this (e.g. there's no way to limit the search to an "editby" field).

It seems like the ContributorsPlugin might be a good start for this, but that only lists the editors for a given topic.

Is there a way to code a formatted search so that the search returns this type of list?

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian 3.1
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Topic revisions, Statistics, Plugins, Add-Ons
-- MarcPerkins - 10 Apr 2005

Answer

Assuming your signature is in every topic of interest, you can use a TWikiSearch for your WikiName. This works here on TWiki.org since we have the convention to sign the contributions (in addition, the Codev and Plugins webs have a InterestedParties field where you can put your name if you are interested in the subject of that topic).

Here is an example showing the 20 most recent topics you (e.g. the logged in person) was involved in recently. Write this:

%SEARCH{ "%WIKINAME%" order="modified" limit="20" reverse="on" }%

To get this:

Searched: TWikiGuest

Results from Support web retrieved at 04:12 (GMT)

Question Hi, After upgrade for the last version of Twiki, (TWiki 4.1.2, Sat, 03 Mar 2007, build 13046, Plugin API version 1.11), I can register a new user but Twiki ...
Statistics for Support Web Month: Topic Views: Topic Saves: Attachment Uploads: Most Popular Topic Views: Top Contributors for Topic Save ...
Question Every time i try to run configure at http://swiki/twiki/bin/configure/ , i can change the options but when i click next i get this error in my browser: Internal ...
Question How can I disable the need for email send upon new user registration? I do not have access to a SMTP sending server. (I have researched the support documentation ...
Question I've installed TWiki 4.2.1 through the windows installer. I'm confused about what's wrong with my install and not sure I have a good baseline. I have an intranet ...
Question Just installed the thing. With no access control, everything was fine. Then I uncommented .htacces and tried to create a new user. This is what I get from ...
Question Is there a way to display the last modified date of an attachment on another page, preferably on a default like TWiki installation? Example: There is a ...
Question Szenario: If I create a child topic, Access Control is not inherited from the parent topic. Users that don't have access to parent topics can access a child ...
Question Dear support team, I'm a newbie TWiki user and after the ActionTrackerPlugin was installed I can't save the edits of any topic. It brings me to the "Cannot ...
Question I have installed Twiki and I am now trying to get ldap authentication and have gotten fairly far. I am not geting the following error when trying to login ...
Question We've recently moved to LDAP authentication on our TWiki installation here (using LdapContrib). Initially we were set up to use the LDAP lookup of FirstnameLastname ...
Ask a Support Question Before you ask a question, please check the following: If you're running TWiki 4.0: Test/configure your installation with configure script ...
Question Last night our lab had a power reset and the server my TWiki was on was reset. This morning I rebooted it and am not able to access the TWiki (home pages ...
Question Hello, Here is the problem:I'am setting up twiki 4.2.1 with LdapContrib authentification. Authentication is working great, users and groups are loaded from ...
Question We have lots of external links set up of the form: file://... which work fine with Internet Explorer but not with Firefox. Is there a simple solution to ...
Question Hi, I had a problem performing save due to an error saying "Can't call method 'Get' on an undefined value". My TWiki Version is TWiki 4.2.0, Tue, 22 Jan ...
Question I am having an issue with the ActionTrackerPlugin's edit link it opens fine in a new window or in the same window depending on my preference, but I get ...
Question I have successfully installed ActionTrackerPlugin and been using basic ACTION and ACTIONSEARCH for a while. And suddenly ACTIONSEARCH stopped working. The ...
Question Starting mailtotwiki I get the following error message: ./mailtotwiki my.mail1 Name "TWiki::userName" used only once: possible typo at ./mailtotwiki line ...
Question I have installed kinosearch and SearchEngineKinoSearchAddOn on my TWiki page. Then I created an Index with kinoindex. But when I type a search string like ...
Number of topics: 20

This could be formatted nicely with a FormattedSearch.

-- PeterThoeny - 11 Apr 2005

Thanks for the fast response Peter!

While that search does do some of what I wanted, unfortunately it doesn't do everything. The search returns any page that includes the user's name in-text, so if a user was simply being discussed on the page, but had not edited the page, the page is still returned. Additionally, the search only returns pages with user signatures in them, which aren't always present (at least on my site).

I guess my hope is to be able to directly search (or otherwise access) the list of authors who have edited each page.

-- MarcPerkins - 11 Apr 2005

You can't. Without signatures, the best you can do is search for the most recent editor of a page. There is no way to search the history of a page.

-- CrawfordCurrie - 11 Apr 2005

That said, the underlying revision system does store this information. If anyone would provide code to expose this information via the API we'd happily look at incorporating it. I'd venture that this plugin would indeed, Marc, be the best place to start extending functionality to cover your needs and that some of ContributorsPlugin might better eventually belong in the core.

-- MartinCleaver - 11 Apr 2005

Actually the information is already exposed, it's just not very efficient to get at it. You can ask for rev info for any givem prior revision.

-- CrawfordCurrie - 12 Apr 2005

Using the ContributorsPlugin, combined with a formatted search, I've been able to generate a table containing a list of all topics in the web that includes which users have edited each of the topics.

Assuming you have the plugin, here's the code:

%SEARCH{ "\.*" scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" header="| Topic | Most recent author | Last revision | All topic authors |" format="| [[$topic]] | $wikiusername | $date |$percntCONTRIBUTORS{web=$percntCURRENTWEB$percnt topic=$quot$topic$quot format=$quot $dollarauthor $quot nodups=$quoton$quot}$percnt |" }%

For an example of this search's output, formatted as a form, see this page: http://rabbit-island.net/cgi-bin/twiki/view/Main/WebContributors (The page is slow to load, as the search takes ~14 seconds to complete.)

Ideally, one could put this table (maybe as a form?) onto a page (WebContributors?), search the last table column ("All topic authors") for a given user's name, and then display all rows containing a given user's name in a table, which would give you a list of all pages a specific user has edited.

I'm running into two problems:

1) The search is very processor intensive, and thus leads to slow load times for the page that contains the search. Would it be possible to have the page (WebContributors?) containing the result of the first, site-wide, search be static, and updated by a cron job that runs the search only at a given interval (hourly?) This would drastically reduce the server load caused by this search.

2) I don't know how to perform the second search (I described above) that searches the site-wide table of user edits to generate a list of only a specific user's edits.

-- MarcPerkins - 16 Apr 2005

You could install the VarCachePlugin to cache the contributors topic. The topic can be refreshed on demand or after a fixed time.

-- PeterThoeny - 06 Jun 2005

Thanks Peter, that worked like a charm to reduce the page load time. Now I just need to play with that second search ...

-- MarcPerkins - 01 Jul 2005

Hi everyone! I see that the issue has been resolved for MarcPerkins and his site. I am however not happy with the solution for our TWiki site. We need a better integrated solution. Something along the lines of what MartinCleaver proposed above.

We use TWiki as a collaboration platform for an international and iterdisciplinary research project. For many scholars and developers it is crucial to get full credit for their contributions to the project. It is therefore important for us to have system that lists all the edits of a particular contributor for all topics. Ideally this functionality should be incoorporated into the user sites.

Are there any plans to include this functionality into the core revision control system?

Thanks!

-- MatthiasRoeder - 31 May 2007

Matthias, you have to raise a question like that in Codev (create a change proposal) - it will just be ignored here.

-- CrawfordCurrie - 12 Jul 2007

Thanks a lot, Crawford!

-- MatthiasRoeder - 19 Jul 2007

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r16 < r15 < r14 < r13 < r12 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo