Commit graph

509 commits

Author SHA1 Message Date
Zach Daniel
33ac53faa5 fix: don't preload multiplicatively 2021-04-17 18:22:20 -04:00
Vadim Tsvetkov
0d13cd8b3d
fix: Decimal casting issues on ash_postgres (#227) 2021-04-17 15:00:43 -04:00
Zach Daniel
b028dad1cd improvement: add Resource.input/1 2021-04-17 13:50:55 -04:00
Zach Daniel
bd7f4f9532 fix: use items for single constraints 2021-04-16 14:16:45 -04:00
Zach Daniel
ad2772034c fix: don't overwrite select in side_load 2021-04-15 14:57:49 -04:00
Zach Daniel
5425660752 fix: load relationships for management properly
fix: `fetch_key` bug in embedded types
fix: handle_indexed_maps for embedded types
2021-04-14 23:38:51 -04:00
Zach Daniel
a6b880ce86 fix: handle no key provided to NotFound
chore: add tests for `get!`
2021-04-14 14:18:05 -04:00
Zach Daniel
c3c0abb239 docs: update documentation 2021-04-13 17:44:48 -04:00
Zach Daniel
2f634ae36a improvement: special provisions for casting to embedded type (e.g uuid)
fix: embedded cast_stored must cast all key/values
fix: ci_string constraints when `nil`
fix: manage_relationship change turns embedded resources to maps
fix: fixes for common types parsing from embedded, e.g utc_datetime_usec
2021-04-13 17:41:16 -04:00
Zach Daniel
e20ffe9636 fix: get! should raise on nil not {:ok, nil} 2021-04-13 16:28:01 -04:00
Zach Daniel
0ee074c176 fix: allow_nil -> allow_nil_input 2021-04-13 16:22:13 -04:00
Zach Daniel
e353ea49c3 fix: allow api.load/2 to load calculations
improvement: add `allow_nil_input` to create actions for api layers
improvement: add `load/1` builtin change
feat: change `get?: true` interface functions to raise on `nil`
2021-04-13 15:49:42 -04:00
Zach Daniel
567df21422 fix: always select necessary load fields for nested loads 2021-04-12 16:51:31 -04:00
Zach Daniel
3e29b4e00d fix: always select necessary fields for side loading 2021-04-10 16:58:37 -04:00
Zach Daniel
c21e310996 fix: logic bug in selecting specific fields 2021-04-09 00:47:22 -04:00
Zach Daniel
250186a0ea chore: update docs 2021-04-09 00:10:01 -04:00
Zach Daniel
ec57f363ed improvement: support the datalayer selecting fields in reads 2021-04-09 00:10:01 -04:00
Zach Daniel
f454f98f3f docs: add docs on managing relationships 2021-04-05 13:45:39 -04:00
Zach Daniel
425a1ce59e chore: fix description 2021-04-04 16:01:37 -04:00
Michael St Clair
6805d431ac
improvement: add sum aggregate (#221) 2021-04-04 16:00:53 -04:00
Michael St Clair
fec77dd92f
allow specifying that calculation can't be nil (#220) 2021-04-04 03:11:43 -04:00
Zach Daniel
db26a1cc61 fix: update struct_field logic for latest ecto 2021-04-03 14:35:04 -04:00
Zach Daniel
7faf73097a fix: apply proper interface operation when opts aren't passed 2021-04-02 10:21:10 -04:00
Zach Daniel
92344029d3 improvement: before_action? on validate, validate inline 2021-04-01 11:53:52 -04:00
Jason Axelson
274fc9ea88
chore: Misc doc updates (#208)
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2021-03-31 17:20:59 -04:00
Zach Daniel
d6ee71ce53 feat: support Ash.Query.distinct/2
feat: add `build/2` query preparation
fix: manage_relationships *before* after_action callbacks
2021-03-31 17:13:20 -04:00
Jason Axelson
fc705ad0a5
Documentation improvements and labeled examples (#216)
Improve documentation for calculations
Add ability to "label" examples by passing a tuple instead of just a string.
Fix some minor typos
2021-03-31 16:24:06 -04:00
Zach Daniel
29b2c821fe fix: don't overwrite managed belongs_to relationships 2021-03-29 14:48:42 -04:00
Zach Daniel
1d412c97cd fix: handle on_lookup + on_no_match for belongs_to 2021-03-29 14:04:53 -04:00
Zach Daniel
11d658d077 fix: fix required relationships and add test 2021-03-28 13:44:21 -04:00
Zach Daniel
e65d47d386 fix: fix required relationships 2021-03-28 13:44:21 -04:00
Zach Daniel
523f7bbc0d fix: various managed_relationship fixes 2021-03-28 13:44:21 -04:00
Zach Daniel
2f9fafcbc7 feat: add manage relationship types
improvement: don't accept relationships on actions anymore

improvement: require arguments

This probably broke a lot of people's setups, but it was a
necessary change. Better to get this stuff out while we're
still beta
2021-03-25 11:33:32 -04:00
Zach Daniel
aeb1cad518 fix: add tenant metadata before after action hooks 2021-03-24 00:54:36 -04:00
Zach Daniel
8eba8d6b22 fix: support tenant option in read interface 2021-03-24 00:24:42 -04:00
Darren Black
571eba3558
Resolve type aliases (#207) 2021-03-23 22:48:36 -04:00
Zach Daniel
5eec3d93b3 chore: release version v1.36.19 2021-03-22 17:37:44 -04:00
Zach Daniel
6c1108d834 fix: always return changeset when runner failed 2021-03-22 17:37:20 -04:00
Zach Daniel
44d574862b improvement: docs + dialyzer + error improvements 2021-03-22 02:34:52 -04:00
Zach Daniel
41a91b8aa6 fix: don't require values when managing relationships 2021-03-21 23:00:17 -04:00
Zach Daniel
801778abbd fix: Revert "fix: force_change_attributes before passing to action"
This reverts commit 4a0b2035b9.
2021-03-21 22:17:41 -04:00
Zach Daniel
4a0b2035b9 fix: force_change_attributes before passing to action 2021-03-21 22:11:04 -04:00
Zach Daniel
4e8bd5bfbc fix: exception on invalid query arguments 2021-03-21 14:19:45 -04:00
Zach Daniel
ac72c623d9 fix: allow casting strings as uuids (for embedded types) 2021-03-21 11:31:25 -04:00
Zach Daniel
ab31320e73 improvement: retain actor context from changeset 2021-03-21 11:31:01 -04:00
Jason Axelson
6c31956b56
improvement: Add float type (#204)
Also update `Ash.Type` documentation to use the float module as an
example of a custom type.
2021-03-21 00:09:27 -04:00
Zach Daniel
b155a5fb81 improvement: raise informative errors on bad inputs to for_* 2021-03-20 17:17:23 -04:00
Zach Daniel
b98650aeb7 fix: avoid exception in Changeset.new/2 for bad attribute 2021-03-20 17:16:57 -04:00
Zach Daniel
f1a6fb7418 fix: use ecto's uuid type under the hood 2021-03-20 16:27:11 -04:00
Zach Daniel
e206167f27 improvement: make Ash.Error a public module 2021-03-19 18:23:48 -04:00