Never record undo information for session or data import 3.24
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 04 Jan 2017 10:02:05 +0100
branch3.24
changeset 11901 afd7657a6d65
parent 11896 327585fd7670
child 11902 6c320c41b1a0
Never record undo information for session or data import for session, it may causes unlimited database size expansion while it makes no sense to undo this kind of changes. For data import, they are created programatically hence we may not want to undo this either.
cubicweb/server/session.py
--- a/cubicweb/server/session.py	Mon Dec 19 17:22:48 2016 +0100
+++ b/cubicweb/server/session.py	Wed Jan 04 10:02:05 2017 +0100
@@ -43,6 +43,8 @@
 
 NO_UNDO_TYPES = schema.SCHEMA_TYPES.copy()
 NO_UNDO_TYPES.add('CWCache')
+NO_UNDO_TYPES.add('CWSession')
+NO_UNDO_TYPES.add('CWDataImport')
 # is / is_instance_of are usually added by sql hooks except when using
 # dataimport.NoHookRQLObjectStore, and we don't want to record them
 # anyway in the later case