AshPhoenix.Form fails to submit with Ash.Error.Query.InvalidFilterValue error
Hey there, I'm not sure exactly what is happenig, but I have a embedded resource that was inserted into my resource, when I try to update it via AshPhoenix, by first calling
AshPhoenix.Form.remove_form
and then AshPhoenix.Form.submit
, I get this error:
Any idea on what can be the issue here? I'm trying to create a small example that triggers this but without too much success.6 Replies
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:
Also, in case it helps, here is the full embedded resource that I'm trying to remove from the form:
Can you try
ash
main for me?Updating to main seems like it break some generic actions like this one:
It gives the error:
But, besides that, seems like the change in main fixed the issue with off_market 😄
🤔
Is that type defined in the same file as the resource?
is that the actual type name?
Oh, actually, that type module path is just wrong, wth.
I guess there is some new check that Ash does that started checking for this in generic actions?
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 🥳
yes, we added a check for exactly that that was missing 😆