inline `type()` doesnt work. when defined as calculation on resource it works.
i have a really weird issue and i have no idea whats happening:
addressed_groups
is an {:array, :string}
type. If I try to do the type
casting inline, second example I get this error:
41 Replies
Hmm....thats strange.
I did some type work recently
might be worth checking on latest versions just in case
I don't think it will fix this though
im on main
π was worth a shot π
im always on main for all my ash dependencies lol
π I feel like the last month may have been a weird ride for you then
#yolo
well being on main doesn't mean you update every day necessarily though
right π
π€¦ββοΈ

3 days ago
So, I'm not sure why the calculation works
the calculation is literally just this:
Isn't that different?
^actor([:service, :id]),
@barnabasj you wrote smokestack right? how come its not namespaced under the ash namespace?
It was @jart
ah sry
Its his personal project π
thats because the check is a policy somewhere else
smokestack is licensed differently than Ash etc.
you should read the license if you want to use it.
ah yh saw that. im mainly writing software for building permits in switzerland so i should be good to go
and its open source
π₯
gonna train fixing ash to 3.5.15
I have a random thought of something that might work
looking at some of the changes we've made we can improve those string wrapper types
Switzerland, nice. You shouldn't be to far from me then. I live at the swiss border
du bisch vo ΓΆstrich gell?
so 3.5.15 does the same thing
I just pushed something to
main
of ash_postgres
I will probably have no effect
but it can't hurt to try πlet me try
yh didnt make a difference
do you want me to try and build a failing test?
very much so β€οΈ
ok let me try
I made a similar "probably won't help" change in
main
i cant reproduce it..
ah maybe in a read action wait
are you also on
main
for ash_sql
?got it
i think
this fails when being called with
Ash.Query.for_read(Post, :with_version_check, [version: 1])
it works when not explicitely casting the int to string:
strange
well, make a PR and I'll get to it this week
if you don't mind
π―
Not mega high priority since you have a workaround
but still a weird one
worth fixing
yh its weird..
GitHub
fix: add failing test for
type()
in expression by StephanH90 Β· P...This commit currently only adds a failing test.
Contributor checklist
Leave anything that you believe does not apply unchecked.
Bug fixes include regression tests
Chores
Documentation changes
...
but @Zach Daniel ... you said you will fix it next week!
its only sunday
ah it was just an ash_sql bump