Forums / General / Mass remove of edit lock

Mass remove of edit lock

Author Message

Nicolas Steinmetz

Monday 09 January 2006 2:27:56 am

Hello,

I'd like to know how is it possible to remove massively all locks on all site contents (or part of it) to avoid to log as each user to remove individual locks

Thanks in advance,
Nicolas

Xavier Dutoit

Monday 09 January 2006 9:52:21 am

Lock ? You mean draft versions ?

Kristof has written an extension to automatically delete dusty drafts.

He's going to publish it as a contrib as soon as he's get the time (or recover from the new year hangover ? ;)

X+

http://www.sydesy.com

Nicolas Steinmetz

Monday 09 January 2006 10:03:53 am

For ex : some users modify contents on the site but instead of pressing cancel, they use back button or click elsewhere. As a consequence, the draft is blocked

So drafts are locked and we must ask this person to "unlock" the content.

As admin, I would like to remove all this lock either in mass or one by one.

I think I have this issue on drafts only

Does the contrib solve my issue ?

Paul Borgermans

Monday 09 January 2006 12:16:36 pm

I guess Kristof is off-line, so here is a link to his his initial work:

http://pubsvn.ez.no/community/trunk/hacks/untoucheddrafts/

The patches are for 3.7.2 and need to be tested a bit more.

However, if you are on 3.6.x or even 3.5.x, the php script included should already alleviate some frustrations:

http://pubsvn.ez.no/community/trunk/hacks/untoucheddrafts/bin/php/

The script checks for drafts and will delete those for which the current user is not logged in. The script does make the difference between real drafts and internal drafts because of a "property" that for internal drafts the create and modified times are equal. In the patch this is a bit more robust by introducing a new status value.

Stay tuned, there are more urgent problems/bugs to be solved (including a nasty one with the notification system and digest option, turning ez publish in a kind of spam engine)

Kudos to the nice work from Kristof

Regards

--paul (collegue of Kristof)

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

James Robertson

Sunday 05 November 2006 3:38:12 pm

Hi Paul

When you say 'stay tuned', will there be, or have there been, any further devlopments around this functionality?

What we would really like, is an interface, within eZ publish admin, for Administrator users to remove other users' drafts. Both on a one-by-one basis (ie. as they encounter them) and through some sort of 'bulk' management interface. [Sometime the decisions to removed drafts may need to be based on offline-process-knowledge, that is not held in eZ publish.]

Cheers
James

Kristof Coomans

Monday 06 November 2006 3:46:49 am

Hi James

The new version status was introduced in the 3.8 branch: http://pubsvn.ez.no/nextgen/trunk/doc/features/3.8/temporary_drafts.txt

A script to delete drafts will be added in the 3.9 branch: http://pubsvn.ez.no/nextgen/trunk/doc/features/3.9/old_drafts_cleanup.txt

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

James Robertson

Monday 06 November 2006 3:06:20 pm

Great news, thanks Kristof. [Once again, I must prioritize upgrading from v3.6 :-]

eZ debug

Timing: Jan 31 2025 08:13:06
Script start
Timing: Jan 31 2025 08:13:06
Module start 'content'
Timing: Jan 31 2025 08:13:06
Module end 'content'
Timing: Jan 31 2025 08:13:06
Script end

Main resources:

Total runtime0.3526 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.9063180.8438
Module start 'content' 0.00670.0088 768.7500101.8203
Module end 'content' 0.01550.3369 870.5703530.0234
Script end 0.3525  1,400.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.9658200.0002
Check MTime0.00130.3813200.0001
Mysql Total
Database connection0.00070.186910.0007
Mysqli_queries0.295283.72701410.0021
Looping result0.00150.42741390.0000
Template Total0.336595.410.3365
Template load0.00070.196010.0007
Template processing0.335895.235810.3358
Override
Cache load0.00050.135910.0005
Sytem overhead
Fetch class attribute can translate value0.00090.261010.0009
XML
Image XML parsing0.00020.069210.0002
General
dbfile0.01073.0284200.0005
String conversion0.00000.001130.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs