kernel
kernel
AEAsh Elixir
Created by tellesleandro on 9/26/2023 in #support
belongs_to does not add _id attributes do resource
allow_nil?: false
21 replies
AEAsh Elixir
Created by tellesleandro on 9/26/2023 in #support
belongs_to does not add _id attributes do resource
and you should make them not null if they shouldn't be null
21 replies
AEAsh Elixir
Created by tellesleandro on 9/26/2023 in #support
belongs_to does not add _id attributes do resource
you either need to set the foreign keys as writeable, or use manage_relationship to set them
21 replies
AEAsh Elixir
Created by tellesleandro on 9/26/2023 in #support
belongs_to does not add _id attributes do resource
how are you inserting?
21 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
maintainers would love us!
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
No description
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
I asked it to be terse haha
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
yup
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
No description
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
pretty much lol
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
not bad tbh
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
Field policies in Ash Framework authorize field access. All fields need a policy if any is defined; use :* for a catch-all. Primary keys are always readable. Ash.Policy.Authorizer mandates policies for all actions; use an "allow-all" policy for exceptions. Field policies can't refer to related entities, except with exists. Forbidden fields return as %Ash.ForbiddenField{} and evaluate to nil in filters.
Field policies in Ash Framework authorize field access. All fields need a policy if any is defined; use :* for a catch-all. Primary keys are always readable. Ash.Policy.Authorizer mandates policies for all actions; use an "allow-all" policy for exceptions. Field policies can't refer to related entities, except with exists. Forbidden fields return as %Ash.ForbiddenField{} and evaluate to nil in filters.
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
🤣
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
prompt: "Assume I'm an idiot"
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
I'm going to get GPT to read the docs and add an ELI5 section at the top of each section 🤣
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
i.e: only supervisors can see a certain attribute
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
so field policies are specifically for the field to be populated in the struct?
28 replies
AEAsh Elixir
Created by kernel on 9/25/2023 in #support
Policy vs FieldPolicy
👍🏿 cheers 🙂
28 replies
AEAsh Elixir
Created by tellesleandro on 9/25/2023 in #support
Complex types (postgres)
:week_range probably
22 replies
AEAsh Elixir
Created by tellesleandro on 9/25/2023 in #support
Complex types (postgres)
the postgres type
22 replies