Commit graph

4523 commits

Author SHA1 Message Date
Zach Daniel
bf741990a2 improvement: add _new options for Ash.Resource.Igniter 2024-09-15 14:53:23 -04:00
Robert Graff
3d4ee579f7
doc: note that contexts are not shared across queries (#1461) 2024-09-14 16:04:52 -04:00
Zach Daniel
e69ac65b00 chore: release version v3.4.11 2024-09-13 18:55:39 -04:00
Zach Daniel
8ae2a1cd90 improvement: update igniter and fix deprecation warnings 2024-09-13 18:55:24 -04:00
Zach Daniel
65ade2b014 chore: release version v3.4.10 2024-09-13 18:44:24 -04:00
Zach Daniel
42a5ee4d80 fix: properly add all types of extensions in mix ash.patch.extend 2024-09-13 18:43:56 -04:00
sinisijacob
241e7b6aa9
chore: Moved common block editing code into single function (#1460)
* adding a generic block editor and repointing some of the similar functions to it
2024-09-13 18:13:14 -04:00
Zach Daniel
d17a44a9c1 chore: update changelog 2024-09-13 14:51:28 -04:00
Zach Daniel
22358694b6 chore: release version v3.4.9 2024-09-13 14:45:13 -04:00
Zach Daniel
832070a69a chore: format 2024-09-13 14:45:00 -04:00
Zach Daniel
c171bfae5e improvement: small improvements for policy breakdown formatting 2024-09-13 09:38:01 -04:00
dependabot[bot]
60cc9a6f3b
chore(deps-dev): bump mimic in the dev-dependencies group (#1459) 2024-09-12 19:37:13 -04:00
dependabot[bot]
cbb6d9bc15
chore(deps): bump ecto in the production-dependencies group (#1458) 2024-09-12 19:37:01 -04:00
Zach Daniel
45b037e2ba fix: ensure that field policies don't interfere with relationship loading
closes #1457
2024-09-12 11:12:37 -04:00
Zach Daniel
95ac815948 chore: format 2024-09-12 10:00:08 -04:00
Zach Daniel
5cf0f6b7d1 fix: properly merge provided context in atomic bulk actions 2024-09-12 09:58:56 -04:00
Zach Daniel
27012af42f fix: properly handle rollbacks from DBConnection failures for belongs to relationships
closes #1456
2024-09-12 09:28:20 -04:00
Zach Daniel
6a0e92a697 chore: fix added validation builder in Ash.Resource 2024-09-11 20:19:06 -04:00
Zach Daniel
bbc59b4b7f fix: don't generate doubly nested policies when adding policies in igniter 2024-09-11 19:59:58 -04:00
m0rt3nlund
892598e439
test: Failing tests for creating Ash.Resource.Action validation using DSL builder (#1454)
* Add build_action_validation to Ash.Resource.Builder

* Add test for Ash.Resource.Builder

---------

Co-authored-by: morten.lund@maskon.no <morten.lund@maskon.no>
2024-09-11 16:32:18 -04:00
Jonatan Männchen
85520d3974
Fix: fix Ash.Changeset.manage_relationships/4 for list primary keys (#1455) 2024-09-11 16:21:32 -04:00
Jonatan Männchen
0ea5ce64b6
fix: Handle Ash.Query.filter for array values (#1452)
* Refactor Ash.Filter.parse_predicates/3

* Handle Ash.Query.filter for array values
2024-09-11 15:28:08 -04:00
andreas-ementio
672f16c527
fix: cast embedded time properly (#1451)
just like the commit d4a6feb58 for datetime but for time
plus reordering the functions so its the same order as in
naive_datetime.ex and date.ex
2024-09-11 15:26:23 -04:00
Zach Daniel
8f0621378a test: add test for manage relationship error paths 2024-09-11 15:24:33 -04:00
Zach Daniel
2e2ab0e778 fix: require private/non-accepted attributes after before action hooks 2024-09-11 10:24:48 -04:00
Zach Daniel
cb3facb519 fix: we cannot assume that after_action/1 can be done atomically
The reason for this is that a given change may access `changeset.data`
which will not be available. This may introduce compile errors for some users
unfortunately, there is nothing we can do about this. They will need to change
to writing custom changes w/ the `atomic/3` callback that adds an after action
hook

improvement: honor a `_union_type` type param when casting unions
2024-09-11 09:57:22 -04:00
Zach Daniel
5b89286854 chore: format 2024-09-10 17:35:49 -04:00
sinisijacob
8035f80383
igniter function to add a relationship to a resource (#1450) 2024-09-10 17:27:32 -04:00
Zach Daniel
e29897e1aa improvement: add system for action_select, which can limit selects from mutations 2024-09-10 15:08:08 -04:00
Zach Daniel
e33dc23a07 improvement: support select_by_default? flag on attributes 2024-09-10 13:24:56 -04:00
Zach Daniel
0f31d463d9 docs: update docs to expand PII term 2024-09-09 13:34:37 -04:00
Zach Daniel
c0d1ccb2a8 docs: some helpful text and links for aggregate docs 2024-09-09 10:28:08 -04:00
Zach Daniel
e337aaa35b chore: udpate changelog 2024-09-09 10:24:58 -04:00
Zach Daniel
83abae0eb1 chore: release version v3.4.8 2024-09-09 10:22:50 -04:00
Zach Daniel
cee0fc990a docs: add more docs for aggregates 2024-09-09 10:22:32 -04:00
Nduati Kuria
2c197c03df
Use correct extensions in ash.patch.extend.ex (#1446) 2024-09-08 15:47:53 -04:00
Zach Daniel
28233f4d97 chore: update subproject policy tests 2024-09-07 08:17:16 -04:00
Zach Daniel
f761f6241f chore: cleanup unused deps 2024-09-07 07:53:10 -04:00
Zach Daniel
4f31109bd9 fix: support passing a forbidden error to policies per the docs
fixes #1443
2024-09-07 07:51:01 -04:00
Zach Daniel
0dde9f0fc1 fix: don't repor the action as the actor for policy breakdowns
fixes #1441
2024-09-07 07:36:37 -04:00
Zach Daniel
7c1808bd9e chore: update mix.lock 2024-09-06 18:01:35 -04:00
Zach Daniel
a97a65f6a6 fix: check changeset.action before raising a required primary action error 2024-09-06 17:03:57 -04:00
Zach Daniel
44c0d09e30 fix: ensure proper return types for :stream strategy bulk update/destroys 2024-09-06 15:46:02 -04:00
Zach Daniel
9e21d6209b chore: release version v3.4.7 2024-09-06 15:15:15 -04:00
Zach Daniel
e148dda41e improvement: add add_bypass and add_policy igniter utilities 2024-09-06 15:14:59 -04:00
Zach Daniel
c23db26380 chore: release version v3.4.6 2024-09-06 09:58:56 -04:00
Zach Daniel
be807aa9e2 fix: don't select destination attributes that don't exist 2024-09-06 09:56:00 -04:00
b97040c9c4
chore: Add failing test for loading attributes of no-attribute relationships. (#1438) 2024-09-06 09:50:37 -04:00
Zach Daniel
5f5cccc2ea improvement: show informative error explaining the use of filter checks with create actions
improvement: show the actor's primary key in policy breakdowns
improvement: add an expanded description option to checks
improvement: use expanded description to display filled in filter templates in policy breakdowns
2024-09-06 09:46:27 -04:00
Rebecca Le
b13181730b
docs: Fix examples for builtin before_action and after_action preparations (#1439) 2024-09-06 00:24:02 -04:00