Bug 282638

Summary: Newly created activity pre-populated with resources
Product: [Unmaintained] Active Reporter: Thomas Pfeiffer <thomas.pfeiffer>
Component: Contour activity screenAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: active, cody, javier, robby.engelmann
Priority: VHI    
Version: unspecified   
Target Milestone: unscheduled   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Pfeiffer 2011-09-23 18:04:54 UTC
Version:           unspecified
OS:                Linux

When I create a new activity, it immediately contains several applications, bookmarks, documents, FileDataObjects and images.

Reproducible: Always

Steps to Reproduce:
Create a new activity

Actual Results:  
The created activity contains resources

Expected Results:  
Activity should be empty

Image used: 2011-09-16-16-07-meego-plasma-contour-in-progress-usb-live with packages updated today (2011-09-23).
Comment 1 Robby Engelmann 2011-09-23 18:39:42 UTC
This may be related:

Today, I deleted the nepomuk database and for sure lost all my ressources on my various activities. Then I added some applications to one activity. All these apps appear on all activities I have. It seems there is no activity-awareness anymore. The same for Documents and other ressource types.
Moreover, I cannot disconnect ressources from activities or add bookmarks using Active Browser.
It seems to me, that there is a problem with share-like-connect?

I am using OpenSuse and up to date packages from active repo.
Comment 2 Robby Engelmann 2011-09-23 18:40:19 UTC
I forgot to mention: same problem with a newly created user
Comment 3 Marco Martin 2011-09-29 13:38:41 UTC
Git commit 39f9c5b5fe3ae4d7186b02ca2a80aa7e2a2f08df by Marco Martin.
Committed on 29/09/2011 at 15:38.
Pushed by mart into branch 'master'.

proper way to create activity resources

wipe out Resource("activities://"+activityId)
replace with
Resource(activityId, Nepomuk::Vocabulary::KEXT::Activity())

that is the new correct way

the two constructors actually make 2 *different* resources
CCBUG:282638

M  +1    -1    applications/webbrowser/src/kdeclarativewebview.cpp
M  +6    -0    dataengines/metadata/bookmarks/CMakeLists.txt
M  +6    -0    dataengines/metadata/customsearch/CMakeLists.txt
M  +13   -0    dataengines/metadata/metadata/CMakeLists.txt
M  +4    -2    dataengines/metadata/metadatabaseengine.cpp
M  +3    -2    dataengines/metadata/metadataservice/metadatajob.cpp
A  +8    -0    dataengines/metadata/ontologies/kext.ontology.in
A  +145  -0    dataengines/metadata/ontologies/kext.trig

http://commits.kde.org/plasma-mobile/39f9c5b5fe3ae4d7186b02ca2a80aa7e2a2f08df
Comment 4 Marco Martin 2011-09-29 13:39:38 UTC
Git commit c3767637367e21e4b846637f3128baeecc2c014b by Marco Martin.
Committed on 29/09/2011 at 15:41.
Pushed by mart into branch 'master'.

proper way to create activity resources

wipe out Resource("activities://"+activityId)
replace with
Resource(activityId, Nepomuk::Vocabulary::KEXT::Activity())

that is the new correct way

the two constructors actually make 2 *different* resources
CCBUG:282638

M  +11   -0    dataengine/providers/activities/CMakeLists.txt
M  +7    -4    dataengine/providers/activities/activitiesProvider.cpp
A  +8    -0    ontologies/kext.ontology.in
A  +145  -0    ontologies/kext.trig

http://commits.kde.org/share-like-connect/c3767637367e21e4b846637f3128baeecc2c014b
Comment 5 Javier Llorente 2011-10-04 15:48:50 UTC
Already fixed in 2011-10-04-01-28-meego-plasma-active-testing-USB-live.iso