Commit Graph

25 Commits (fe3fb42df9ff3248540bc2427b59c843927166a7)

Author SHA1 Message Date
Enric Tobella fe3fb42df9 [IMP] auditlog: make the line views using a non auto model 2022-12-28 13:57:39 +01:00
Alexandre Fayolle 272729b9e4 [FIX] auditlog: autovacuum performance
Add database indices on the foreign key fields of the auditlog models.
Without these indices, the performance of the autovacuum cron are terrible
because the "ON DELETE SET NULL" trigger has to make a full table scan
on the auditlog_log and auditlog_log_line tables when
auditlog_http_session and auditlog_http_request rows are deleted.
2022-11-18 13:12:58 +01:00
BT-vgabor 6dfa4ae522 [MIG] auditlog: Migration to 15.0 2022-11-18 13:12:58 +01:00
BT-vgabor 3059c6b20c [IMP] auditlog: black, isort, prettier 2022-11-18 13:12:58 +01:00
Kitti U 06e4130b33 [14.0][IMP] auditlog, add auditlog.log.line view 2022-11-18 13:12:58 +01:00
Pieter Paulussen 3b73d50906 [IMP] auditlog: prevent cascading delete of logs when models or fields are unlinked
When a field or a model is unlinked, keep the related audit logs. Denormalize
the field and model info on the logs and log lines so that the information
is still available after the deletion of the related data model.

Also, to improve the performance of the deletion of fields and models,
add indexes on the log's model_id and log line's field_id.

Co-Authored-By: Stefan Rijnhart <stefan@opener.am>
2022-11-18 13:12:57 +01:00
Raf Ven 732654f95f [IMP] auditlog: black, isort, prettier 2022-11-18 13:12:57 +01:00
Eric Lembregts 1b1f827c1b [MIG] auditlog: Migration to 13.0 2022-11-18 13:12:57 +01:00
sebalix 3487299909 [MIG] auditlog: Migration to 12.0 2022-11-18 13:12:57 +01:00
rgarnau 3959096570 [add] https 2022-11-18 13:12:57 +01:00
Enric Tobella e3d6d8bbd2 [MIG] auditlog: Migration to 11.0 2022-11-18 13:12:57 +01:00
Frédéric Garbely 4e1e1eacff [MIG] auditlog: Migrated to 10.0 2022-11-18 13:12:57 +01:00
Sébastien Alix 557d2dfb03 auditlog - Icon added + README updated (screenshots) 2022-11-18 13:12:57 +01:00
sebalix 5ed019fec6 auditlog - Auto-vacuum logs, HTTP requests and HTTP user sessions 2022-11-18 13:12:57 +01:00
sebalix ebd69dbb72 auditlog - Field 'type' renamed to 'log_type' 2022-11-18 13:12:57 +01:00
sebalix 9808fa08c7 auditlog - Ability to choose the log type on the rule: Full log (complete but slow) and Fast log (data input only, faster) 2022-11-18 13:12:57 +01:00
sebalix 7bd19662d3 Module 'auditlog' - Fix pylint check 2022-11-18 13:12:57 +01:00
sebalix 4c11ec5b2e Module 'auditlog' - Log HTTP user sessions and requests 2022-11-18 13:12:57 +01:00
sebalix c77e26f78d [IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields 2022-11-18 13:12:57 +01:00
sebalix 7263ad39c4 [IMP] Module 'auditlog' - Autoremove 'auditlog.log.line' records when a field is deleted (e.g. migration) 2022-11-18 13:12:57 +01:00
sebalix af0f5d1a61 [FIX] Module 'auditlog' - 'time' module imported but unused 2022-11-18 13:12:57 +01:00
sebalix ae87645d6b [IMP] Module 'auditlog' - Removed the 'timestamp' field from the 'auditlog.log' model (standard 'create_date' field is used instead) 2022-11-18 13:12:57 +01:00
sebalix 54d052fc1d [IMP] Module 'auditlog' - Clean up vim lines 2022-11-18 13:12:57 +01:00
sebalix 0ac666a32d [FIX] Module 'auditlog' - Fix some flake8 errors 2022-11-18 13:12:57 +01:00
sebalix 65517c4bcf [ADD] Module 'auditlog' - A substitute to the deprecated 'audittrail' module 2022-11-18 13:12:57 +01:00