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

feat: support atomic bulk actions #52

Open
frankdugan3 opened this issue Apr 22, 2024 · 0 comments
Open

feat: support atomic bulk actions #52

frankdugan3 opened this issue Apr 22, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@frankdugan3
Copy link

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

I have a number of bulk actions that require auditing and atomic actions w/ rollback. For example, a packing list form which updates the ownership of a number of scanned items.

The trouble is that AshPaperTrail currently interferes with atomicity. :full_diff tracking mode may not be possible currently, but :changes_only should be possible to support atomically.

Describe the solution you'd like

The change for create_new_version should be refactored for support of bulk/atomic operations where possible. Currently, this would probably exclude :full_diff tracking mode, supporting only :snapshot and :changes_only.

Describe alternatives you've considered

  • Mixins aren't capable of adding this as an escape hatch.
  • Currently using a custom changeset to store changes in a []json column, which is pretty hacky.
@frankdugan3 frankdugan3 added the enhancement New feature or request label Apr 22, 2024
@zachdaniel zachdaniel added the good first issue Good for newcomers label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants