-
-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An array of CustomTypes in action argument not cast when passed to query #1668
Comments
Interesting... what happens if you use |
So, I tried this:
Just for the heck of it I also tried this:
|
Hello! I'm super strapped for time at the moment. I'd like to fix this, but if you could create a small reproduction project that I can clone that has a failing test reproducing this issue, I'd really aprpeciate it. |
Oh, no worries. It's holiday season, and the issue isn't that serious (for me at least anyway). I've created the simplest repro here: https://github.com/dmitriid/ash_custom_types_repro. It will still be there after the holidays 🎉 So don't stress over it too much! |
Describe the bug
I have a custom type, and use it in an argument to a read action. This is then used in a filter. And fails. See code for a better explanation:
Edit: there's a reproduction in this minimal project https://github.com/dmitriid/ash_custom_types_repro
To Reproduce
Custom type:
Expected behavior
I was expecting the argument to be cast to proper native type with
dump_native
, but this didn't happenRuntime
{:ash, ">= 3.4.4"}
locked at 3.4.46 (ash) 78cd7d1d
{:ash_postgres, "~> 2.3.0"}
locked at 2.3.1 (ash_postgres) 886659fe
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: