ash-project / ash_paper_trail

The extension for keeping an audit log of changes to your Ash resources.
https://hexdocs.pm/ash_paper_trail
MIT License
32 stars 15 forks source link

Support bulk action #40

Open nallwhy opened 6 months ago

nallwhy commented 6 months ago

Is your feature request related to a problem? Please describe.

Bulk actions are used for high performance when creating/modifying a large number of records, but ash papertrail does not support bulk actions, so using bulk actions does not result in good performance.

Describe the solution you'd like

If bulk actions are executed, ash papertrail also runs as a bulk action.

Describe alternatives you've considered

I don't have any alternatives.

Express the feature either with a change to resource syntax, or with a change to the resource interface

No syntax changes.

Additional context

zachdaniel commented 5 months ago

This is a great idea :) I have plans of doing similar things for builtin changes like manage_relationship, as bulk actions are now in a good place for the rest of the ecosystem to start taking advantage of them :) I probably won't get to this very soon, but it will be on the roadmap.