Commit graph

3119 commits

Author SHA1 Message Date
Zach Daniel
26160e446b chore: require name for ash.codegen 2023-12-27 10:12:19 -05:00
Zach Daniel
19d18c5fcc improvement: better formatting of nested expressions
improvement: helpful errors when misusing `.` in expressions
2023-12-22 22:22:59 -05:00
Zach Daniel
55d83e6b4c chore: release version v2.17.17 2023-12-22 21:10:25 -05:00
Zach Daniel
0f8bb664ab fix: properly move maps & lists to expression paths
fix: set tenant when running authorization queries

closes: #812
2023-12-22 21:09:00 -05:00
Zach Daniel
bb5aa435a3 chore: release version v2.17.16 2023-12-22 19:06:57 -05:00
Zach Daniel
d390d65146 improvement: simplify used aggregate detection
improvement: add `lazy/1` to expressions
docs: add expression docs
2023-12-22 19:06:13 -05:00
Zach Daniel
3a1923fdeb improvement: support providing an input key in predicate maps 2023-12-21 17:17:43 -05:00
Zach Daniel
097f8b0023 chore: release version v2.17.15 2023-12-21 13:30:34 -05:00
Zach Daniel
eb05e9be63 improvement: support streaming without keyset pagination
use the new `allow_stream_with` and `stream_with` options to control
what strategy may be used to stream query results.
2023-12-21 08:35:49 -05:00
Zach Daniel
0932cf32a7 improvement: add callbacks for bulk actions on manual actions 2023-12-20 21:23:13 -05:00
Zach Daniel
ed887413d7 improvement: base case iterative bulk destroy implemented 2023-12-20 21:08:40 -05:00
Zach Daniel
8c17434803 improvement: add iterative, streaming implementation for bulk updates 2023-12-20 17:33:43 -05:00
Zach Daniel
1cb5e2860d docs: update getting started guide with latest recommendations 2023-12-20 09:36:00 -05:00
Zach Daniel
f487bbb316 chore: add missing CI dep 2023-12-20 09:27:47 -05:00
Zach Daniel
0f734b2538 chore: rename CI 2023-12-20 09:26:26 -05:00
Zach Daniel
d9587710a2 chore: cleanup 2023-12-20 09:25:57 -05:00
Zach Daniel
22f71aa36c improvement: test ASH_THREE subprojects 2023-12-20 09:24:55 -05:00
Rebecca Le
ba6eb773b8
docs: Fill out shortdoc for generate_policy_charts mix task (#808)
This is the one-liner that is shown when running `mix help` to list tasks
2023-12-19 22:51:13 -05:00
Zach Daniel
1b896765a8 chore: release version v2.17.14 2023-12-19 21:57:53 -05:00
Zach Daniel
ff1a590f46 fix: empty milliseconds for utc datetime must have precision 6
fix: ensure actor & authorize? contexts are set even if not provided
2023-12-18 20:14:36 -05:00
Zach Daniel
867c786388 chore: remove unused variables 2023-12-18 16:02:39 -05:00
Zach Daniel
e3605bd80f improvement: detect impending manage_relationship calls when checking attribute presence 2023-12-18 12:47:49 -05:00
Zach Daniel
3ee3279d2f fix: ignore load/limit/offset in aggregate queries, instead of raising
closes #806
2023-12-18 08:28:52 -05:00
Zach Daniel
5f3556e27f fix: properly set changed? for all changesets 2023-12-16 19:22:52 -05:00
Zach Daniel
ca792548ba chore: properly pin values in attribute_equals atomic validation 2023-12-16 13:46:12 -05:00
Zach Daniel
e7513e6e32 improvement: add stacktrace context to errors better 2023-12-16 13:36:49 -05:00
Zach Daniel
575fe52b06 chore: fix integer atomic update casting 2023-12-16 10:41:21 -05:00
Zach Daniel
2233a33523 improvement: support tenancy on manual actions
docs: update cheat shets
fix: honor tenant option on aggregates

closes #805
2023-12-16 10:33:10 -05:00
Zach Daniel
3be83d6ca4 improvement: lay the groundwork for fully atomic actions 2023-12-16 10:14:02 -05:00
Zach Daniel
1acca3d8e1 chore: return proper authorization errors from actions on failure 2023-12-15 20:12:26 -05:00
Zach Daniel
8e5f628286 fix: pass proper context into manual actions, remove unnecessary changeset code 2023-12-15 18:43:29 -05:00
Zach Daniel
52a62c7c45 chore: fix tests 2023-12-15 15:45:23 -05:00
Zach Daniel
b3365f8d04 chore: add benchmark for simple creates 2023-12-15 15:39:37 -05:00
Zach Daniel
e22c6c7927 fix: ensure actions always raise an error class 2023-12-15 15:33:10 -05:00
Zach Daniel
ad22eeb7e9 improvement: rewrite creates to not use Ash.Engine 2023-12-15 15:10:01 -05:00
Zach Daniel
4cfdb0d635 chore: remove commented out code 2023-12-15 10:15:49 -05:00
Zach Daniel
9103781379 improvement: remove Ash.Engine from update/destroy actions 2023-12-15 10:14:40 -05:00
Zach Daniel
d6ff670e0a chore: fix typespec for Ash.Query.Function 2023-12-15 08:46:18 -05:00
Zach Daniel
af9cd901f5 chore: release version v2.17.13 2023-12-14 16:54:01 -05:00
Zach Daniel
5b39ff8e04 improvement: add Ash.Error.from_json/2
improvement: accept expressions in `Ash.Query.calculate`
2023-12-14 16:52:34 -05:00
Thales Grilo
9d2da58fb2
improvement: Adds %Ash.NotSelected{} to ash 3 (!634) (#804)
*  create Ash.NotSelected, add test

*  add ash_three test

* 👌 fix formatting

* 👌 add missing field value

---------

Co-authored-by: thales <thales@uplearn.co.uk>
2023-12-14 16:14:15 -05:00
Zach Daniel
cdb5db9c07 fix: properly unnested union values passed into Ash.Type.Union.prepare_change_array 2023-12-14 09:24:22 -05:00
Zach Daniel
0763335650 docs: update error.ex docs 2023-12-14 09:06:07 -05:00
Robert Graff
014621cc09
test: reproduce bug casting embedded union arguments (#803) 2023-12-14 09:04:56 -05:00
Zach Daniel
cfed7c3738 chore: release version v2.17.12 2023-12-14 08:30:49 -05:00
Zach Daniel
d09c694132 fix: thread context through when setting source constraint on embeds 2023-12-13 17:11:52 -05:00
Robert Graff
e13bb6e0b4
test: Failing test for threading source information through embedded attributes (#801) 2023-12-13 16:47:11 -05:00
Zach Daniel
d118d90d51 chore: fix dialyzer issue and corresponding bug from last commit 2023-12-13 15:29:12 -05:00
Zach Daniel
7298a4b51b improvement: honor field policies in sort expressions 2023-12-13 15:08:39 -05:00
Zach Daniel
3029e508f7 chore: release version v2.17.11 2023-12-12 20:39:50 -05:00