Commit graph

807 commits

Author SHA1 Message Date
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
998b7d025d chore: release version v1.37.1 2021-03-28 13:44:21 -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
Daniel Kukula
6434eb5029
remove and delete file (#213) 2021-03-26 13:06:55 -04:00
Zach Daniel
0722cc51cb chore: release version v1.37.0 2021-03-25 13:02:43 -04:00
Zach Daniel
a5f6a8f792 docs: add module to docs section 2021-03-25 11:35:26 -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
6eb1b3ae91 chore: release version v1.36.22 2021-03-24 00:54:52 -04:00
Zach Daniel
aeb1cad518 fix: add tenant metadata before after action hooks 2021-03-24 00:54:36 -04:00
Zach Daniel
2c4a02d2a9 chore: release version v1.36.21 2021-03-24 00:25:27 -04:00
Zach Daniel
63df55427b fix: support type aliases in more type casting functions 2021-03-24 00:25:18 -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
07bb9a063f chore: release version v1.36.18 2021-03-22 02:35:13 -04:00
Zach Daniel
44d574862b improvement: docs + dialyzer + error improvements 2021-03-22 02:34:52 -04:00
Zach Daniel
ce0e5a4d07 chore: release version v1.36.17 2021-03-21 23:00:32 -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
425fa57bbd chore: release version v1.36.16 2021-03-21 22:11:45 -04:00
Zach Daniel
4a0b2035b9 fix: force_change_attributes before passing to action 2021-03-21 22:11:04 -04:00
Zach Daniel
b795f03b99 chore: release version v1.36.15 2021-03-21 14:20:08 -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
Zach Daniel
4219e11401 chore: release version v1.36.14 2021-03-21 00:09:51 -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
6b8fba8ab1 chore: release version v1.36.13 2021-03-20 17:18:02 -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
49039a1759 chore: release version v1.36.12 2021-03-19 18:25:19 -04:00
Zach Daniel
e206167f27 improvement: make Ash.Error a public module 2021-03-19 18:23:48 -04:00
Zach Daniel
d229bacb59 chore: release version v1.36.11 2021-03-19 17:07:37 -04:00
Zach Daniel
e0a368365c improvement: docs/default value for params 2021-03-19 17:07:22 -04:00
Zach Daniel
6cfa91cc63 chore: fix lint 2021-03-18 23:37:34 -04:00
Zach Daniel
059d9b0a95 chore: release version v1.36.10 2021-03-18 23:34:51 -04:00
Zach Daniel
c2d121c0fe fix: set source_field when replacing belongs_to relationship 2021-03-18 23:33:56 -04:00
Zach Daniel
60da316f58 fix: don't consider false as absent value 2021-03-18 23:33:09 -04:00
Zach Daniel
0ef51ce9e6 improvement: trim whitespace in uuid 2021-03-18 23:32:56 -04:00
Zach Daniel
ba6b4202f9 fix: set argument name in manage_relationship 2021-03-18 23:32:12 -04:00
Zach Daniel
9ede11b7d4 chore: release version v1.36.9 2021-03-17 22:35:12 -04:00
Zach Daniel
f3c85da268 improvement: improve the behavior of defaults
functional defaults are added at action time, others are added directly
into the changeset
2021-03-17 22:34:49 -04:00
Zach Daniel
d4b27d5d4e chore: release version v1.36.8 2021-03-16 23:09:56 -04:00
Zach Daniel
a1c5f1d06f fix: validate required attributes *after* before_action hooks 2021-03-16 23:09:36 -04:00
Zach Daniel
8cb1997ade chore: release version v1.36.7 2021-03-16 21:41:37 -04:00