Dmitry Maganov
1ca4d9870a
fix: honor not_found_error?: true
opt in code interface get actions ( #620 )
2023-06-14 09:43:51 -04:00
Zach Daniel
11404d896d
fix: typo on keyset refactor
2023-06-14 07:51:13 -04:00
Zach Daniel
38a4ee64f4
chore: release version v2.10.0
2023-06-14 07:39:10 -04:00
Zach Daniel
0e12686c61
fix: ensure attributes for keyset pagination are selected
2023-06-14 07:38:43 -04:00
Zach Daniel
b3592aecfd
docs: document select
and ensure_selected
to build/2
docs
...
closes #510
2023-06-13 12:06:11 -04:00
Dmitry Maganov
984968d8ba
improvement: add support for generic actions in api.can
( #617 )
2023-06-13 09:35:27 -04:00
Dmitry Maganov
939b25d727
feat: generate some action helpers with code interface ( #614 )
2023-06-12 22:59:17 -04:00
Wout De Puysseleir
9b603569f2
docs: Typo in validations documentation ( #615 )
2023-06-12 22:58:47 -04:00
Zach Daniel
b80c881e28
chore: release version v2.9.29
2023-06-12 16:57:39 -04:00
Zach Daniel
6c4b2fb5ed
fix: can_load?/1 -> can_load?/2
2023-06-12 16:57:12 -04:00
Zach Daniel
0eddcda355
fix: handle new load calculations in nested loading?
checks
2023-06-12 14:46:36 -04:00
Zach Daniel
62416bafc8
chore: release version v2.9.28
2023-06-12 13:16:50 -04:00
Zach Daniel
0a677ccde1
fix: don't load nil
values for runtime types
2023-06-12 12:44:54 -04:00
Zach Daniel
d47dbe239c
improvement: properly pass calculation args in keyset filters
2023-06-11 20:48:42 -04:00
Zach Daniel
4ef5911696
fix: properly set upsert_keys
on bulk upserts
2023-06-11 20:30:13 -04:00
Dmitry Maganov
b68b816cc7
fix: continue refactor in code interface ( #611 )
2023-06-11 08:56:23 -04:00
RaspberryLambda
ffaf6d57df
* improvement: add data layer introspection to Ash.Resource.Info ( #610 )
...
---------
Co-authored-by: Daniel Stewart <mgdog1@googlemail.com>
2023-06-10 13:17:17 -04:00
Zach Daniel
923bfc7119
chore: release version v2.9.27
2023-06-10 13:10:13 -04:00
Zach Daniel
be57b909b5
fix: honor query limit when streaming
2023-06-10 13:09:45 -04:00
Zach Daniel
a2baf28d04
chore: update test-subprojects
2023-06-10 00:16:52 -04:00
Dmitry Maganov
ab981a79a5
fix: refactor out some repetition in code interface ( #609 )
2023-06-10 00:02:03 -04:00
Zach Daniel
27c4495ec0
chore: release version v2.9.26
2023-06-09 18:22:52 -04:00
Zach Daniel
e804f3c9f9
fix: properly handle loading through list types
2023-06-09 18:21:46 -04:00
Zach Daniel
25acc2d793
improvement: better keyset pagination behavior on first and last pages
2023-06-09 15:08:49 -04:00
Zach Daniel
1442daa667
chore: fix dialyzer
2023-06-09 12:19:02 -04:00
Zach Daniel
686e3ff65d
chore: release version v2.9.25
2023-06-09 12:03:59 -04:00
Zach Daniel
f3703f9ebe
fix: handle api missing in code interface calls
2023-06-09 12:03:31 -04:00
Zach Daniel
d1a152cfa2
chore: release version v2.9.24
2023-06-09 10:18:25 -04:00
Zach Daniel
0d32560651
fix: pass empty select statement when loading on changesets
...
fix: fixes for loading through attributes
2023-06-09 10:18:17 -04:00
Dmitry Maganov
f5238674a4
fix: drop proper opts keys when calling api in code interface ( #608 )
2023-06-09 10:16:15 -04:00
Zach Daniel
5e93ebe9bd
chore: release version v2.9.23
2023-06-09 02:23:15 -04:00
Zach Daniel
dc58cf8c2e
fix: remove validation that was breaking real design patterns
2023-06-09 02:22:56 -04:00
Zach Daniel
46196b3903
chore: release version v2.9.22
2023-06-09 00:28:37 -04:00
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