jart
jart
AEAsh Elixir
Created by Jmanda on 4/20/2024 in #showcase
My proof of concept project (FleetMS) built with Ash
Sounds cool. Can’t wait to see more.
6 replies
AEAsh Elixir
Created by Chris on 10/12/2023 in #support
read action returning a boolean
Hey Chris. You probably want split it into two actions - one read which gets the data you need and a generic action which can return an arbitrary type which calls the read action and returns the required Boolean.
4 replies
AEAsh Elixir
Created by gordoneliel on 9/22/2023 in #support
Preload relationship during action
I was thinking something like
ordered_before_actions [Change1, Change2]
ordered_before_actions [Change1, Change2]
Or something like that that makes the order explicit.
48 replies
AEAsh Elixir
Created by gordoneliel on 9/22/2023 in #support
Preload relationship during action
Yup.
48 replies
AEAsh Elixir
Created by gordoneliel on 9/22/2023 in #support
Preload relationship during action
But also I wonder if there’s not a better way of expressing it to make the dependencies clear to the machine and the user.
48 replies
AEAsh Elixir
Created by gordoneliel on 9/22/2023 in #support
Preload relationship during action
I think we probably should just because the current behaviour violates the principle of least surprise.
48 replies
AEAsh Elixir
Created by tellesleandro on 9/22/2023 in #support
Exception in transformer AshAuthentication.Strategy.Custom.Transformer
This is my fault and I am a bad bad person. Thanks @Zach Daniel for cleaning up my mess.
38 replies
AEAsh Elixir
Created by morfertaw on 9/18/2023 in #support
AshAuthenticationPhoenix controlling generated routes
Yeah just disable registration and add your own create action.
8 replies
AEAsh Elixir
Created by morfertaw on 9/18/2023 in #support
AshAuthenticationPhoenix controlling generated routes
Do you want to disable registration altogether? You can set registration_enabled? false inside the password strategy
8 replies
AEAsh Elixir
Created by Alan Heywood on 9/12/2023 in #support
Implementing token inactivity timeout with automatic expiry extend
what if instead of just validating that the action has the right stuff in it we provide a way to extend a predefined action like?
defmodule User do
use Ash.Resource, extensions: [AshAuthentication]

actions do
read :get_by_subject do
extends AshAuthentcation, :get_by_subject
# .. customisations that override the defaults
end
end
end
defmodule User do
use Ash.Resource, extensions: [AshAuthentication]

actions do
read :get_by_subject do
extends AshAuthentcation, :get_by_subject
# .. customisations that override the defaults
end
end
end
26 replies
AEAsh Elixir
Created by Alan Heywood on 9/12/2023 in #support
Implementing token inactivity timeout with automatic expiry extend
I think at some point we should look at making the token system more pluggable so that we can cover more of these use cases.
26 replies
AEAsh Elixir
Created by jart on 8/23/2023 in #support
Postgrex error when creating record with AshGeo type
I can't seem to mark this as solved :/
12 replies
AEAsh Elixir
Created by jart on 8/23/2023 in #support
Postgrex error when creating record with AshGeo type
thanks anyway my dude 🙂
12 replies
AEAsh Elixir
Created by jart on 8/23/2023 in #support
Postgrex error when creating record with AshGeo type
nvm I figured it out. there's a big arse if Mix.env() == :prod at the top of runtime.exs :/
12 replies
AEAsh Elixir
Created by jart on 8/23/2023 in #support
Postgrex error when creating record with AshGeo type
@\ ឵឵឵ any pointers?
12 replies
AEAsh Elixir
Created by zorn on 8/17/2023 in #showcase
[VIDEO] Early thoughts on using Ash Framework to produce a GraphQL API.
I'm interested in why you're looking at svelte instead of liveview
7 replies
AEAsh Elixir
Created by zorn on 8/17/2023 in #showcase
[VIDEO] Early thoughts on using Ash Framework to produce a GraphQL API.
This is great! Thanks @zorn
7 replies
AEAsh Elixir
Created by moissela on 8/9/2023 in #showcase
AshUUID: extension for using UUID v4 and v7, with encoding and prefixing support
This is awesome work!
129 replies
AEAsh Elixir
Created by bziegler on 8/7/2023 in #support
Session params missing for oidc providers using response_mode: form_post (e.g. Azure AD)
Hey there. I’m not sure I follow - OIDC has a lot of variety and I personally find it all pretty confusing. Some general advice until I understand the problem better; AshAuthentication uses assent under the covers. The DSL tries to generate an assent configuration and handle the ashy bits for you. You can dive into AshAuthentication.Strategy.OAuth2.Plug.config_for/1 (it’s private but maybe we should make it public/undocumented for debugging purposes) to see what the generated configuration looks like and whether it’s what you expect.
5 replies
AEAsh Elixir
Created by barnabasj on 7/11/2023 in #support
Ambiguous Call during Compile because of Extension
Awesome!
35 replies