Darren Black
2eda90c0ee
docs: Missing calculation type in doco ( #391 )
2022-09-29 01:29:25 -04:00
Zach Daniel
37a5fdc89b
chore: release version v2.0.0-rc.11
2022-09-28 21:00:13 -04:00
Zach Daniel
6f14cf0263
docs: add mix_tasks to doc_index
2022-09-28 20:59:47 -04:00
Zach Daniel
0e13456eb0
improvement: optimize relates_to_actor_via checks
2022-09-28 20:37:19 -04:00
Zach Daniel
6c94e5e578
chore: ensure calc module compiled (shouldn't have to do this)
2022-09-28 18:00:51 -04:00
Zach Daniel
fec01e32fa
chore: log at_path
in exists error message
2022-09-28 16:56:13 -04:00
Zach Daniel
fdbc5faeea
fix: use at_path
when parsing Exists
2022-09-28 16:49:11 -04:00
Zach Daniel
b12b5e34bb
fix: properly require a condition of a following bypasses
2022-09-28 16:38:32 -04:00
Zach Daniel
6a172cce18
fix: don't transform == nil to is_nil automatically
2022-09-28 12:32:02 -04:00
trymkb
8f314538fa
Docs: fixed file creation step in get-started ( #390 )
2022-09-28 02:38:38 -04:00
Zach Daniel
68d0e8f55d
fix: pass path down to keyword list errors
2022-09-28 01:52:41 -04:00
Zach Daniel
98647fbc21
chore: release version v2.0.0-rc.10
2022-09-27 23:48:02 -04:00
Zach Daniel
24bdf9058e
improvement: catch more cases in preflight authorization checks
2022-09-27 14:58:48 -04:00
zimt28
33a6438f00
test: Add test for strict_check
with filter policy ( #387 )
2022-09-27 14:43:29 -04:00
Zach Daniel
bc6daa56dd
fix: bad pattern in filter.ex
, fix dialyzer
2022-09-27 14:08:29 -04:00
Zach Daniel
a48ee94f89
docs: update actions guide
2022-09-27 14:08:29 -04:00
zimt28
58ae9c6e72
chore: Ignore Nix and direnv files ( #386 )
2022-09-27 13:07:18 -04:00
Zach Daniel
8f1a43419b
fix: attempt to evaluate filter checks for strict checks
...
closes : #385
2022-09-26 20:41:53 -04:00
Zach Daniel
f629de6808
fix: only return errors when there actually are errors
2022-09-26 19:18:42 -04:00
Zach Daniel
716fcf7c25
fix: return an error if data_layer_query/2
is given a query with errors
2022-09-26 19:13:08 -04:00
Zach Daniel
dc83e26fd8
chore: remove debugging raise statements
2022-09-26 18:41:39 -04:00
Zach Daniel
dcc6879bc1
chore: better error message for allow_nil? belongs to primary key
2022-09-26 18:09:16 -04:00
Zach Daniel
a8bce0ab23
improvement: lazily set required loads/selects for calcs/sorts
2022-09-26 18:08:18 -04:00
Zach Daniel
fe596db0b8
improvement: reselect any necessary fields when loading calcs
...
docs: tons of new documentation
improvement: set context when creating related filters allowing checks like `filtering_on`
2022-09-25 23:58:05 -04:00
Zach Daniel
3b803d4c55
fix: various fixes with complex policy statements
...
improvement: simplify filter statements further
improvement: don't overconstraint filters on related data
test: get started on some more complex policy tests
2022-09-25 13:21:17 -04:00
Zach Daniel
8f3e388c27
fix: ensure fields selected in-line when loading calcs
2022-09-23 10:44:29 -04:00
Zach Daniel
8031f1b698
improvement: any filter being statically true means :authorized
2022-09-22 21:06:57 -04:00
Zach Daniel
fbcd745401
improvement: properly mark conditions w/ access_type
...
fix: handle statically false conditions in filter logic
2022-09-22 21:03:33 -04:00
Zach Daniel
ac30194601
improvement: use IsNil
instead of Eq
when either side is nil
2022-09-22 18:27:05 -04:00
Zach Daniel
621cb6854e
improvement: handle string dates for embeds
2022-09-22 09:42:16 -04:00
Zach Daniel
d4a6feb589
fix: cast embedded datetimes properly
2022-09-22 03:00:06 -04:00
James Harton
479b09951c
fix(Ash.Calculation): fix return type for load/3
callback. ( #384 )
2022-09-22 00:44:09 -04:00
Zach Daniel
8a32748448
Update elixir.yml
2022-09-21 20:04:44 -04:00
Zach Daniel
402164fa40
Update extending-resources.md
2022-09-21 19:07:20 -04:00
Zach Daniel
7ef2f4884c
improvement: remove __timestamps__ in favor of simpler macro
...
docs: add extending resources guide
2022-09-21 18:49:59 -04:00
Zach Daniel
739bf52309
fix: warn instead of raise on :replace
usage
...
fix: handle var_args expression with literal args
2022-09-21 13:00:12 -04:00
Zach Daniel
5994c1b51f
chore: fix dialyzer, add embedded resources guide back
2022-09-21 12:20:00 -04:00
Zach Daniel
48bcf1ca1f
chore: relate_and_unrelate -> append_and_remove everywhere
2022-09-20 22:50:03 -04:00
Zach Daniel
a802bf17fa
chore: release version v2.0.0-rc.9
2022-09-20 22:46:52 -04:00
Zach Daniel
980779fa7d
fix: fix replace_relationship
type
2022-09-20 22:38:08 -04:00
Zach Daniel
c365980a49
CI: add latest elixir to CI
2022-09-20 20:14:31 -04:00
Zach Daniel
5d1d0e4f29
chore: release version v2.0.0-rc.8
2022-09-20 20:07:53 -04:00
Zach Daniel
b4766d1ccc
chore: set typespec to proper return value
2022-09-20 20:00:30 -04:00
Zach Daniel
39b143e19e
chore: undo typespec that is complaining for some reason
2022-09-20 19:48:45 -04:00
Zach Daniel
1f6fb8d7af
chore: fix tests
2022-09-20 19:44:04 -04:00
Zach Daniel
26ebc10f17
chore: bust build cache
2022-09-20 16:21:25 -04:00
Zach Daniel
3903e36d29
improvement: update to latest spark, support dsls in resource info
2022-09-20 16:09:40 -04:00
Zach Daniel
87f20369bc
improvement: deprecate :replace
in favor of :relate_and_unrelate
2022-09-19 15:44:06 -04:00
Zach Daniel
2ca0f09444
improvement: add loading?/1
query helper
...
improvement: add `loading/1` built in check
2022-09-19 10:14:08 -04:00
Zach Daniel
bee3a6ea09
fix: properly handle args/nested expression for tuple calcs
2022-09-16 03:54:17 -04:00