Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk deletes not tracked in transaction table #33

Open
zwerg44 opened this issue Oct 3, 2018 · 0 comments
Open

Bulk deletes not tracked in transaction table #33

zwerg44 opened this issue Oct 3, 2018 · 0 comments

Comments

@zwerg44
Copy link

zwerg44 commented Oct 3, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant