Skip to content

Add option to control ash_paper_trail changes tracing in runtime #203

@ostatni5

Description

@ostatni5

Code of Conduct

  • I agree to follow this project's Code of Conduct

AI Policy

  • I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.

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

We want to control in runtime if ash_paper_trail is enabled for certain resources in runtime.

Describe the solution you'd like

Similarly, this: https://hexdocs.pm/ash_paper_trail/getting-started-with-ash-paper-trail.html#tracking-changes-conditionally

change set_context(%{ash_paper_trail_disabled?: true})

It would disable creating snapshots/versions of the affected resource that would normally be created after the action.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Someday

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions