Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 382788

Summary: [activity] define data model for task activity records
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 3.9   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 376233    

Description Steffen Pingel CLA 2012-06-16 08:27:21 EDT
The task activity viewer aggregates activity information from various sources. The activity should be stored in a data model that can be cached and indexed. Proposal for the ActivityRecord data model:

ActivityRecord {

 // time the event happened, e.g. a change set was committed
 Data date; 

 List<IIdentity> people;
 
 List<IResource> resources;
 
 // unique handle identifier, uri?
 String handle;
 
 // identifies the source of the contribution
 String kind;
 
 // related task
 ITask task;

}

We'll also need a notification mechanism but that maybe more suitable on the provider level.
Comment 1 Steffen Pingel CLA 2012-07-15 17:00:05 EDT
I have implemented a first iteration of the data model and pushed that into the o.e.m.tasks.activity.core bundle.

The basic idea is that IActivtyStream provides access to a collection of ActivityEvents. An event is a build, new code review, patch set etc. that is provided by concrete providers (e.g. bug 378097, bug 378101).
Comment 2 Steffen Pingel CLA 2012-07-15 17:00:50 EDT
I'll mark this as resolved for now. We can open new bugs to extend the data model, e.g. to add support for notifications.
Comment 3 Timur Achmetow CLA 2012-07-16 17:02:00 EDT
a bug for the notification support (commits) is already opened: bug 380847
Comment 4 Timur Achmetow CLA 2012-07-16 17:54:05 EDT
Okay, I have checked out the code. Now I will merge my model code with yours.