collectiveidea / audited

Audited (formerly acts_as_audited) is an ORM extension that logs all changes to your Rails models.
MIT License
3.34k stars 645 forks source link

Support for batch creation of audits #703

Open EduardoRSeifert opened 2 months ago

EduardoRSeifert commented 2 months ago

Hello! I'm currently working on a way to create multiple audits in batch, using the activerecord-import gem. The reason I'm doing this is because I have the need to sometimes create hundreds of records using this gem, and that makes me lose my audits. Would this be something you guys would be interested in? I'm open to creating a PR if so, but don't want to spam otherwise

jesseduffield commented 2 months ago

I'm also keen on this feature: right now I find myself choosing between bulk updating and auditing and I err on the side of auditing but it feels wrong to have to choose.

EduardoRSeifert commented 2 months ago

@jesseduffield i had to stop working on this for now, i'll likely come back to it next month, but the solution i intend to implement can be adapted to the gem. i'm new to contributing to open source so i don't want to create a PR unless it has a chance of being merged