Forums / Developer / Howto remove drafts and archived versions from an object in admin

Howto remove drafts and archived versions from an object in admin

Author Message

K259

Thursday 04 March 2004 3:42:43 am

How do I assign rights to users so they can delete their versions?

I've given all rights on versions-module to the users, but it won't help.
Are there any doc on this?

Another question regarding versions:
In content.ini the DefaultVersionHistoryLimit=15 and VersionHistoryClass[1]=5...what does the last "thing" mean? VersionHistoryClass[1]=5? Don't find any doc on this either.

The users now only get a warning when they edit their content:
"Could not make new version.The limit for versionhistory is exceeded, og no archived versions can be removed by the system".

The best thing the system SHOULD do then, was to delete the oldest version, so the user still could edit his/her content, and not just deny access for editing the published version.

Wenyue Yu

Friday 05 March 2004 4:31:55 am

Hi,

You need to have
content remove Owner( Self )
content versionread Owner( Self )
to delete versions.

VersionHistoryClass[1]=5 means that for class 1 ( folder in standard eZ publish ), the maximum exising version amount is 5.

The system will try to delete the oldest archived version if it can't create a new version. If you got waring "Could not make new version.The limit for versionhistory is exceeded, og no archived versions can be removed by the system", then the system cann't find archived version. Since it is not a good choice to delete a draft ( maybe belongs to other user), the system will issue the warning and let user to deceide to delete which draft.

Regards,
wenyue

K259

Friday 05 March 2004 4:47:35 am

Hi!

I got the role-settings perfect:
content remove Section( xxx ) , Owner( Self )
content versionread Section( xxx )

BUT: the user in this role still don't get the checkbox for deleting
versions in versionadministration. That's our problem. So I(the admin) have to log in, and delete the versions for them, when they get the error message when the limit is
exceeded. I can increase the limit in settings, but don't want to have
to many versions in the system...so is this a BUG?

I think the best solution would be if there are no more archived versions, then start to delete the drafts. It's very CRITICAL when the user is not able to edit and publish their content, and also don't have the rights(because of a bug) to delete the versions.
What kind of publishing-society is that, hehe :p A very strict one ;)
"Your version history is exceeded, so you don't have any more credit to publish" ;)

Best regards.

eZ debug

Timing: Jan 19 2025 04:40:59
Script start
Timing: Jan 19 2025 04:40:59
Module start 'content'
Timing: Jan 19 2025 04:41:00
Module end 'content'
Timing: Jan 19 2025 04:41:01
Script end

Main resources:

Total runtime2.0276 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 590.3438180.7969
Module start 'content' 0.00691.8280 771.1406484.6016
Module end 'content' 1.83490.1926 1,255.7422333.4375
Script end 2.0276  1,589.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.2300210.0002
Check MTime0.00180.0876210.0001
Mysql Total
Database connection0.00090.046610.0009
Mysqli_queries1.953096.32011940.0101
Looping result0.00200.09901920.0000
Template Total1.994498.420.9972
Template load0.00220.110320.0011
Template processing1.992298.250420.9961
Template load and register function0.00020.010510.0002
states
state_id_array0.00090.044410.0009
state_identifier_array0.00170.084720.0009
Override
Cache load0.00190.0933350.0001
Sytem overhead
Fetch class attribute can translate value0.00200.099130.0007
Fetch class attribute name0.00120.058730.0004
XML
Image XML parsing0.00060.032130.0002
class_abstraction
Instantiating content class attribute0.00000.000330.0000
General
dbfile0.00460.2251210.0002
String conversion0.00000.000330.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
3content/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
8content/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: 24
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs