Forums / Setup & design / Clear collaboration group list

Clear collaboration group list

Author Message

Antoine Schmid

Thursday 16 March 2006 5:35:23 am

Hi,

After a validation process (workflow) my objects are stored in the collaboration group list in collaboration/group/list/[number].

My question is: how can I remove elements from this interface ? I didn't figure out how it works (if it's possible) but this is espacially important during the tests and before the final publishing.

Perhaps I need to clear them manually from the database or there exists a script that runs with the cronjobs.

I would appreciate your experience

Antoine

Antoine Schmid

Tuesday 21 March 2006 11:28:39 pm

No one ?

Elena Ivanova

Tuesday 21 December 2010 12:47:22 am

Hello,

I know this is an old topic, but it has not been answered. I created a workflow for approving content before published. After that I needed to delete some of the already approved and published objects, but thay are still listed in Collaboration - Item list.

Could someone help - how to clear this list?

Thanks.

Elena Ivanova

Tuesday 21 December 2010 1:09:38 am

I found the following topic http://share.ez.no/forums/setup-design/clear_approve_history/%28from%29/ez.no/ that deals with something similar.

Firstly I tried with:

 php update/common/scripts/cleanup.php workflow

but nothing happened. Then I tried with

 php update/common/scripts/cleanup.php collaboration

but the script cleared the whole list. Is there any way to clear only those items that correspond to deleted objects.

Thanks.

Elena Ivanova

Wednesday 22 December 2010 12:36:31 am

any idea, advice?

Nicolas Pastorino

Wednesday 22 December 2010 5:14:21 am

Hi Elena,

Indeed, using the cleanup.php script with the collaboration option will simply truncate the associated tables. The executed code is eventually this one :

$db = eZDB::instance();
$db->begin();
$db->query( "DELETE FROM ezcollab_item" );
$db->query( "DELETE FROM ezcollab_item_group_link" );
$db->query( "DELETE FROM ezcollab_item_message_link" );
$db->query( "DELETE FROM ezcollab_item_participant_link" );
$db->query( "DELETE FROM ezcollab_item_status" );
$db->query( "DELETE FROM ezcollab_notification_rule" );
$db->query( "DELETE FROM ezcollab_profile" );
$db->query( "DELETE FROM ezcollab_simple_message" );
$db->commit();

and i could not find any related option to only clean-up archived items. But what are you exactly trying to achieve, at a functional level ?

Let us know,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Elena Ivanova

Wednesday 22 December 2010 5:49:00 am

Hi Nicolas,

Thanks for your feedback. I'm working on the following - I would like to have my users approved by administrator, before getting created. To achieve that, I set 2 workflows, the first one with event/approve, the second one with event/Multiplexer with classes to run 'User'.

My site is currently in development, so I didn't set cronjobs, but perform this manualy. All this works, as I expected. My issue came when I decided to delete the fake users that had been used for testing only. I deleted them, but they still appear in Item list, under Collaboration section. Do you know if there is a way to remove only deleted users from there.

Thanks.

eZ debug

Timing: Jan 18 2025 01:04:48
Script start
Timing: Jan 18 2025 01:04:48
Module start 'content'
Timing: Jan 18 2025 01:04:49
Module end 'content'
Timing: Jan 18 2025 01:04:49
Script end

Main resources:

Total runtime0.8562 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 595.9375180.8359
Module start 'content' 0.00760.7349 776.7734629.7031
Module end 'content' 0.74250.1136 1,406.4766341.0938
Script end 0.8561  1,747.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.5231210.0002
Check MTime0.00160.1884210.0001
Mysql Total
Database connection0.00100.121610.0010
Mysqli_queries0.767589.64572080.0037
Looping result0.00190.22612060.0000
Template Total0.825296.420.4126
Template load0.00240.277620.0012
Template processing0.822896.102820.4114
Template load and register function0.00020.021210.0002
states
state_id_array0.00110.131410.0011
state_identifier_array0.00070.084120.0004
Override
Cache load0.00190.2244430.0000
Sytem overhead
Fetch class attribute can translate value0.00160.189740.0004
Fetch class attribute name0.00160.186790.0002
XML
Image XML parsing0.00340.395040.0008
class_abstraction
Instantiating content class attribute0.00000.0039120.0000
General
dbfile0.00800.9357330.0002
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs