-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default maxNumberOfVersionsToKeep to something sane instead of infinity #27
Comments
what would be a good value? 5? 3? |
I was thinking 20. |
Is this a real problem for any actual sites? Versions are only saved when content is edited by hand TTW, regardless how long the site may have been running. I would think people might be surprised to find that they start losing data after a certain number of edits. |
Most real sites have a few pages that are edited quite often. Storing every version forever seems like a bad idea. Couple that with content types that also store image or file data and you can start seeing some real large bloat. |
Seems like a bad idea and is causing real problems for actual sites are different things though. If we promise versioning, that comes with expectations, no? If this is causing problems for real sites, then it's probably not a bad idea to put a default limit here, but otherwise why break expectations? |
as an alternative, if we have disagreement here, perhaps it'd be good to have this setting more prominently in Site Setup somewhere? |
Surfacing it somewhere probably makes a lot of sense. There's no versioning control panel, but I'm sure there's a semi-reasonable place for it somewhere. |
I think @alecpm has a point here: this should be a decision of the integrator. in my case I can tell you it is causing real problems but only on a few objects; I'm watching right now the sites of 2 customers and I can see one case on each site with an object with a crazy number of versions:
this seems to be pointing to a hidden bug. @vangheem 👍 on having it on a more prominent place and better documented; we also need to have an easier way to remove old versions without having to run an external script like this one: http://stackoverflow.com/a/9684696/644075 |
@hvelarde in your case, perhaps disabling versioning for c.cover by default is the way to go also. |
Wow, that's a lot of versions :-) That script just calls the beforeSaveHook, so you shouldn't need to use it except to purge all content at once rather than whenever a new version is saved. |
@hvelarde check-in/checkout-out is different from versioning. check-in/check-out comes from plone.app.iterate. |
You don't need a script, just saving the content with a new version should trigger the purge. To purge all existing content, you need a script, but once the setting is set you shouldn't need it going forward. I think versioning may need to be enabled on the type for iterate to work, but you don't need to enable the auto-version on save for that. |
yes, versioning is needed for check-in/check-out; I discovered that yesterday when the client called me because the feature disappeared after I disabled it 🌵 |
I have had an idea for a while to either change the default policy or create a new policy. The idea is to have two simultaneous limits:
What that should then mean is:
So for fast changing content you can go at most a year back. And for slow changing content you can still get ten revisions back, even if that revision is ten years ago. For existing sites we should probably not touch the settings during an upgrade. |
Shouldn't there also be a hard ceiling? e.g. Document C is changed three On Thu, Nov 17, 2016 at 11:33 AM Maurits van Rees [email protected]
|
Yes, a hard ceiling may be good to. The current maximum field in the policy could be used for that. And the other 'soft' maximums could be new fields. Note that I have no immediate plans to work on this, for now I just wanted to get the idea out. But on one Plone 3.3 site I did see this problem. After removing all revisions, the |
in the Conference, @tschorr gave a lightning talk about collective.revisionmanager. you must take a look on that also, as he said orphan revisions are left into the ZODB from time to time. |
I'm sure this can cause crazy bloat on long running plone site. Bad default value IMO.
The text was updated successfully, but these errors were encountered: