upgrade to 3.8.x (drafts)

Author Message

Andrew Kelly

Friday 04 August 2006 5:59:04 am

Reading the docs on upgrading from 3.7.x to 3.8.x I see the following:

You will need to either publish or remove all the unpublished drafts in your system before launching this script.

OK.
How?
I've seen forum posts going back 3 years or more by people who want to be able to log in as administrator (or use a script for that matter) and have immediate access to all pending drafts on the system. Is it really true that this is still not possible?
Why is fundamental functionality like this (or the ability to delete long finished collaboration tasks) still not present?

This software perports to be enterprise strength, so it's not off the wall to think that an installation could have hundreds of active content editors. Why on earth is there no administrative tool to look after these people and what they might be doing?

Has anybody out there written a script to delete drafts that they might want to share?

Andy

luis muñoz

Friday 04 August 2006 6:47:43 am

Hi Andrew,

If you want to delete all the drafts in your system you can modify de script update/common/scripts/updatemultilingual.php in 3.8.x distribution. The first thing the script does is delete all the drafts, take that part into a new file. It will delete all the drafts in your system.
The script makes a list of the current drafts so there should not be people publishing when the script is counting drafts.
It will be also a good idea to add a few sleep seconds between each iteration, if not the system will be really heavy loaded.
Remember doing a database backup before.

Good luck.

Luis

Helle Andersen

Friday 04 August 2006 7:49:10 am

But this is not quite the point - being able to delete ALL drafts.
The question is to get access as an administrator to e.g. drafts made by persons long gone. Sometimes these drafts can just be deleted sometimes they should actually be used. But I do not want to delete ALL drafts.
I have a similar problem with trash. It often happens that one user by mistake deletes an object made by someone else who is no longer employed. As an administrator I should be able to pull that object from trash, but this is not possible.
Helle

Kristof Coomans

Friday 04 August 2006 9:20:29 am

Hello guys

I once made a script to delete drafts, you can find it at http://pubsvn.ez.no/community/trunk/hacks/untoucheddrafts/bin/php/remove_drafts.php . It has a preview mode (dry run) in which you can see a list of users and the count of their drafts (by default sorted on draft count).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

kracker (the)

Sunday 07 January 2007 11:09:03 am

I think this thread is important to remember.

With so many upgrading to through from 3.7 =< 3.8 to 3.9, this is a useful tool.

//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.