click here for details... Sakai Executive Director Position Search now open
Issue Details (XML | Word | Printable)

Key: SAK-6851
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ian Boston
Reporter: Ian Boston
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Sakai

Improve Events in Rwiki

Created: 13-Oct-2006 00:42   Updated: 04-Dec-2008 05:14
Component/s: Rwiki
Affects Version/s: 2.2.2, 2.3.0
Fix Version/s: 2.5.0

Time Tracking:
Not Specified

Issue Links:
Depend
 
Relate
 

2.6.x Status: None
2.5.x Status: None
2.4.x Status: None


 Description  « Hide
Task to implement improved events feature requests.

 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Nuno Fernandes added a comment - 19-Oct-2006 08:36
Tested on trunk r17179, with the mentioned sakai property (.....CommandService=true) but here are no "wiki.*" events generated on page views.... (checked on SAKAI_EVENT).
I checked both sakai property (for misspelled characters) and commandComponents.xml and it looks like this property is being set.

But, by looking at the following line at CommandServiceImpl:
              (...)
              if ( trackReads && "view".equals(action) ) {
              (...)
It looks like you forgot to include "view" in the map passed as parameter to "commandMap" on the commandComponents.xml. Probably a bean definition is missing too (?)

Hope it helps,
Nuno.

Ian Boston added a comment - 19-Oct-2006 15:26
the action comes from the reques parameter and not from the command map. Its not in the command map since its the default.

If you are not seeing the events then I will commit a version with some info level logging.

Unfortunately you will have to take this from trunk as there are no more tasks going into 2.3 after 005, which I just missed.


Nuno Fernandes added a comment - 05-Jul-2007 03:54
Hi Ian.

In Sakai 2.4.x (r31968) rwiki still not logging "wiki.read" events. This is happening because the following method is never called:

uk.ac.cam.caret.sakai.rwiki.tool.service.impl.CommandServiceImpl.setTrackReads()

Not called when specifying in sakai.properties:
trackReads@uk.ac.cam.caret.sakai.rwiki.tool.service.api.CommandService=true

nor when hard coded in:
/rwiki-tool/tool/src/webapp/WEB-INF/commandComponents.xml

Ian Boston added a comment - 07-Aug-2007 02:10
Scheduling for 2.5

Ian Boston added a comment - 14-Aug-2007 09:07
I have tested this and it works as it currently is in trunk except:

You cant set properties in beans in components using the property@springid mechanism since this is a function of the Sakai component manage and Tool level components are loaded by Spring using a webapplication context.

I have tested by setting the value = true in commandComponents.xml

Which is deployed as a file onto the file system.

Hence I am closing it.

Ian Boston added a comment - 14-Aug-2007 09:07
Closing as it is fixed.

If you want more control over the setting please open annother JIRA and I will fix there

Nuno Fernandes added a comment - 21-Aug-2007 03:24
Thanks Ian.
Created SAK-11214