Zach Daniel
67c6e5e22a
fix: ensure that all notifications are sent for bulk destroy/update
...
closes #1186
2024-05-22 18:42:19 -04:00
Zach Daniel
e01e95235f
chore: release version 3.0.3
2024-05-22 17:48:34 -04:00
Zach Daniel
9b3eace611
fix: properly hydrate and scope sorts
...
improvement: support anonymous aggregates and calculations in queries
2024-05-22 17:47:03 -04:00
Guillaume Cugnet
ac9afafcd9
docs: Update project-structure.md ( #1196 )
...
Seems there were a just a little typo and a lacking `end` word.
2024-05-22 13:08:22 -04:00
danielatdpg
05379e15b2
fix: handle list of atomic conditions ( #1194 ) ( #1195 )
2024-05-22 11:38:15 -04:00
Barnabas Jovanovics
3e7f691add
fix: handle nil value for old_values ( #1191 )
2024-05-22 09:01:35 -04:00
ab3786ebf6
feat(Ash.Reactor): Add bulk_update
step type. ( #1185 )
2024-05-22 15:26:51 +12:00
dependabot[bot]
a964b3b27a
--- ( #1190 )
...
updated-dependencies:
- dependency-name: ex_doc
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-21 19:33:38 -04:00
Riccardo Binetti
86676cd0fc
feat: allow retrieving the count of paginated relationships ( #1183 )
2024-05-21 08:48:11 -04:00
Jinkyou Son
aae679f50e
improvement: Implement show_sensitive?
config ( #1180 )
...
* Refactor with Ash.Helpers.redact/1
* Implement show_sensitive? config
* Use Application.compile_env/3 instead of Application.get_env/3
* Update sensitive-data.md
2024-05-21 08:47:51 -04:00
Srikanth Kyatham
182e1ab09f
docs: Test resource mix install patch ( #1188 )
...
* Fixing Mix.install bug
* Fixing spelling mistake
2024-05-21 08:27:25 -04:00
dependabot[bot]
ee261f6aef
--- ( #1184 )
2024-05-20 18:56:40 -04:00
Zach Daniel
3f6e5c8ee8
fix: allow all strategies for bulk actions in code interfaces by default
2024-05-20 18:06:04 -04:00
807ed72e89
chore: run formatter.
2024-05-21 09:17:58 +12:00
1d5d247d7a
feat(Ash.Reactor): Add bulk_create
step type.
2024-05-21 09:14:02 +12:00
Zach Daniel
720f08f2eb
chore: remove unnecessary line from docs
2024-05-20 10:25:06 -04:00
Zach Daniel
a162b52b7f
fix: use Ash.Sort.parse_input/3
in Ash.Query.sort_input/2
2024-05-20 09:52:52 -04:00
Zach Daniel
2dcbafac4e
chore: add alternative in doc
2024-05-18 10:30:59 -05:00
Zach Daniel
d84062f676
fix: improve Ash.Domain.Info typespecs
...
improvement: support `filter_input` and `sort_input` in `Ash.Query.build/2`
2024-05-18 10:27:12 -05:00
Riccardo Binetti
9fc5ddfe2b
fix: make Ash.Resource.Validation.Changing work correctly in atomics ( #1178 )
...
- Use the correct option key to select the field
- Fail without hitting the data layer if the attribute is not changing
- Allow checking relationships like the non-atomic counterpart
2024-05-16 18:15:35 -05:00
Riccardo Binetti
16b7ea7693
fix: check the where condition before checking validation atomicity ( #1177 )
...
:not_atomic was returned for a non-atomic validation even if the where condition
evaluated to false
2024-05-16 15:49:08 -05:00
Zach Daniel
6c2d34753c
improvement: add template_requires_actor
check for changesets
...
improvement: don't use queries for streaming if they have hooks
2024-05-16 11:53:29 -05:00
Zach Daniel
23d7479417
fix: handle nil
notification results better
...
fix: don't emit after batch notifications if `notify?: false`
2024-05-16 11:19:24 -05:00
Barnabas Jovanovics
51512f7218
fix: prefer resource domain over option domain ( #1176 )
2024-05-16 10:38:51 -05:00
Riccardo Binetti
65e9f51907
fix: don't require domain for empty stream bulk update and destroy ( #1175 )
...
It can't be extracted from an empty list, but it's not actually needed
2024-05-16 09:57:10 -05:00
Zach Daniel
d053db0736
improvement: consider from: nil
in changing_attributes/1
check
2024-05-16 09:55:01 -05:00
Rebecca Le
619a0d61ad
bug: Add more failing tests around cascade_destroy functionality ( #1173 )
...
Issues occur when there is no data to cascade destroy, or notifications are requested but none are returned
2024-05-16 09:54:22 -05:00
Sucipto
441bc74d40
docs: fix typo on destroy actions ( #1174 )
2024-05-16 09:54:06 -05:00
Zach Daniel
751153990b
docs: add alternatives guide
2024-05-16 09:38:31 -05:00
Barnabas Jovanovics
b4cf231be2
fix: only return valid non nil values items from generator ( #1121 )
2024-05-16 08:26:56 -05:00
Zach Daniel
7f7c1377cf
fix: properly validate input action on bulk destroy
...
fix: allow setting `authorize?: false`
2024-05-16 00:02:18 -05:00
Zach Daniel
b74ef1e83e
chore: set default value for get?: true
2024-05-15 23:36:40 -05:00
Zach Daniel
13c57a6b7e
fix: honor get?
for bulk update/bulk destroy
2024-05-15 23:25:18 -05:00
Rebecca Le
48b458c4fd
bug: Add failing test for verifying bulk destroy actions ( #1172 )
...
* bug: Add failing test for verifying bulk destroy actions
* bug: Add failing test for skipping authorization checks on a bulk destroy
2024-05-15 23:24:44 -05:00
Alan Heywood
4214522302
^ref argument order fixes ( #1171 )
2024-05-15 19:56:06 -04:00
Zach Daniel
937d026827
chore: release version v3.0.2
2024-05-15 16:50:39 -05:00
Zach Daniel
7ec98ef8ab
fix: properly persist simple_notifiers
2024-05-15 16:46:16 -04:00
Zach Daniel
5b18e71738
fix: accept ids in code interfaces again
2024-05-15 15:45:58 -04:00
Zach Daniel
835187df49
fix: ensure that the changed?
context is set in after action hooks on batches
2024-05-15 14:08:19 -04:00
Zach Daniel
ad0274b0a3
improvement: add pattern matching for clarity on ref/1
and ref/2
...
chore: remove debug logger configuration from test
2024-05-15 11:25:54 -04:00
Zach Daniel
8481873ed5
fix: allow for inferred domains when authorizing join queries
...
closes #1167
2024-05-15 09:48:24 -04:00
m0rt3nlund
d3ff7b1656
Update sensitive-data.md, tyring to clearify that public? applies to … ( #1168 )
...
* fix typo
* Update sensitive-data.md, tyring to clearify that public? applies to read
---------
Co-authored-by: Barnabas Jovanovics <barnabas.jovanovics@gmail.com>
2024-05-15 09:31:52 -04:00
Zach Daniel
35bbd3f1b0
docs: use strict_loads
false in upgrade guide
2024-05-14 21:29:48 -04:00
Zach Daniel
2681684922
improvement: add can_return_nil?/1
callback to Ash expressions
2024-05-14 17:58:13 -04:00
Zach Daniel
3263ec2ee9
fix: don't show a type error on nil
for lists
...
closes #1166
2024-05-14 17:09:34 -04:00
Davide Briani
449da541e2
Fix: keep data's metadata in atomic update ( #1165 )
2024-05-14 13:17:51 -04:00
Zach Daniel
576c729bba
improvement: raise argument error on unknown options in Ash.Type.NewType
...
closes #1142
2024-05-14 12:34:25 -04:00
Zach Daniel
23d78ec43f
improvement: use the source
configuration for attributes in embedded resources
...
closes #1143
2024-05-14 12:32:25 -04:00
Zach Daniel
a3682d3ef6
chore: update changelog
2024-05-14 11:42:50 -04:00
Zach Daniel
124a3c734e
improvement: better types for checks, for spark autocomplete
...
chore: update spark
2024-05-14 11:38:33 -04:00