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

Support storing inputs in addition to changes #20

Open
rgraff opened this issue Oct 2, 2023 · 2 comments
Open

Support storing inputs in addition to changes #20

rgraff opened this issue Oct 2, 2023 · 2 comments

Comments

@rgraff
Copy link
Contributor

rgraff commented Oct 2, 2023

This would add a new inputs attribute to the version resource in addtion to the changes

paper_trail do
  store_inputs true
end
@chrishop
Copy link

chrishop commented Oct 11, 2023

@rgraff I see you been making tickets for this repo.
While I'm not familiar with ash_paper_trail and spark I am quite familiar with using Ash.
Would you mind if I picked this up as a first ticket?

For future reference, derived from this ticket: #18 (comment)

@rgraff
Copy link
Contributor Author

rgraff commented Oct 11, 2023

@chrishop please do. I need this ticket for my project, but I haven't started on it yet

chrishop added a commit to chrishop/ash_paper_trail that referenced this issue Oct 11, 2023
closes: ash-project#20

- introduces `store_inputs?` to the DSL
- `store_inputs?` if not included defaults to false
- when switched on it ensure an attribute is created to capture the exact
  inputs of each new version, when the resource we are paper-trailing changes.
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

Successfully merging a pull request may close this issue.

2 participants