roberts.gulans
AEAsh Elixir
•Created by roberts.gulans on 5/5/2023 in #support
About policies
sorry for this thread, its unrelated. its my machines fault 😄
12 replies
AEAsh Elixir
•Created by roberts.gulans on 5/5/2023 in #support
About policies
i dont know man, sometimes, elixir compiled parts get stuck and do not recompile correctly. Like once every month. Rarely enough that i dont think of it streight away, but often enough, that im like, ah, once again 😄
12 replies
AEAsh Elixir
•Created by roberts.gulans on 5/5/2023 in #support
About policies
i did dependency update/mix compile --force, and now it seems to work correctly
12 replies
AEAsh Elixir
•Created by roberts.gulans on 5/5/2023 in #support
About policies
Yes thats is exactly what i expect. after providing authorization authorize :by_default i expect that policies will be executed and only related data will be show or empty list, if actor not present. currently if actor is not present all organizations are listed
12 replies
AEAsh Elixir
•Created by roberts.gulans on 5/4/2023 in #support
How to create organization after user creation.
Question about this is, how i possible could find by my self that action for it is
:register_with_password
?
Im a little bit confused about how to approach finding related parts.16 replies
AEAsh Elixir
•Created by roberts.gulans on 5/3/2023 in #support
select relationship
How to mark as sloved? 😄
18 replies
AEAsh Elixir
•Created by roberts.gulans on 5/3/2023 in #support
select relationship
I found "solution"
It seems that defaults does not add ability to populate relations.
Now
IO.inspect(AshPhoenix.Form.errors(form, for_path: :all))
prints
As we can see it now has correct errors for related ids as well. Im not sure if this is intended behaviour of defaults or not. I would argue that defaults [:create, :update], should be able to populate relationship ids as well.18 replies
AEAsh Elixir
•Created by roberts.gulans on 5/3/2023 in #support
select relationship
%{[] => [paid_at: "is required", amount: "is required"]}
18 replies
AEAsh Elixir
•Created by roberts.gulans on 5/2/2023 in #support
Union relationships
Thanks mate. Unreal job you have made.
6 replies