Create action with multiple nested resources
Implementating auto-incrementing/sequence fields in Ash Resources
issue_number
counts, invoice_number
counts, service_number
counts, etc.
I want to make sure that the implementation is consistent and that the sequence table will not leave gaps, as some database implementations leave gaps when a transaction fails....All extensions list.
Publish :create, ["created", deeply_nested_item_id]
chat_room
has many post
s which then has many comment
s.
and I want to have this pub_sub
definedin comment.ex.
```...Nested embedded Resource Form
AshPhoenix.Form.for_update
with forms: [auto?: true]
, the form created does not contain information about any of the embedded resources other than the first key.
Right now I am adding the missing data like so
``` update_form =
AshPhoenix.Form.for_update(styles, :update,...Set error message on attribute using AshAuthentication.Strategy.Password.PasswordValidation
:current_password
attribute?
```elixir
AshPhoenix.Form.submit(socket.assigns.password_form, params: params, actor: socket.assigns.current_user) ...undefined root_level_errors? true
If I set an argument default in a Flow I have it `nil` in a custom step
Testing with log_in_user
Limiting action sort and filter
filtering_on
policies, but I'd like to get it out of my GraphQL schema and JSON:API altogether. Is there a way to define at the action and/or resource level which attributes and relationships are allowed to be sorted and filtered on?
If there is a way to do this, is there also a flag that would set these to []
by default globally? I'd prefer to explicitly allow rather than deny.
This seems to be in-line with the planned changes for Ash 3.0, re: accept
defaulting to []
....function to_form/1 is undefined
Shorthand for code interface filters
Resolve notifications warning in when running tests
Nested form with filtered subform elements
``` def tweet_load(current_user) do...
Parse a new FilterForm from url params
What is the "Ash way" to auto update related resources ?
Not getting pub_sub notification
Singleton resources
Ash.Resource
with create
, read
and update
actions and:
- Does not allow anybody to call create
, and does not expose it via frontend channels;
- Automatically populates the record if it does not exist with the bare create
using authorize?: false
;...How to create has_one relationships in a nested form
Transaction
that has a has_one
relationship with a resource called RecurrencePattern
. When creating a new transaction (usually through a form in LV) I want to also create a matching recurrence_pattern. This works great when using the create
action directly, but I'm getting an error when using an AshPhoenix.Form
(I believe I got it to work at some point but don't know how to get back there again 😅 )
This works:
```elixir
Transaction.create!(%{...How to do polymorphic relationships, but with only 1 table?
transactions
with the following columns:
```...