# HG changeset patch # User Sylvain Thénault # Date 1483520525 -3600 # Node ID afd7657a6d65bab5300a9ae68bc9844146ed25df # Parent 327585fd7670da516dd5c7bd80a08c96246c4aca 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. diff -r 327585fd7670 -r afd7657a6d65 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