Blibs
Explore posts from serversAEAsh Elixir
•Created by Blibs on 9/19/2023 in #support
AshPhoenix.Form fails to submit with Ash.Error.Query.InvalidFilterValue error
But anyway, you can ignore that error, it is totally in my side hahahah. In any case your change to main totally fixed it! Thanks a bunch 🥳
13 replies
AEAsh Elixir
•Created by Blibs on 9/19/2023 in #support
AshPhoenix.Form fails to submit with Ash.Error.Query.InvalidFilterValue error
I guess there is some new check that Ash does that started checking for this in generic actions?
13 replies
AEAsh Elixir
•Created by Blibs on 9/19/2023 in #support
AshPhoenix.Form fails to submit with Ash.Error.Query.InvalidFilterValue error
Oh, actually, that type module path is just wrong, wth.
13 replies
AEAsh Elixir
•Created by Blibs on 9/19/2023 in #support
AshPhoenix.Form fails to submit with Ash.Error.Query.InvalidFilterValue error
But, besides that, seems like the change in main fixed the issue with off_market 😄
13 replies
AEAsh Elixir
•Created by Blibs on 9/19/2023 in #support
AshPhoenix.Form fails to submit with Ash.Error.Query.InvalidFilterValue error
Updating to main seems like it break some generic actions like this one:
It gives the error:
13 replies
AEAsh Elixir
•Created by Blibs on 9/19/2023 in #support
AshPhoenix.Form fails to submit with Ash.Error.Query.InvalidFilterValue error
Also, in case it helps, here is the full embedded resource that I'm trying to remove from the form:
13 replies
AEAsh Elixir
•Created by Blibs on 9/19/2023 in #support
AshPhoenix.Form fails to submit with Ash.Error.Query.InvalidFilterValue error
Got more info, the error is generated in ash_postgres, more specifically in AshPostgres.DataLayer.handle_raised_error/4
It happens because of this ecto error:
What I don't get is why it can't put
off_market
as nil
, it is set as nullable in my resource:
13 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
Not sure why I couldn't trigger it when I run the same code but as a ash_phoenix unit test 🤔
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
Can confirm, that fixed it!
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
Damn that was fast!
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
maybe it only doesn't work on arrays? not sure
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
@Zach Daniel when you have some free time can you try it out? Basically you just need to open iex and run:
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
All right! I was able to create a small project that reproduces the issue
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
I will try to move it to another standalone project right now and see if I can make it trigger, hopefully I will be able to do that and give you a link to the project at least 😅
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
You mean in my project? I looked into mix.lock and it is getting the latest version
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
The only thing that I can think that is different is that I have more ash libraries in my project, ash_authentication_phoenix, ash_graphql, etc. But I'm not using them in these resources, so I'm not sure if they somehow affect AshPhoenix.Form in some way
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
I will try to move it into a separated small project and see if I can reproduce it there
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
So, @Zach Daniel I created a unit test for it in AshPhoenix, but weirdly enough I can't reproduce it running from it, only inside my project, even thought the code and libraries versions are exactly the same
49 replies
AEAsh Elixir
•Created by Blibs on 9/15/2023 in #support
AshPhoenix.Form fails in submit without errors with embedded resources
I will try to create a unit test, but here is a small examply that can reproduce the issue:
And then run:
49 replies