Replies: 3 comments
-
Ash.PubSub
pub_sub do
prefix "attendance_record"
module MyAppWeb.Endpoint
publish_all :create, ["created", [:id, nil]]
publish_all :create, ["*"]
publish_all :update, ["updated", [:id, nil]]
publish_all :update, ["*"]
publish_all :destroy, ["destroyed", [:id, nil]]
publish_all :destroy, ["*"]
end Realworld example: |
Beta Was this translation helpful? Give feedback.
-
Ash.Type.*
For example, https://hexdocs.pm/ash/Ash.Type.Map.html attribute :form_config, :map do
description "Form dynamic labels"
allow_nil? false
constraints fields: [
amount: [
type: :integer,
constraints: [
max: 10
]
],
currency: [
type: :string,
allow_nil?: false,
constraints: [
max_length: 3
]
]
]
end |
Beta Was this translation helpful? Give feedback.
-
Ash.AuthentcationIt would be nice to have an overview of all the steps needed to take before diving into them. Because there are quire a few steps, and as you scroll through the guide you may get completely lost. As an example:
Additionally, it is entirely unclear how to override the aut-generated HTML templates for Ash.Authentication |
Beta Was this translation helpful? Give feedback.
-
I think having one place for now to track documentation pain points in a more informal way can help surface those up quicker. Then these can be tackled a lot more easily as we can gather them in a more public space than discord. All the information is siloed in discord and is hard to sort through or even lost with time.
General suggestions for this thread is,
Use sub-comments sparingly unless it is related to a PR or additional information that can be further enhance the concept. Use reactions to provide additional context on what could be prioritized.
Beta Was this translation helpful? Give feedback.
All reactions