CmisSync
CmisSync copied to clipboard
Force a new version for each modification
If you want your server to create a new version at each change, you should configure your server to do it.
But we understand that in some circumstances this might not be practical (no admin access to the server, per-folder configuration, etc) so we are thinking about implementing a setting that would force new versions.
The setting would probably be per-folder. Implementation: each modification is followed by a check-out+check-in.
All feedback and ideas are welcome!
Still, the sane thing to do is handling this on the server :-)
In Alfresco you can - as a non-admin - define a rule that would add the cm:versionable aspect to every new document uploaded to a folder (with optionally enabling inheritance to sub-folders)
For information, In my Alfresco Setting ".docx" have versionable aspect properties "Auto Version - on update properties onlyValeur" to "true" and "Version automatiqueValeur" to "true". But ".pdf" have versionable aspect properties "Auto Version - on update properties onlyValeur" to "false" and "Version automatiqueValeur" to "false".
So to simply force Alfresco to create a new version for each change I add a Rule that
- add the cm:versionable aspect
- set properties :Auto Version - on update properties onlyValeur:true
- set properties : Version automatiqueValeur:true
Think Nicolas for this great tool !
Thanks for the great tip @mathieuga ! By the way, have you experienced cases where a program saves a file like every minute, with maybe an embedded timestamp different each time, meaning that hundreds of new versions get created on the server? Wild idea, but if such programs exist, maybe we could check whether they are running and only create the version when the program gets closed. Or something similar.