Commit graph

1891 commits

Author SHA1 Message Date
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
Zach Daniel
003ba3246b fix: add a case for calculations as tuples in expr filters 2022-09-16 03:47:12 -04:00
Zach Daniel
cc5c1b69c0 fix: return count, not {:ok, count} 2022-09-15 17:12:40 -04:00
Zach Daniel
301d5b56d9 fix: bad return value when async fetching counts 2022-09-15 17:06:56 -04:00
Zach Daniel
405019d33b fix: remove dbg() call 2022-09-15 16:54:58 -04:00
Zach Daniel
049be39f54 docs: add required -> allow_nil? change to upgrading 2022-09-15 16:54:04 -04:00
Zach Daniel
ccf5933e63 chore: release version v2.0.0-rc.7 2022-09-15 16:52:36 -04:00
Zach Daniel
da282d1193 docs: hide a function from docs 2022-09-15 16:52:06 -04:00
Zach Daniel
266ecc8249 fix: nil casts as any type (sort of) 2022-09-15 02:15:23 -04:00
Zach Daniel
1b2d351721 fix: return nil on nil inputs for length/1 2022-09-15 02:12:51 -04:00
Zach Daniel
d7b446bc7f fix: properly reraise errors raised in tasks 2022-09-15 02:08:30 -04:00
Zach Daniel
f084d346ad fix: properly return errors from tasks 2022-09-15 01:09:12 -04:00
Zach Daniel
2c2c207e68 fix: use Comp.equal?/2 when finding loaded data matches 2022-09-15 00:55:04 -04:00
Darren Black
865d028667
chore: Guard length function for invalid input (#380) 2022-09-15 00:10:01 -04:00
Zach Daniel
12ef06e497 chore: release version v2.0.0-rc.6 2022-09-15 00:06:01 -04:00
Zach Daniel
a5f51e8f1b fix: properly error on types when evaluating expressions at runtime 2022-09-14 22:31:32 -04:00
Zach Daniel
4b88300e00 fix: properly surface errors all the way from runtime filters 2022-09-14 20:05:51 -04:00
Zach Daniel
3baf2b8c97 fix: properly catch errors when running expressions at runtime 2022-09-14 19:50:07 -04:00
Darren Black
a572099e24
improvement: Implement length function (#379) 2022-09-14 13:28:42 -04:00
Zach Daniel
08642b9123 chore: update typespec for attribute 2022-09-14 13:20:24 -04:00
Zach Daniel
b152cdd6a3 chore: release version v2.0.0-rc.5 2022-09-14 11:21:45 -04:00
Zach Daniel
2dae8ffa44 improvement: validate aggregate paths supported 2022-09-13 16:24:55 -04:00
Zach Daniel
e36f8c3e59 improvement: add filterable? option to relationships
improvement: add data layer capability for aggregate relationships & filter relationships
improvement: add guide on manual relationships
2022-09-13 13:53:05 -04:00