A small extension for setting up resources to be archived instead of destroyed.
Find a file
Zach Daniel 9949e6860a improvement: rewrite to take advantage of new bulk actions
improvement!: don't use `base_filter` anymore, allowing for more flexible design
improvement: add `exclude_read_actions` to exclude some actions from filtering archived items
improvement: add `exclude_destroy_actions` to exclude some actions from being intercepted

 Please enter the commit message for your changes. Lines starting
2024-04-26 03:20:19 -04:00
.github chore: enable dependabot for mix dependencies. 2024-04-11 09:23:15 +12:00
.vscode improvement: update to Ash 2.0 2022-10-17 13:28:49 -05:00
config improvement: upgrade to 3.0 2024-03-29 10:19:24 -04:00
documentation improvement: upgrade to 3.0 2024-03-29 10:19:24 -04:00
lib improvement: rewrite to take advantage of new bulk actions 2024-04-26 03:20:19 -04:00
test improvement: upgrade to 3.0 2024-03-29 10:19:24 -04:00
.check.exs improvement: update to Ash 2.0 2022-10-17 13:28:49 -05:00
.credo.exs chore: fix build 2024-02-20 11:40:23 -05:00
.formatter.exs improvement: update to Ash 2.0 2022-10-17 13:28:49 -05:00
.gitignore improvement: create archival extension 2022-07-13 14:29:49 -04:00
.tool-versions chore: fix build 2024-02-20 11:40:23 -05:00
CHANGELOG.md chore: release version v0.1.6-rc.0 2024-03-29 10:19:49 -04:00
LICENSE improvement: create archival extension 2022-07-13 14:29:49 -04:00
mix.exs chore: release version v0.1.6-rc.0 2024-03-29 10:19:49 -04:00
mix.lock chore(deps): bump ash from 3.0.0-rc.27 to 3.0.0-rc.29 (#18) 2024-04-23 22:02:24 -04:00
README.md update readme 2022-11-06 12:18:08 -07:00

Ash Archival

A small but useful resource extension for Ash Framework, which configures resources to be archived instead of destroyed.

Installation

The package can be installed by adding ash_archival to your list of dependencies in mix.exs:

def deps do
  [
    {:ash_archival, "~> 0.1"}
  ]
end

Using the archive extension

On your ash resource add AshArchival.Resource to your extensions. For more details see the docs at https://ash-hq.org.

  use Ash.Resource,
    extensions: [AshArchival.Resource]