[Building Sakai] Context field in Event Table for 2.6

Stephen Marquard stephen.marquard at uct.ac.za
Wed Sep 2 11:42:46 PDT 2009


There are 3 ways in which the CONTEXT can be set:

1. The entity code for the event reference has a parser which will return the context for the reference concerned, e.g. in references like 	/content/group/53450fdc-643a-4bf9-a860-adca9c72bbaf/, the context is embedded in the reference.

2. If the reference itself doesn't yield a context from the reference's service, then the tool context in which the request thread is executing is used as the context. This means that events posted by a tool placed in a site in response to a user action will get the context of that site.

3. A tool or service may explicitly pass the context when it posts events using an extra parameter.
 
In some of your examples:

Creating a new site - you do so from your My Workspace, so the context is your workspace's site id, except for some events where the context is derived from the ref.

alias.add events may come from new site creation, or may come from the site itself (e.g. adding Email Archive in Site Info vs configuring it in My Workspace when creating a site).

As you've noted, the CONTEXT is not completely consistent but it is a progressive improvement on 2-5-x as it allows many more events to be reliably associated with sites (viz. for those tools which use event REFs that don't include a site id).

Feel free to add JIRAs for cases that you think are truly inconsistent. It's possible some of those inconsistencies could be straightened out by getting the tools/services to explicitly set the context to whatever is most appropriate.

Cheers
Stephen

>>> Steve Lonn <slonn at umich.edu> 9/2/2009 8:20 PM >>> 
Please forgive a very non-technical question...

I am just beginning to get familiar with the way Sakai 2.6 logs  
events, particularly with regard to a new column in the table "context"
It appears that the goal of this field is to grab the site_id that is  
associated with this event, which is very helpful.
However, it appears that sometimes this field is not grabbing the  
site_id at all, resulting in a (null). Othertimes, it seems to grab  
the user's ID or the ID of their My Workspace instead of the site they  
are using.

If someone can please explain what's going on, where the known gaps  
are, etc. I would greatly appreciate it, particularly since this  
information does not appear to be captured in the relevant JIRA  
entries (SAK-10801, SAK-13809)

Thanks!  Steve



Here's a couple examples:

WHEN CREATING A NEW SITE:
DATE				EID		EVENT		REF												CONTEXT
02-SEP-09 18:00:05	slonn	realm.upd	/realm//site/53450fdc-643a-4bf9- 
a860-adca9c72bbaf		~slonn
02-SEP-09 18:00:05	slonn	realm.upd	/realm//site/53450fdc-643a-4bf9- 
a860-adca9c72bbaf		~slonn
02-SEP-09 18:00:05	slonn	site.add	/site/53450fdc-643a-4bf9-a860- 
adca9c72bbaf				~slonn
02-SEP-09 18:00:06	slonn	realm.upd	/realm//site/53450fdc-643a-4bf9- 
a860-adca9c72bbaf		~slonn
02-SEP-09 18:00:06	slonn	realm.upd	/realm//site/53450fdc-643a-4bf9- 
a860-adca9c72bbaf		~slonn
02-SEP-09 18:00:06	slonn	site.upd	/site/53450fdc-643a-4bf9-a860- 
adca9c72bbaf				~slonn
02-SEP-09 18:00:07	slonn	alias.add	/alias/9209test										~slonn
02-SEP-09 18:00:08	slonn	content.new	/content/group-user/ 
53450fdc-643a-4bf9-a860-adca9c72bbaf/	53450fdc-643a-4bf9-a860- 
adca9c72bbaf
02-SEP-09 18:00:08	slonn	calendar.create	/calendar/calendar/ 
53450fdc-643a-4bf9-a860-adca9c72bbaf/main	53450fdc-643a-4bf9-a860- 
adca9c72bbaf
02-SEP-09 18:00:09	slonn	annc.create	/announcement/channel/ 
53450fdc-643a-4bf9-a860-adca9c72bbaf/main	53450fdc-643a-4bf9-a860- 
adca9c72bbaf
02-SEP-09 18:00:09	slonn	disc.create	/discussion/channel/ 
53450fdc-643a-4bf9-a860-adca9c72bbaf/main	53450fdc-643a-4bf9-a860- 
adca9c72bbaf
02-SEP-09 18:00:09	slonn	content.new	/content/group/53450fdc-643a-4bf9- 
a860-adca9c72bbaf/	53450fdc-643a-4bf9-a860-adca9c72bbaf
02-SEP-09 18:00:09	slonn	mail.create	/mailarchive/channel/ 
53450fdc-643a-4bf9-a860-adca9c72bbaf/main	53450fdc-643a-4bf9-a860- 
adca9c72bbaf
02-SEP-09 18:00:09	slonn	site.upd	/site/53450fdc-643a-4bf9-a860- 
adca9c72bbaf	~slonn
02-SEP-09 18:00:10	slonn	site.upd	/site/53450fdc-643a-4bf9-a860- 
adca9c72bbaf	~slonn
02-SEP-09 17:59:59	slonn	realm.add	/realm//site/53450fdc-643a-4bf9- 
a860-adca9c72bbaf		~slonn


