Ash Framework
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
JoinAsh Framework
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
Joinash_postgres.generate_migrations not working
mix ash.codegen remove_id_from_tokens, it still insisted there is no change detected.
...:ash_domains.
```
in config/config.exs
import Config
...AshAuthentication Testing
Unsupported expression in Elixir.AshPostgres.SqlImplementation query: `datetime_add`
OrgSubscription is a many_to_many resource that connects Organization to SubscriptionPlan.
```elixir...No such input for atomic_update
Using no attributes to use a parent_type / parent_id style table as a join table
How to model this runtime config in Ash?
(true). This means that only one row is allowed in the table. The table itself just has one column which is a JSONB type. When the app starts up it reads this config and saves it with Application.put_env. Then in various places in the app I just fetch the config from the application env and pattern match out what I need. I could probably use persistent_term, but it's not a big struct. When a change is made to this config struct I update the database row and use Oban.Notifier to broadcast a message to all other instances of my app to tell them to refresh their application env cache of the config.
What would be the Ash way to implement this? It doesn't have to work exactly like this. This is the best I came up with, but I'm happy to hear alternatives 🙂...Test initialization takes more time than expected
time mix test. Elixir's test runner says it takes 0.5 seconds to run all tests, so something happens before the test runner starts. Right now my hypothesis is that `Getting extensions in cu..."ERROR 42704 (undefined_object) type "vector" does not exist" during migration.
Post resource:
1. First, created setup_vectorization.ex in folder lib
...Is there any public function to prettify a BulkResult/Change error?
:string error message but in this case there is none, i think AshJsonApi translates this errors to a message somehow, is that function public?
```elixir
%Ash.BulkResult{
status: :partial_success,...AshJsonApi.Error.to_json_api_errors(Domain, Resource, error, :create)ManualRead for wrapping an API using attribute constraints
"", which I'd prefer to be nil. Pretty sure this can be handled with constraints on attributes when the values are casted.
The example in the docs shows manually creating the resource's struct from the API response and using Ash.Query.apply_to/2-3. Will this approach apply the constraints for the returned values doing this? Or is there a better way to make sure the constraints are applied?...Is there a quick way to let Ash Authentication (Phoenix) inherit my custom daisyUI theme?
ash_authentication ships with its own styles, which is fine on its own, but won't work well with phoenix from now on (imho).
...Possible regression on actions with upserts on custom identity and embedded unions
main of ash?datetime_add shows error Could not cast function arguments for datetime_add/3
calculate :ends_at, :datetime, expr(datetime_add(starts_at, minutes, :minutes))
calculate :ends_at, :datetime, expr(datetime_add(starts_at, minutes, :minutes))
:minute instead of :minutesHow to conditionally do `run_oban_trigger`?
change run_oban_trigger(:respond) which triggers
the trigger :respond.
So, whenever user type a message and enter, an LLM response is generated. I want to change it to only user explicitly type like "@M, xxxx", then the response from LLM should be triggered.
How to do that?...How to setup "AshPostgres.Extensions.Vector"
lib/ folder, and in a .ex fileopentelemetry_ash not ready for use or not properly configured?
opentelemetry_ash package (0.1.0). But it doesn't seem to hook correctly into the parent spans, looks kind of useless and hard to navigate. We use SigNoz to visualise the spans, it looks like on the screenshot....
Creating a resource from another endpoint
{{url}}/api/json/location...Precondition checks and atomic
Is there a way to trigger a before_action without trying to run it?
Port conflict when running new app built using Ash installer