Commit graph

1814 commits

Author SHA1 Message Date
Zach Daniel
08f56eddf4 improvement: if no authorizers are set, anyone can do anything 2023-09-17 16:05:02 -04:00
Zach Daniel
38dc478719 fix: ensure that can always returns an error when asked 2023-09-17 16:03:25 -04:00
Zach Daniel
76e744a54a improvement: explicit error on after_action hook mismatch 2023-09-16 12:33:25 -04:00
Stefan Wintermeyer
9617fa6910
Improve example update_timestamp docu (#693) 2023-09-16 06:48:53 -04:00
Zach Daniel
f6f0a3e26f fix: get type for manual action at compile time 2023-09-15 13:25:29 -04:00
Zach Daniel
b900290f0d docs: update custom type docs to handle nil values 2023-09-14 22:36:23 -04:00
Zach Daniel
6a2bb30d1d improvement: add allow_nil? to generic actions, defaults to false 2023-09-14 16:52:08 -04:00
Zach Daniel
e7f59862ab docs: lots of docs improvements 2023-09-13 23:18:14 -04:00
Zach Daniel
654c12cc78 docs: update registry option docs 2023-09-13 22:36:57 -04:00
Zach Daniel
8046bc98b0 docs: remove the registry example from api docs 2023-09-13 22:34:47 -04:00
Zach Daniel
6e2d1fd0ac docs: greatly improved DSL documentation in hex 2023-09-13 22:17:18 -04:00
Zach Daniel
58e7afde1b fix: properly handle bubbled up exceptions from type casting 2023-09-13 14:31:25 -04:00
Zach Daniel
0a35989802 fix: typo in new tracer setting logic 2023-09-13 13:58:40 -04:00
Zach Daniel
4804e8eb87 fix: properly expose nested errors on unions
closes: #692
2023-09-13 10:31:06 -04:00
Zach Daniel
b4221ecc6d improvement: set_handled_error/3 for when errors are returned 2023-09-13 00:05:04 -04:00
Zach Daniel
480d55a852 fix: propertly handle configured list of tracers 2023-09-12 21:47:30 -04:00
Zach Daniel
471bf8228c chore: fix typo properly 2023-09-12 11:56:34 -04:00
Zach Daniel
d1a0108db1 chore: typo 2023-09-12 11:54:55 -04:00
Zach Daniel
1f319faf97 improvement: support trace_type?/2 in tracers 2023-09-12 11:54:04 -04:00
Zach Daniel
91013c2de0 improvement: support stacktraces in set_error 2023-09-12 11:26:11 -04:00
Zach Daniel
47fbf4b35a improvement: support multiple tracers, instead of just one 2023-09-12 10:54:42 -04:00
Zach Daniel
e2855843ca improvement: support vector types 2023-09-11 22:28:51 -04:00
Josh Price
cedcda903f docs(dsl): various doc and formatting improvements
Tried removing all triple backticks to fix https://github.com/ash-project/ash/issues/690 but this didn't remove the warning about unclosed backticks.
2023-09-07 07:03:44 -04:00
Josh Price
08081c09ba docs(changeset): various doc and formatting improvements
Conference training driven development.
2023-09-07 07:03:44 -04:00
Zach Daniel
b45174fc54 fix: fix formatting for policies with conditions 2023-09-06 01:56:36 -04:00
Zach Daniel
1fde073bc1 fix: policy mermaid chart fix forbid_unless behavior 2023-09-06 01:46:22 -04:00
James Harton
5f6920ef92
improvement: Allow resources to opt out of the primary key requirement. (#687)
This is experimental and will likely cause breakages. It's to support time series tables.
2023-09-06 10:21:42 +12:00
Zach Daniel
567dcf6372 fix: better handling for negate error messages 2023-09-04 16:01:48 -04:00
Zach Daniel
427a42d45b improvement: raise runtime error on misuse of negate 2023-09-04 15:42:07 -04:00
Zach Daniel
879b52b900 fix: compile before ash tasks 2023-09-04 13:38:27 -04:00
Zach Daniel
b9e6327d7f improvement: add ash.reset and ash.tear_down 2023-09-04 13:07:14 -04:00
Zach Daniel
c67c77a617 fix: fix no such action error on create changesets
fix: remove policy documentation due to compile time links
2023-09-04 11:48:38 -04:00
Zach Daniel
5cd7194e5e chore: don't explain policy in module docs to test an issue 2023-09-04 11:34:50 -04:00
Zach Daniel
5b5995d783 improvement: show policy mermaid chart in moduledocs 2023-09-04 09:53:55 -04:00
Zach Daniel
967c467f84 chore: only generate for resources w/ policy authorizer 2023-09-04 09:23:22 -04:00
Zach Daniel
655fa42416 chore: clean up flow chart generated Or edges 2023-09-04 09:19:51 -04:00
Zach Daniel
a131dfeb03 fix: show policy conditions, and fix final destination of last policy condition 2023-09-04 09:03:47 -04:00
Zach Daniel
69623a1efe chore: cleanups for new mix task 2023-09-04 01:23:57 -04:00
Zach Daniel
8e2396b0b1 improvement: add mix ash.generate_policy_chart 2023-09-04 01:07:12 -04:00
Zach Daniel
030f240273 fix: include path in unique path for anonymous aggregates 2023-09-01 18:39:38 -04:00
Zach Daniel
e423ec5381 fix: give anonymous aggregates constant names 2023-09-01 17:23:04 -04:00
Barnabas Jovanovics
b661022736
fix: sort operator names in keyset (#684) 2023-09-01 06:53:01 -04:00
Zach Daniel
c5ea541b2d chore: rework atomics to atomic_update change and function
improvement: add `Ash.context_to_opts/1-2`
2023-08-29 14:39:38 -04:00
Zach Daniel
18cb24e7f7
improvement: implement atomics, expression-based changes (#682)
there is still a lot of potential work that needs to be on this front.
1. supporting atomics on create actions.
2. supporting atomics in upserts (this one may actually be much easier than the first one, for postgres specifically, due to ecto implementation details)
3. discovering places atomics can be more nicely integrated into existing changes, validations, policies
2023-08-28 16:05:26 -04:00
Zach Daniel
452ec7df9d chore: format 2023-08-25 13:57:13 -04:00
Zach Daniel
f05bcec2eb improvement: hide __order__ and __lateral_join_source__ on records 2023-08-25 13:21:26 -04:00
Zach Daniel
537d25c68d fix: action.update_default -> field.update_default typo 2023-08-25 12:10:36 -04:00
Zach Daniel
7d5fd04e5c fix: ensure that errors/records return the proper value in bulk creates
closes #681
2023-08-25 08:59:24 -04:00
Zach Daniel
97ab3272db fix: properly optimized nested get_path calls 2023-08-23 12:51:35 -04:00
Zach Daniel
221280f1f5 fix: simplify and fix duplicate detection in embedded resources 2023-08-22 19:02:38 -04:00