Commit graph

1389 commits

Author SHA1 Message Date
Zach Daniel
faca757d8c chore: release version v1.48.0-rc.2 2021-09-15 13:52:15 -04:00
Zach Daniel
3a284bb644 improvement: remove IO.inspect :*( and fix sobelow 2021-09-15 13:51:46 -04:00
Zach Daniel
c2bd76cba2 fix: set tenant properly on create interface 2021-09-15 13:50:11 -04:00
Zach Daniel
16629a23f1 chore: update .formatter.exs 2021-09-14 17:19:10 -04:00
Zach Daniel
4e23e63428 improvement: support non-endpoint pubsub adapters 2021-09-14 17:17:56 -04:00
Zach Daniel
50f09a4826 docs: add contributor list 2021-09-14 00:28:23 -04:00
kernel-io
63a16be5de
fix: update type spec for Ash.Sort to include single atom instead of only list. (#263) 2021-09-13 21:52:48 -04:00
Zach Daniel
628f60e24d chore: release version v1.48.0-rc.1 2021-09-13 16:18:54 -04:00
Zach Daniel
78aabebc38 fix: check action type properly in attribute validations 2021-09-13 16:18:17 -04:00
Zach Daniel
77fe5f37a3 chore: release version v1.48.0-rc.0 2021-09-13 11:46:43 -04:00
Zach Daniel
05b279a029 improvement: use paramaterized types under the hood
improvement!: update ecto version
fix: pass constraints to sub-fields loaded in embeddable resources
2021-09-13 11:46:11 -04:00
Zach Daniel
3ce4e68c80 fix: take creates into account w/ attribute_equals and attribute_does_not_equal 2021-09-12 22:31:11 -04:00
Zach Daniel
86e2648c91 fix: set changeset in destroy authorization request 2021-09-12 16:55:31 -04:00
Zach Daniel
f6b4da5a3e chore: release version v1.47.12 2021-09-12 02:03:54 -04:00
Zach Daniel
a55696ef57 improvement: add after_action option to create/update 2021-09-12 02:03:41 -04:00
Zach Daniel
650b256b2a test: fix tests w/ new get change 2021-09-09 02:18:26 -04:00
Zach Daniel
bb0dda0f11 fix: return not found in all cases on get 2021-09-09 00:10:15 -04:00
Zach Daniel
97e08f7b92 fix: don't allow get! to return nil
fix: don't do db filters on creation
2021-09-08 23:57:45 -04:00
Zach Daniel
64ec412e5d improvement: add config :ash, disable_async?: true 2021-09-08 22:55:22 -04:00
Zach Daniel
c7cfa878e7 docs: update description of allow_nil_input 2021-09-08 22:52:18 -04:00
Zach Daniel
d200d354e7 fix: honor allow_nil_input in required validations 2021-09-08 22:51:22 -04:00
Zach Daniel
008ee84ddb improvement: add meta[:order] option for managed relationships 2021-09-02 12:45:38 -04:00
Zach Daniel
4ec4e6fdc9 chore: release version v1.47.11 2021-08-29 15:14:40 -04:00
Zach Daniel
541545baa3 fix: hydrate metadata types 2021-08-29 15:14:29 -04:00
Zach Daniel
f4899a72f4 improvement: remove metadata from read actions 2021-08-29 14:20:02 -04:00
Zach Daniel
e74af3f56a chore: release version v1.47.10 2021-08-29 12:36:43 -04:00
Zach Daniel
aab12bc597 fix: update to latest picosat_elixir for releases 2021-08-29 12:36:16 -04:00
Zach Daniel
47bacbfe84 chore: fix lint/format 2021-08-27 20:35:25 -04:00
Zach Daniel
a22b689b07 improvement: support action level metadata 2021-08-27 20:34:20 -04:00
Zach Daniel
d786aadec7 improvement: add on_match: :destroy option 2021-08-27 01:45:13 -04:00
Zach Daniel
fed720bb59 fix: cast nil enum values propertly
improvement: if a map is given for a list, take it's keys
2021-08-22 03:54:11 -04:00
Zach Daniel
c6cafd94cc fix: set api in destroy action hooks
improvement: set better error paths for invalid relationships
improvement: include api in changeset inspect
2021-08-16 10:55:15 -04:00
Zach Daniel
a618eb0a07 chore: release version v1.47.9 2021-08-11 10:43:28 -04:00
Zach Daniel
ad2f678b7e fix: set argument defaults early
fix: don't add indices to non-list inputs in managed relationships
2021-08-11 10:43:21 -04:00
Zach Daniel
a6717a2622 chore: release version v1.47.8 2021-08-05 01:45:40 -04:00
Zach Daniel
7ae048ac9d fix: stop managed relationships from sourcing wrong data
This one took a while to finally figure out! Because belongs_to
relationships are managed *before* the action, and the data coming
into the calls to `manage_relationship` already has the new related
value, we need to use the original data from `changeset.data`. But
when I "fixed" it the first time, I made *everything* do that, which
is not correct, because the original data for the rest of the
relationships has not been loaded at that point yet. So belongs_to
gets its original data from `changeset.data` and the rest gets it
from the result of running the action.
2021-08-05 01:43:40 -04:00
Zach Daniel
46f17dcc51 test: test manage_relationship on update 2021-08-05 00:46:53 -04:00
Zach Daniel
36ae47cdf2 chore: release version v1.47.7 2021-08-04 19:17:50 -04:00
Zach Daniel
1d6d5c8542 fix: redact fields in the resource struct as well 2021-08-04 19:16:49 -04:00
Zach Daniel
1c83f96d27 fix: allow before_action to manage belongs_to relationships 2021-08-04 11:35:32 -04:00
Darren Black
f3b622744d
chore: Failing test for updating a relation in a change (#258) 2021-08-04 10:53:55 -04:00
Zach Daniel
8e11a63e83 fix: load belongs to relationships before managing them 2021-08-03 03:26:01 -04:00
Zach Daniel
4e11e3f0ac fix: don't lookup nil input 2021-08-03 00:50:45 -04:00
Zach Daniel
202c3344dc chore: proper case clause syntax 2021-08-03 00:34:26 -04:00
Zach Daniel
e81028170d fix: don't look for matches for nil 2021-08-03 00:17:36 -04:00
Zach Daniel
d82ea58dbe fix: don't accept list inputs for managed belongs_to 2021-08-03 00:12:05 -04:00
Zach Daniel
a382a8ae20 fix: don't use list inputs in belongs_to managed 2021-08-03 00:00:37 -04:00
Zach Daniel
6a189df2a0 chore: update CI elixir version 2021-08-02 12:06:38 -04:00
Zach Daniel
80cedce2a2 fix: remove belongs to related after action 2021-08-02 11:02:38 -04:00
Zach Daniel
a3ee29c433 fix: fix more cases where belongs_to isn't replaced 2021-08-01 18:48:12 -04:00