Chaz Watkins
Explore posts from serversAEAsh Elixir
•Created by andyl on 5/25/2025 in #support
Reusable Ash Resources
I’m curious, why do we have to put otp_app on the resource?
10 replies
AEAsh Elixir
•Created by AngyL75 on 5/25/2025 in #support
AshArchival
I’d have to ask Rebecca since she fought with the archival stuff for a while on my app. Pretty sure your only need to do the archival block base filter. I’ll check with her when she some online and post the answer here.
14 replies
AEAsh Elixir
•Created by AngyL75 on 5/25/2025 in #support
AshArchival
Sometimes it is helpful to break them apart, but for my use case I didn't
14 replies
AEAsh Elixir
•Created by AngyL75 on 5/25/2025 in #support
AshArchival
But, it all depends on how you want to model your domain. If you want to have a Foo resource and an ArchivedFoo resource pointing to the same table with different base filters, that works too
14 replies
AEAsh Elixir
•Created by AngyL75 on 5/25/2025 in #support
AshArchival
I forgot why I have base_filter_sql in the postgres block and base_filter in the resource block. Did it awhile back, but seems to work ok.
14 replies
AEAsh Elixir
•Created by AngyL75 on 5/25/2025 in #support
AshArchival
The archive block specifies which actions are excluded from the base filter.
14 replies
AEAsh Elixir
•Created by AngyL75 on 5/25/2025 in #support
AshArchival
The base filter means the default read will always filter out archived records
14 replies
AEAsh Elixir
•Created by AngyL75 on 5/25/2025 in #support
AshArchival
You shouldn't have to create a separate resource for the archived items.
Then set up your policies to allow some user groups to read_archived, read_all, and unarchive.
14 replies
AEAsh Elixir
•Created by ZachDaniel on 5/19/2025 in #showcase
I'm joining the EEF Board
Let's go! Congrats, Zach.
5 replies
AEAsh Elixir
•Created by mcoll on 5/16/2025 in #support
Complex Custom Actions
You’ll need to add ‘batch_change/3’ callback and apply the change function to all changesets.
23 replies
AEAsh Elixir
•Created by mcoll on 5/16/2025 in #support
Complex Custom Actions
As for the
Ash.Changeset.new
vs Ash.Changeset.for_update
, the typical pattern is to use for_update
and the name of the update action you are applying.23 replies
AEAsh Elixir
•Created by mcoll on 5/16/2025 in #support
Complex Custom Actions
For the last question, you're looking for run and a change module. Using the
manual
opt says you are delgating to your own Update action implementation, so no other changes are applied. While run
takes an anon function or change module to run a change on the changeset, so other changes steps can be applied when using run
23 replies
AEAsh Elixir
•Created by ZachDaniel on 5/10/2025 in #showcase
GigCity Elixir wrapped, new AshEvents extension, "Domain Modeling with Ash Framework" book launch, c
Try setting
store_resource_identifier?: true
to see if it adds a column to the table and stores the resource's short_name.
Also, we should probably move this conversation to https://discord.com/channels/711271361523351632/125343846554324584439 replies
AEAsh Elixir
•Created by ZachDaniel on 5/10/2025 in #showcase
GigCity Elixir wrapped, new AshEvents extension, "Domain Modeling with Ash Framework" book launch, c

39 replies
AEAsh Elixir
•Created by ZachDaniel on 5/10/2025 in #showcase
GigCity Elixir wrapped, new AshEvents extension, "Domain Modeling with Ash Framework" book launch, c
It looks like
paper_trail
provides the opts necessary to have a single Version
resource that stores entries from multiple resources. If this is incorrect, feel free to correct me.39 replies
Use ES Lint, Jest, Prettier configs with deno
Thanks for the responses and guidance.
I had noticed the
deno fmt --unstable-component
flag and thought it could be extended. But, after reviewing the demo fmt
code, I see it's simply looking at the file extensions for those frameworks and calling format_html
since those frameworks name their HTML templates with custom extensions. LWC doesn't do this; it only has .html and js/ts files. So, the formatter should work for LWC.
However, for linting, LWC has many ES Lint rules for various functionalities that the framework provides. Is there currently a way to add your own rules to deno lint
? If not, are there any plans for this in the future?9 replies