Zach Daniel
201687163f
chore: update erorr message
2024-08-07 22:54:28 -04:00
Zach Daniel
823a9fbf4b
chore: update error message
2024-08-07 22:53:10 -04:00
Zach Daniel
365ecffb5b
improvement: increase cases where embedded attribute can be updated atomically
2024-08-07 22:45:38 -04:00
Zach Daniel
e86c5bce56
chore: follow up fixes for optimized embed creation
2024-08-07 22:16:19 -04:00
Zach Daniel
9a9e0c4e32
chore: properly set non-matched defaults in embeddable type
2024-08-07 21:36:37 -04:00
Zach Daniel
c8e1cddb2b
fix: check for nil
resource_calculation in Ash.Resource.loaded?/2
2024-08-07 21:35:42 -04:00
Zach Daniel
ac14b750d5
chore: add back in accidentally removed struct callbacks
2024-08-07 20:49:44 -04:00
Zach Daniel
1f056646a3
chore: set defaults in embedded attribute shortcut
2024-08-07 20:33:03 -04:00
Zach Daniel
763b0c59ed
chore: update tests to avoid flakiness
2024-08-07 19:44:01 -04:00
Zach Daniel
ae2b737e87
fix: optimizations around allocating strings
...
fix: optimizations around list operations for embedded resources
2024-08-07 19:35:22 -04:00
Zach Daniel
a719c791ba
improvement: add optimized path for casting embeds when they are simple
...
improvement: add `include_embedded_source_by_default?` config to optimize embeds
improvement: support `:fields` constraint on `:struct` type, enabling persistence
2024-08-07 16:47:01 -04:00
Zach Daniel
1711ecf574
chore: split on specifically run_calculate/4
2024-08-07 16:47:01 -04:00
Jonatan Männchen
d1efc3fb6c
fix: after_batch
arguments for bulk_create
with return_records?
disabled ( #1371 )
...
Fixes #1369
2024-08-07 16:17:40 -04:00
Jonatan Männchen
4efe51418e
improvement: Warn on bulk action return_stream?
without any other return_*?
options enabled. ( #1370 )
...
Resolves #1368
2024-08-07 14:51:15 -04:00
Zach Daniel
5684b5784a
improvement: add stacktrace information
2024-08-06 21:38:08 -04:00
Zach Daniel
0576c8c602
fix: set upsert?
option when managing relationships in bulk creation
2024-08-06 12:45:23 -04:00
Zach Daniel
40a832019e
fix: resolve nested expression calculation references in runtime filters
...
fix: properly consider not-loaded record calculations as `:unknown`
2024-08-06 08:44:49 -04:00
Minsub Kim
ad1a634fc0
test: use other resource's calculation in expr ( #1365 )
2024-08-06 08:44:15 -04:00
Zach Daniel
960af4b887
fix: handle nil
in atomic array casting
2024-08-06 07:11:56 -04:00
Zach Daniel
58065c31cd
improvement: remove :comparable
as a dependency
...
It all compiles conditionally, so that if an explicit dependency exists
on `comp` it will still be used
2024-08-05 16:04:47 -04:00
Zach Daniel
e94e484885
chore: remove IO.inspect
2024-08-05 12:37:28 -04:00
Zach Daniel
c4a910a5d1
improvement: support authorize_with
option on Ash.read
2024-08-05 12:36:19 -04:00
Zach Daniel
85c92ce9cc
chore: use nils_distinct?
2024-08-05 11:01:16 -04:00
Zach Daniel
3667760717
chore: format
2024-08-05 10:35:41 -04:00
m0rt3nlund
4508b439a5
improvement: Add defaults and typespec to resulting Resource struct ( #1364 )
...
* improvement: Add typespec to resource if it doesn't exist
---------
Co-authored-by: morten.lund@maskon.no <morten.lund@maskon.no>
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2024-08-05 10:35:17 -04:00
Zach Daniel
4780376a8e
fix: respect previously validated-for-action query for aggregates
2024-08-05 10:09:38 -04:00
Zach Daniel
17feea7a14
chore: update docs on atomics
2024-08-04 08:56:36 -04:00
Zach Daniel
e3e492ef65
fix: use timestamps()
instead of timestamps
2024-08-02 12:49:26 -04:00
Zach Daniel
54738baad2
fix: prefer source_attribute
is required, instead of relationship name
...
we only do this if the source attribute is accepted by the action
fixes #1362
2024-08-02 09:41:34 -04:00
dependabot[bot]
4e223cb4e0
chore(deps): bump the production-dependencies group with 2 updates ( #1361 )
2024-08-01 20:41:43 -04:00
Zach Daniel
3c8a48c07d
chore: release version v3.3.3
2024-08-01 15:37:40 -04:00
Zach Daniel
28f73546cc
fix: roll back bulk update/destroy on before action error
2024-08-01 12:09:01 -04:00
Zach Daniel
f8fc4cd521
fix: delete ash_notifications from pdict after reading
2024-08-01 10:42:19 -04:00
Zach Daniel
de7bd3576a
docs: add typespec for build/2
2024-07-31 21:53:03 -04:00
Zach Daniel
0ecf92a705
docs: update changelog
2024-07-31 21:07:25 -04:00
Zach Daniel
89200d554a
chore: release version v3.3.2
2024-07-31 21:04:54 -04:00
Zach Daniel
ea7abca878
remove IO.inspect
2024-07-31 18:27:59 -04:00
Zach Daniel
266958d326
improvement: add --timestamps
argument to ash.gen.resource
...
fix: properly parse multiple occurrences of :keep arguments
2024-07-31 17:47:29 -04:00
Zach Daniel
db54a655c8
fix: properly key nested calculations and add additional tests
2024-07-31 13:19:04 -04:00
Zach Daniel
2843f8d181
fix: pass relationship path down when merging query loads
2024-07-31 10:10:10 -04:00
Zach Daniel
8f865c11cf
fix: don't set --name nil
when calling codegen tasks
...
closes #1360
2024-07-31 09:43:40 -04:00
Torkild Gundersen Kjevik
77d12dc689
docs: Add section regarding strict-loading for manual relationships. ( #1359 )
...
* Add section about strict-loading for manual relationships.
* Remove comment.
2024-07-31 09:03:10 -04:00
Zach Daniel
8a368c0fcd
fix: fix behavior of synthesized joins across data layers
...
test: fix our testing set up so its actually testing join synthesizer
closes #1354
2024-07-30 22:11:32 -04:00
Zach Daniel
26f4a1595b
chore: use .has_validate?
on conditions, not has_batch_change?
2024-07-30 06:51:58 -04:00
Zach Daniel
f5210692bf
chore: update changelog
2024-07-30 06:48:39 -04:00
Zach Daniel
c74ac7f955
chore: release version v3.3.1
2024-07-30 06:47:18 -04:00
Zach Daniel
55456b3884
fix: properly parse domain module in mix ash.gen.domain
2024-07-30 06:45:24 -04:00
Zach Daniel
cb7b712460
improvement: implement change/3
automatically if batch callbacks are defined
...
fix: properly handle mixed atomic & non-atomic validations/changes
2024-07-29 19:54:12 -04:00
Barnabas Jovanovics
1ce0480a85
test: tests for atomic only validation ( #1331 )
2024-07-29 15:29:39 -04:00
Zach Daniel
1c641faf2e
fix: properly find data layer predicates when name is provided as a string
...
closes #1357
2024-07-29 15:25:17 -04:00