Skip to content

Bulk deletes not tracked in transaction table #33

@zwerg44

Description

@zwerg44

postgresql-audit version: 0.10.0
Postgresql version: 9.6.10
Sqlalchemy version: 1.2.7

Looks like bulk delete operations are tracked in activity table, but not tracked in transaction table.
So using flask versioning_manager, we can't find out actor_id.

Example:

to_delete = (
    db_session.query(Model)
    .filter(Model.some_id.in_([1,2,3]))
)
to_delete.delete(synchronize_session='fetch')

I think this issue is related to #174

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions