Zach Daniel
d526996669
improvement: optimize LoadRelationship
calculation
2023-06-09 00:28:09 -04:00
Zach Daniel
6320dad188
fix: various fixes to data loading
...
improvement: `Ash.Query.accessing/2` to get a list of fields being accessed
improvement: builting `LoadAttribute` and `LoadRelationship` calculations
2023-06-09 00:16:27 -04:00
Zach Daniel
a52a0a2554
improvement: warn on invalid/impossible policies
2023-06-07 22:35:55 -04:00
Zach Daniel
907aec5e82
improvement: support loading through types
...
Will document this in a separate PR. The broad strokes are this:
1. to load through an attribtue, `load(attribute: [:nested: :stuff])`
2. to load through a calculation, `load(calculation: {:%{...input}, nested: :stuff})`
3. union types support loading through them, and is done first by keying by the type name, i.e: `load(union: [type_name: [nested: :stuff])`.
4. union types support specifying a load statement for all types with `load(union: [*: [nested: :stuff]])`
2023-06-07 21:54:17 -04:00
Zach Daniel
dfe8bbf5f0
fix: properly set tenant on nested calculation loads
2023-06-07 10:41:33 -04:00
Zach Daniel
0381072c6b
fix: properly set calc_name to resource calculation name on aliased calc loads
2023-06-07 10:24:09 -04:00
Zach Daniel
f223855e28
chore: credo/compiler warnings
2023-06-07 10:22:30 -04:00
Zach Daniel
c23cd40ccb
chore: continue work on loading through attributes
2023-06-07 10:22:30 -04:00
Adam Harris
87045f3984
chore: add failing test to illustrate calculation issue
2023-06-07 10:13:08 -04:00
Zach Daniel
1d6e5b2827
fix: check correct calculation dependency for relationship
2023-06-07 10:11:33 -04:00
Zach Daniel
1e52079416
fix: don't use to_string
on the calculation names
2023-06-07 10:05:34 -04:00
Zach Daniel
ffc4ebcff1
chore: output both dependencies in relationship dependency error
2023-06-07 09:33:53 -04:00
Zach Daniel
2eedbdf934
chore: fix debug output from raised error
2023-06-07 09:22:34 -04:00
Zach Daniel
221efb09c9
fix: don't need to check current aggs/calcs in filters anymore
2023-06-07 09:08:29 -04:00
Zach Daniel
cff3c4db91
fix: set query tenant on calc dep loads
...
chore: set some groundwork for `Ash.Type.load/5`
2023-06-06 14:21:34 -04:00
Zach Daniel
85da9eff6f
improvement: properly set tenant from initial data
2023-06-06 11:48:16 -04:00
kernel-io
5b6c81d800
fix: copy tenant to step on flow build ( #603 )
2023-06-06 09:27:02 -04:00
kernel-io
c4bb198d0c
docs: clarify custom.ex async? documentation ( #602 )
2023-06-06 09:25:09 -04:00
kernel-io
45dc97cdb4
fix: ensure add_tenant/1 checks the correctkey ( #601 )
2023-06-06 09:24:30 -04:00
Zach Daniel
3b2b50d0e5
chore: release version v2.9.21
2023-06-06 01:28:39 -04:00
Zach Daniel
c6d1a089a5
fix: properly chain batch to each change in bulk creates
2023-06-05 19:57:36 -04:00
Zach Daniel
aa1f902c50
fix: properly handle failed bulk creates with no errors
2023-06-05 19:07:52 -04:00
Zach Daniel
43585d5617
docs: explain nil
handling in expressions better
2023-06-05 17:11:32 -04:00
Zach Daniel
8e7815388e
improvement: handle nil
s in memory the same way sql would have
2023-06-05 16:50:27 -04:00
Zach Daniel
04fb305f10
chore: release version v2.9.20
2023-06-05 13:45:33 -04:00
Zach Daniel
54569c38e1
improvement: support changeset.load
2023-06-05 13:30:29 -04:00
Barnabas Jovanovics
5477102104
fix: also do not autogenerate values for optional fields that have a generator ( #599 )
2023-06-05 08:57:22 -04:00
Dmitry Maganov
af307f0504
fix: rename few error files to match module names ( #597 )
2023-06-03 07:44:33 -04:00
Dmitry Maganov
23bf59822e
chore: remove class
and stacktrace
from ErrorKind
implementations ( #596 )
2023-06-02 17:57:07 -04:00
Zach Daniel
aa031411a5
chore: release version v2.9.19
2023-06-02 13:30:13 -04:00
Barnabas Jovanovics
1185b615f8
fix: Only create values for attributes that did not get a generator ( #595 )
2023-06-02 08:18:02 -04:00
Zach Daniel
bf6797619b
improvement: verify reserved calc names, support as
input
2023-06-01 13:26:54 -04:00
Dmitry Maganov
adb6cefac1
fix: remove field name from string length error message ( #594 )
...
* fix: remove field name from string length error message
* fix: remove old unused `Error.Changes.UnknownError`
* fix: do not capitalize ash error messages
* fix: change error kind code for `Ash.Error.Forbidden.Policy`
2023-06-01 02:29:19 -04:00
Zach Daniel
2384d35eea
chore: release version v2.9.18
2023-05-30 22:17:20 -04:00
Zach Daniel
5ab0c08f0f
fix: properly load aggregates required for keyset pagination
2023-05-30 22:17:05 -04:00
Zach Daniel
fa8f44dc42
chore: release version v2.9.17
2023-05-30 21:32:34 -04:00
Zach Daniel
e521048809
fix: properly load depended on source attributes
2023-05-30 21:31:48 -04:00
Zach Daniel
c62e76a3d2
docs: fix broken link in security guide
2023-05-29 10:06:34 -04:00
Zach Daniel
352defc75a
chore: release version v2.9.16
2023-05-29 09:57:34 -04:00
Zach Daniel
282c8945bb
fix: handle pre-hydrated predicates in expressions
2023-05-29 09:57:10 -04:00
Zach Daniel
f6b14d0030
fix: handle nil
errors on bulk creates
2023-05-27 20:18:45 -04:00
Dmitry Maganov
77310bb1f6
fix: add :forbidden
to error_class
, lowercase code for Forbidden
( #589 )
2023-05-27 11:45:01 -04:00
Zach Daniel
2396720b00
chore: release version v2.9.15
2023-05-27 00:22:42 -04:00
Zach Daniel
37710af26f
fix: proper required value validations in bulk creates
...
fix: don't use error count in place of errors
2023-05-27 00:22:15 -04:00
Zach Daniel
1ab8d3636e
improvement: make loading?/2
smarter
2023-05-26 23:58:35 -04:00
Zach Daniel
db1d527aa2
chore: release version v2.9.14
2023-05-26 10:28:24 -04:00
Zach Daniel
6ae41d58e8
fix: properly manage relationships on bulk creates
...
fix: validations could undo certain changeset changes in bulk creates
2023-05-26 10:25:35 -04:00
Zach Daniel
d2b54fdda9
fix: properly upsert on non batchable rows
2023-05-25 11:34:13 -04:00
Zach Daniel
f3d201a211
chore: release version v2.9.13
2023-05-25 10:53:10 -04:00
Zach Daniel
5af9dc6696
fix: properly honor the return_errors?
option
2023-05-25 09:46:27 -04:00