ALIAS.ADD EVENTS:

EVENT		DATE				REF			CONTEXT
alias.add	29-AUG-09 03:04:38	/alias/si539f09	(null)
alias.add	29-AUG-09 09:23:43	/alias/251btest	f359f3a5-7d93-45ad-a72c- 
f6aeeada0373
alias.add	29-AUG-09 09:25:55	/alias/2-6-0testing	!admin
alias.add	29-AUG-09 09:34:03	/alias/2-6-0testing	4fdc3438-0831-4aab- 
b4b5-628d27529aea
alias.add	29-AUG-09 09:48:35	/alias/test2.6dfg	 
~cf471468-6cfc-41a4-006a-ce96a6bd6948
alias.add	29-AUG-09 09:51:07	/alias/251btest	f359f3a5-7d93-45ad-a72c- 
f6aeeada0373
alias.add	29-AUG-09 09:54:13	/alias/2-6-0testing	4fdc3438-0831-4aab- 
b4b5-628d27529aea
alias.add	29-AUG-09 09:58:20	/alias/testing2600002	!admin
alias.add	29-AUG-09 10:01:13	/alias/testBlah	~cf471468-6cfc-41a4-006a- 
ce96a6bd6948
alias.add	29-AUG-09 11:43:36	/alias/gradtools-dmoyer	~dmoyer
alias.add	29-AUG-09 13:34:30	/alias/poltheory006009	 
~c6d859b8-65e3-4712-9ce3-28040cc58d0b
alias.add	29-AUG-09 15:51:46	/alias/Remedies09	d4a0f201-161b-4169- 
ab04-6f73a326c3ed
alias.add	29-AUG-09 17:13:26	/alias/si581f2009	f8a15ee9- 
a8c6-4542-9576-15d819a9cb74
alias.add	29-AUG-09 18:49:43	/alias/hst318hamilton	0295782e-7f25-4400- 
bb06-d70335847365
alias.add	29-AUG-09 19:17:56	/alias/blhoan	~ccb54c1f- 
a909-47ea-8613-3b3f6c791ac1
alias.add	29-AUG-09 20:03:16	/alias/rclang196f09	 
78067898-8160-466d-9013-e57a637bc1d0
alias.add	29-AUG-09 20:15:18	/alias/rclang196f09	 
78067898-8160-466d-9013-e57a637bc1d0
alias.add	29-AUG-09 20:22:21	/alias/rclang196f09	 
78067898-8160-466d-9013-e57a637bc1d0
alias.add	29-AUG-09 22:33:13	/alias/grm291f9	59a6c2bb-078f-4043- 
b57f-4fc56817397b
alias.add	29-AUG-09 22:34:58	/alias/grm291f9	59a6c2bb-078f-4043- 
b57f-4fc56817397b
alias.add	29-AUG-09 22:52:22	/alias/german191f09	743b58cf-2edf-4c35- 
b9ea-cde6e7025ac6
alias.add	30-AUG-09 00:55:22	/alias/FEII	~keppo
alias.add	30-AUG-09 01:08:19	/alias/dmmt09	 
85d2d4d4-7127-410a-96a9-0fcf54a4a522
alias.add	30-AUG-09 03:24:11	/alias/grm291f9	59a6c2bb-078f-4043- 
b57f-4fc56817397b
alias.add	30-AUG-09 12:06:00	/alias/E100.100F09	~esgirsch
alias.add	30-AUG-09 12:17:34	/alias/TC601F09	~esgirsch
alias.add	30-AUG-09 14:44:06	/alias/poso0910	7c0ff95c-3dcc-41a6- 
a0ce-7d49b6315023
alias.add	30-AUG-09 16:34:04	/alias/bio650	~bgillesp
alias.add	30-AUG-09 17:29:08	/alias/german191f09	743b58cf-2edf-4c35- 
b9ea-cde6e7025ac6
alias.add	30-AUG-09 17:41:28	/alias/german191f09	743b58cf-2edf-4c35- 
b9ea-cde6e7025ac6
alias.add	30-AUG-09 17:48:28	/alias/german191f09	743b58cf-2edf-4c35- 
b9ea-cde6e7025ac6
alias.add	30-AUG-09 17:49:40	/alias/german191f09	743b58cf-2edf-4c35- 
b9ea-cde6e7025ac6
alias.add	30-AUG-09 17:52:55	/alias/german191f09	743b58cf-2edf-4c35- 
b9ea-cde6e7025ac6
alias.add	30-AUG-09 17:59:56	/alias/law840f09	7e430e2a-98ed-4297-942d- 
eaac3a417ab4
alias.add	30-AUG-09 18:00:46	/alias/german191f09	743b58cf-2edf-4c35- 
b9ea-cde6e7025ac6
alias.add	30-AUG-09 18:11:13	/alias/entrepreneurshiprocks	~thomasz
alias.add	30-AUG-09 18:16:15	/alias/german191f09	743b58cf-2edf-4c35- 
b9ea-cde6e7025ac6
alias.add	30-AUG-09 18:17:30	/alias/entrepreneurshiprocks2	~thomasz
alias.add	30-AUG-09 18:40:25	/alias/NRE555	~lemos
alias.add	30-AUG-09 19:02:37	/alias/sweetlandwritingprizes	~nesilver
alias.add	30-AUG-09 20:39:15	/alias/grm291f9	59a6c2bb-078f-4043- 
b57f-4fc56817397b
alias.add	30-AUG-09 20:40:20	/alias/grm291f9	59a6c2bb-078f-4043- 
b57f-4fc56817397b
alias.add	30-AUG-09 20:40:30	/alias/gradtools-dswvr	~dswvr
alias.add	30-AUG-09 20:41:21	/alias/grm291f9	59a6c2bb-078f-4043- 
b57f-4fc56817397b
alias.add	30-AUG-09 20:42:28	/alias/grm291f9	59a6c2bb-078f-4043- 
b57f-4fc56817397b
alias.add	30-AUG-09 21:10:55	/alias/grm291f9	59a6c2bb-078f-4043- 
b57f-4fc56817397b
alias.add	31-AUG-09 00:18:30	/alias/cl490	~konuk
alias.add	31-AUG-09 00:22:54	/alias/ger464	~konuk
alias.add	31-AUG-09 01:09:16	/alias/SexologyF09	~grubin
alias.add	31-AUG-09 01:41:32	/alias/SI627F09	~rfrost
alias.add	31-AUG-09 01:51:09	/alias/cpb	~0328af3c- 
b92a-4f81-0055-3d43dd238866
alias.add	31-AUG-09 04:17:29	/alias/gradtools-mosb	 
~c4624f64-56e2-4dc8-00c6-7ef8f0a2682e
alias.add	31-AUG-09 05:30:59	/alias/ME350F09	1a71ddcd-8160-4340-9e9e- 
f4d9c6f1eae0
alias.add	31-AUG-09 07:02:16	/alias/ehs630f09	6153b9ac- 
d05c-449f-84fa-8d1c49d70974
alias.add	31-AUG-09 08:14:47	/alias/P4512009	~nmason
alias.add	31-AUG-09 11:08:21	/alias/PADM505F09	 
~93347ea4-02d0-41f1-0023-04ec9d6a653d
alias.add	31-AUG-09 13:08:28	/alias/206f09	4f00ac20- 
dad7-40fc-8854-60f671241b91
alias.add	31-AUG-09 14:45:27	/alias/env201-2009	bc0f06a1-e2b3-4b7f- 
b418-f1fe73b3d0f6
alias.add	31-AUG-09 14:47:58	/alias/env201-2009	bc0f06a1-e2b3-4b7f- 
b418-f1fe73b3d0f6
alias.add	31-AUG-09 14:54:09	/alias/realityshows	~mullaney
alias.add	31-AUG-09 15:11:59	/alias/ED490_F09	~yhchien
alias.add	31-AUG-09 15:36:19	/alias/mla2010MiniMed	~oriley

----------------------------------------------------------------
Steven Lonn
Postdoctoral Research Fellow
Usability, Support, and Evaluation (USE) Lab
-- Part of the CTools / Sakai Team -- 
Digital Media Commons, Duderstadt Center
University of Michigan

Email:  slonn at umich.edu
Phone:  (734) 615-4333
AIM: simchasl  /  MSN: stevelonn at hotmail.com
----------------------------------------------------------------











More information about the sakai-dev mailing list