axdc
AEAsh Elixir
•Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
for sure! might be dragons, haven't touched this in a while, had a lot going on but things have changed and i should get to be active with elixir again very soon 🙂
22 replies
AEAsh Elixir
•Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
22 replies
AEAsh Elixir
•Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
22 replies
AEAsh Elixir
•Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
okay so the answer is yes because it works, but I absolutely don't remember how. reviewing the code now
22 replies
AEAsh Elixir
•Created by axdc on 8/31/2023 in #support
st_distance vs <-> in ash_geo for nearest neighbor search/filter (knn)
32 replies
AEAsh Elixir
•Created by axdc on 8/31/2023 in #support
st_distance vs <-> in ash_geo for nearest neighbor search/filter (knn)
Nice, definitely wanna stay in-ecosystem for all the goodies 🙂
32 replies
AEAsh Elixir
•Created by axdc on 8/31/2023 in #support
st_distance vs <-> in ash_geo for nearest neighbor search/filter (knn)
given that correction:
32 replies
AEAsh Elixir
•Created by axdc on 8/31/2023 in #support
st_distance vs <-> in ash_geo for nearest neighbor search/filter (knn)
Is a benefit of using Ash primitives like preparations and calculations rather than modify_query that it will be simpler to integrate with other ash functionality like pagination?
32 replies
AEAsh Elixir
•Created by axdc on 8/31/2023 in #support
st_distance vs <-> in ash_geo for nearest neighbor search/filter (knn)
I'm getting
error: undefined variable "listing"
, reading the prepare
docs. Haven't used this part of Ash yet!32 replies
AEAsh Elixir
•Created by axdc on 8/31/2023 in #support
st_distance vs <-> in ash_geo for nearest neighbor search/filter (knn)
(I'm not sure if this is optimal or the pros/cons vs a calculate-based approach)
32 replies
AEAsh Elixir
•Created by axdc on 8/31/2023 in #support
st_distance vs <-> in ash_geo for nearest neighbor search/filter (knn)
I have my system working!
The action:
The "modified" query (I guess I'm more making one from scratch using the ash argument):
I'm going to have to filter out some obviously bad data in addition to nils (i've got some null islands and some just... strange entries) but it's working!
32 replies
AEAsh Elixir
•Created by axdc on 8/25/2023 in #support
Creating an Identity referencing a key within a :map attribute (postgres-stored jsonb)
ok, got it.
so for reference what I'm doing right now (as a "workaround", but it works the same) is just extracting the values I want to key on from the json before sending it all to ash, and I have those keys as real attributes in the resource with an identity defined on them. Working great. Those specific keys should be stable.
I /would/ like, in another area, to /select and filter/ based on the contents of the jsonb, which is why I figured I'd try to jump right in with upserting on it. Is reading, filtering, etc supported?
(The data has over five hundred fields in an unstable "schema", that's why I'm using jsonb. I've been informed postgres wouldn't take kindly to that many columns.)
7 replies
AEAsh Elixir
•Created by axdc on 5/23/2023 in #support
LiveView uploads with AshPhoenix.Form
27 replies
AEAsh Elixir
•Created by axdc on 5/23/2023 in #support
LiveView uploads with AshPhoenix.Form
that would be fantastic 🙂
27 replies
AEAsh Elixir
•Created by axdc on 5/23/2023 in #support
LiveView uploads with AshPhoenix.Form
still getting used to elixir's scope and mindset of assigning from private functions, instead of the nested if hell i find myself reaching for first. but this is sooo much cleaner 😭
27 replies
AEAsh Elixir
•Created by axdc on 5/23/2023 in #support
LiveView uploads with AshPhoenix.Form
okay this feels like a breakthrough, excited rn
is there anything devastatingly busted about this approach? it's working :>
27 replies
AEAsh Elixir
•Created by axdc on 5/23/2023 in #support
LiveView uploads with AshPhoenix.Form
EDIT: I'm getting
** (KeyError) key :wallpaper_url not found in: %{__changed__: %{}, ...
when I don't change the wallpaper, so I think I might have to assign that to something at mount? But when I upload it persists now, fixed a bug with using an atom instead of a string as a key
27 replies
AEAsh Elixir
•Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
22 replies
AEAsh Elixir
•Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
Confirmed that with or without the hidden field, the checked values don't stay checked
22 replies
AEAsh Elixir
•Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
I would like to do it in a not-strange way 😓
22 replies