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
295778bbf5
improvement: Add Changeset.is_valid/1
guard. ( #1437 )
2024-09-06 12:57:36 +12:00
Zach Daniel
b6e1e80fc2
fix: properly pass actor when running filters at runtime
...
fix: misplaced curly bracket when handling struct type casting
2024-09-05 16:40:39 -04:00
Zach Daniel
ec12332e95
fix: properly leverage atomic upgrade read action for an update action
2024-09-05 15:04:38 -04:00
Zach Daniel
de35b8049a
chore: release version v3.4.5
2024-09-05 13:08:00 -04:00
Zach Daniel
e8405b43b7
chore: fix in one more place
2024-09-05 00:45:01 -04:00
Zach Daniel
3ce48fb71f
fix: fix type definition for atomic_upgrade_with
2024-09-05 00:40:10 -04:00
Zach Daniel
26ad0b2a9b
chore: release version v3.4.4
2024-09-04 22:41:56 -04:00
Zach Daniel
90332d01f2
fix: use consistent naming for configurations
...
closes #1436
2024-09-04 22:41:05 -04:00
e6a7006c30
feat(Ash.Reactor): Add load
option to existing actions, and add new step type. ( #1435 )
2024-09-05 13:59:22 +12:00
Zach Daniel
24cc008410
improvement: ArgumentError for non-existent actions in Ash.can?
2024-09-04 20:51:54 -04:00
Zach Daniel
d6a973cef0
improvement: better error messages on incorrect action types
2024-09-04 20:41:56 -04:00
Zach Daniel
b999fb10ab
chore: add owl as an explicit dependency
2024-09-04 13:32:49 -04:00
Zach Daniel
5cdf9577fb
chore: update changelog
2024-09-04 10:33:14 -04:00
Zach Daniel
08790849cb
chore: release version v3.4.3
2024-09-04 10:32:55 -04:00
Zach Daniel
d144be692e
fix: properly await tasks from lazy loading multiple relationships
2024-09-04 10:32:34 -04:00
Zach Daniel
745aa6e85f
chore: update changelog
2024-09-03 22:38:02 -04:00
Zach Daniel
032a2426d5
chore: release version v3.4.2
2024-09-03 22:28:20 -04:00
Zach Daniel
a2cfaa5fe0
chore: use a better config name
2024-09-03 22:24:24 -04:00
Zach Daniel
06cd509e1f
chore: make the new policy behavior opt-in with config
2024-09-03 22:22:46 -04:00
Zach Daniel
82230f1a89
fix: don't clean calc deps that may need to be reused
2024-09-03 19:00:28 -04:00
Zach Daniel
3c90063c40
fix: fix upsert condition for ets bulk creates
2024-09-03 18:01:43 -04:00
Andreas Donig
de0f72b475
Fix: honor bulk upsert condition ( #1432 )
...
* Require Ash.Expr to make sure upsert_conflict/1 is available
* Make sure it correctly tests opts[:upsert_condition] for nilness
* Make sure the base changeset also adheres to the upsert condition
* Revert the changes so we can show the problem with a test case
* Add a test case that shows what the problem is
* Add the upsert_condition filter to the base changeset again
* Change the way the test checks because bulk_create/4 does not return unchanged records
2024-09-03 16:23:12 -04:00
Zach Daniel
abef09148e
fix: honor return_destroyed?
in soft destroy actions
...
fixes #1433
2024-09-02 14:16:25 -04:00
Zach Daniel
1002d8178e
improvement: make read policies more consistent, always preferring to filter over raise
...
docs: document access type
2024-09-02 14:11:09 -04:00
Zach Daniel
6f2a14715d
improvement: show an explanation when no policies apply
2024-09-02 12:48:36 -04:00
pinetops
dd44d5dcf2
improvement: Add a case for handling mapsets in Filter.map ( #1427 )
2024-09-02 12:41:57 -04:00
Zach Liss
f1874a708d
docs: Fix typo in authorize-access-to-resources howto ( #1431 )
2024-09-02 10:58:33 -04:00
Barnabas Jovanovics
0dc3a75aaf
use Ash instead of Domain module for read in docs ( #1430 )
2024-09-02 10:58:04 -04:00
pinetops
2c754f90a6
improvement: Cache always selected fields and use mapsets for building select list ( #1428 )
...
* Add attribute_names function on Info that returns MapSet
And use that when calculating select lists.
2024-09-01 17:06:51 -04:00
pinetops
cdbb0c4608
Normalize approach to caching attributes/calculations/relationships ( #1425 )
2024-09-01 12:44:45 -04:00
Zach Daniel
c7eaabdb2e
fix: correctly handle return values of batch callbacks ( #1424 )
...
* improvement: factor out static branches at compile time
---------
Co-authored-by: Hannes Wüthrich <hannes.wuethrich@zebbra.ch>
2024-08-31 15:53:14 -04:00
Zach Daniel
8ba9eeb3b4
fix: properly clean calculation dependency values, and don't unload them with lazy?
2024-08-31 15:32:54 -04:00
Zach Daniel
926762cf38
improvement: do not eager evaluate filters for read action policies
2024-08-31 14:34:29 -04:00
Zach Daniel
4adddcdd69
Revert "improvement: make authorization failures behave consistently across reads"
...
This reverts commit ffa37d0c95
.
2024-08-30 19:51:46 -04:00
Zach Daniel
ffa37d0c95
improvement: make authorization failures behave consistently across reads
2024-08-30 19:45:28 -04:00