frankdugan3
frankdugan3
AEAsh Elixir
Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
Turns out my problem was super simple. The value in @value check wasn't working because I was using ci_string, had to cast the elements in @value for comparison. 🤦‍♂️
22 replies
AEAsh Elixir
Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
Awesome, thanks!
22 replies
AEAsh Elixir
Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
Though, my case is much simpler, just a list of strings.
22 replies
AEAsh Elixir
Created by axdc on 5/2/2023 in #support
Multiple checkbox group with Ash Forms
@axdc Did you ever get this sorted out? Currently adapting the same guide and running into the same issue. 😄
22 replies
AEAsh Elixir
Created by rapidfsub on 7/24/2023 in #support
Need a feature for customizing error message.
Zach already gave the OK on adding that feature: https://discord.com/channels/711271361523351632/712035333432147989/1088140734634401935 I got sidetracked on it though, would be good if you could put together an issue for it so we can track the feature. 😄
4 replies
AEAsh Elixir
Created by jart on 7/6/2023 in #support
How best to model partial updates of optional attributes?
I was just wondering the same thing, thinking about upcoming bulk updates in the context of a data-table where you select several rows and bulk update only the fields you change. :thinkies:
5 replies
AEAsh Elixir
Created by Jason on 6/17/2023 in #support
attribute match constraints error message
We had a discussion about that here: https://discord.com/channels/711271361523351632/712035333432147989/1088140734634401935 TLDR: PR welcome, I was going to do it and then got distracted. 😅
4 replies
AEAsh Elixir
Created by Blibs on 6/8/2023 in #support
Expand Ash.Query.Operator built_in operators
IIRC, that kind of thing is being tracked by this issue: https://github.com/ash-project/ash/issues/374
4 replies
AEAsh Elixir
Created by AlecStewart1#1125 on 6/6/2023 in #support
Aggregates with resource relationships
Yeah, I'm using a materialzed view for a report or two and have an Oban job that refreshes it regularly and on demand.
25 replies
AEAsh Elixir
Created by AlecStewart1#1125 on 6/6/2023 in #support
Aggregates with resource relationships
You can omit it if :id is OK.
25 replies
AEAsh Elixir
Created by AlecStewart1#1125 on 6/6/2023 in #support
Aggregates with resource relationships
Yeah, that is more of a PG specific question, and I'd assume for something that large, you would want an index to increase efficiency.
25 replies
AEAsh Elixir
Created by AlecStewart1#1125 on 6/6/2023 in #support
Aggregates with resource relationships
Sorry, missed your last question. It will return whichever field (id by default). So if you wanted a different field (like :label), you'd just need to specify it.
25 replies
AEAsh Elixir
Created by AlecStewart1#1125 on 6/6/2023 in #support
Aggregates with resource relationships
list [name], [relationship], [field]
25 replies
AEAsh Elixir
Created by AlecStewart1#1125 on 6/6/2023 in #support
Aggregates with resource relationships
Looking at the docs, it looks like the 3rd argument is the field, yes.
25 replies
AEAsh Elixir
Created by AlecStewart1#1125 on 6/6/2023 in #support
Aggregates with resource relationships
I've actully never used the list aggregate, so I'm not familair w/ the API on that one. 😅
25 replies
AEAsh Elixir
Created by AlecStewart1#1125 on 6/6/2023 in #support
Aggregates with resource relationships
The path can also traverse multiple relationships deep, which is very convenient.
25 replies
AEAsh Elixir
Created by AlecStewart1#1125 on 6/6/2023 in #support
Aggregates with resource relationships
For example, sum :total_population, :cities, :population
25 replies
AEAsh Elixir
Created by AlecStewart1#1125 on 6/6/2023 in #support
Aggregates with resource relationships
In the case of count, you generally don't need to refer to a specific field. But in the case of say a first or sum aggregate, you often want a specific field.
25 replies