Commit Graph

25 Commits (e20411a7c8f3d7f9cbe8b70597988c443e0f2cec)

Author SHA1 Message Date
Enric Tobella 41178c6970 [IMP] auditlog: make the line views using a non auto model 2023-11-14 15:19:45 +01:00
Alexandre Fayolle a6c49ce538 [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.
2023-11-14 15:19:45 +01:00
BT-vgabor b499a23a68 [MIG] auditlog: Migration to 15.0 2023-11-14 15:19:45 +01:00
BT-vgabor 1713ad5d6c [IMP] auditlog: black, isort, prettier 2023-11-14 15:19:45 +01:00
Kitti U 6c1e18ef00 [14.0][IMP] auditlog, add auditlog.log.line view 2023-11-14 15:19:45 +01:00
Pieter Paulussen 9483c8b3c9 [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>
2023-11-14 15:19:45 +01:00
Raf Ven 3491f6876e [IMP] auditlog: black, isort, prettier 2023-11-14 15:19:45 +01:00
Eric Lembregts 7449216078 [MIG] auditlog: Migration to 13.0 2023-11-14 15:19:45 +01:00
sebalix a1dd8ec951 [MIG] auditlog: Migration to 12.0 2023-11-14 15:19:44 +01:00
rgarnau b265568ba1 [add] https 2023-11-14 15:19:44 +01:00
Enric Tobella fe82a64ac4 [MIG] auditlog: Migration to 11.0 2023-11-14 15:19:44 +01:00
Frédéric Garbely f5cc6a9ac9 [MIG] auditlog: Migrated to 10.0 2023-11-14 15:19:44 +01:00
Sébastien Alix 9bcbe57e7d auditlog - Icon added + README updated (screenshots) 2023-11-14 15:19:44 +01:00
sebalix 4dbecc0604 auditlog - Auto-vacuum logs, HTTP requests and HTTP user sessions 2023-11-14 15:19:44 +01:00
sebalix 2c4b156b1f auditlog - Field 'type' renamed to 'log_type' 2023-11-14 15:19:44 +01:00
sebalix 878441e622 auditlog - Ability to choose the log type on the rule: Full log (complete but slow) and Fast log (data input only, faster) 2023-11-14 15:19:44 +01:00
sebalix fe1d3307b4 Module 'auditlog' - Fix pylint check 2023-11-14 15:19:44 +01:00
sebalix 7099a27a29 Module 'auditlog' - Log HTTP user sessions and requests 2023-11-14 15:19:44 +01:00
sebalix 81ee271b21 [IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields 2023-11-14 15:19:44 +01:00
sebalix 0ccef82ff8 [IMP] Module 'auditlog' - Autoremove 'auditlog.log.line' records when a field is deleted (e.g. migration) 2023-11-14 15:19:44 +01:00
sebalix dc246870c5 [FIX] Module 'auditlog' - 'time' module imported but unused 2023-11-14 15:19:44 +01:00
sebalix 2ab70e9eed [IMP] Module 'auditlog' - Removed the 'timestamp' field from the 'auditlog.log' model (standard 'create_date' field is used instead) 2023-11-14 15:19:44 +01:00
sebalix ec089dd848 [IMP] Module 'auditlog' - Clean up vim lines 2023-11-14 15:19:44 +01:00
sebalix 390435f20d [FIX] Module 'auditlog' - Fix some flake8 errors 2023-11-14 15:19:44 +01:00
sebalix 58777c5ea5 [ADD] Module 'auditlog' - A substitute to the deprecated 'audittrail' module 2023-11-14 15:19:44 +01:00