Zach Daniel
347907029b
improvement: change always_authorize?
to authorize
for multiple options
2022-07-21 22:23:18 -04:00
Zach Daniel
22a598d6d6
fix: don't skip setting tenant when actor is present
2022-07-21 18:24:57 -04:00
Zach Daniel
6c277a1a59
fix: don't use apply/3
on kernel macros
2022-07-21 14:02:56 -04:00
Zach Daniel
552af4b665
fix: small bug in DSL transformer manipulation.
2022-07-21 14:01:44 -04:00
zimt28
ed44036400
Improve module names ( #357 )
2022-07-21 10:19:47 -04:00
Zach Daniel
331d0cf66c
fix: && and || don't short-circuit to nil
2022-07-20 15:46:14 -04:00
Zach Daniel
7b9861dc2c
fix: {:ok, _}
-> {:known, _}
when evaluating operators
2022-07-20 15:44:03 -04:00
Zach Daniel
8036c268d6
fix: fix bad evaluation case for operators
2022-07-20 15:12:37 -04:00
Zach Daniel
ebef8057c8
improvement: add error message for manual action missed
2022-07-20 13:38:26 -04:00
Zach Daniel
75ca760c9f
fix: ensure we only take unique related records when lazy loading
2022-07-20 01:12:53 -04:00
Zach Daniel
1c7babd2b4
chore: release version v1.52.0-rc.21
2022-07-19 19:32:58 -04:00
Zach Daniel
98a64577d9
improvement: add || and && operators
...
improvement: sort parsing helpers
test: fix flaky test
2022-07-19 19:15:23 -04:00
Zach Daniel
8f23cc71fb
improvement: add Ash.Sort.parse_input!/2
2022-07-19 13:34:01 -04:00
zimt28
81c085b9a3
improvemtn: Add accept_default option ( #351 )
...
* Add accept_default option
2022-07-19 10:03:23 -04:00
Zach Daniel
fe27a7f61b
improvement: add transfer_context/1
and get_context_for_transfer/0
2022-07-19 09:59:57 -04:00
Zach Daniel
c9f20f1488
improvement: add process-based actor, tenant and query/changeset context
...
improvement: add `always_authorize?` and `require_actor?` to api config
2022-07-19 00:49:05 -04:00
zimt28
bc05fb5b47
Deprecate option type helper ( #352 )
2022-07-18 15:22:17 -04:00
Zach Daniel
e83fcf13fb
fix: use Map.get/2
when getting paths if the value is a struct
2022-07-15 22:02:59 -04:00
Zach Daniel
594698986e
improvement: support paths in actor/1
2022-07-15 21:42:30 -04:00
Zach Daniel
8a9e144b85
chore: release version v1.52.0-rc.20
2022-07-14 11:52:12 -04:00
Zach Daniel
e86887b8b8
improvement: add default guide to doc_index
2022-07-14 11:41:20 -04:00
Zach Daniel
611603c7d3
docs: add info for can/4
2022-07-14 10:45:55 -04:00
Frank Dugan III
3776af9f85
feat: add can?/4 policy utility ( #349 )
...
* feat: add can?/4 policy utility
* refactor: change defaults and add can/4
* refactor: add typespecs, rename test
2022-07-14 10:05:51 -04:00
Zach Daniel
4dad1e5d7d
chore: add ash_archival
to subproject build
2022-07-13 15:12:11 -04:00
Zach Daniel
d848350f12
chore: release version v1.52.0-rc.19
2022-07-13 15:06:35 -04:00
Zach Daniel
a023aaff95
fix: make mnesia and ets work properly when sharing tables
...
fix: make updates properly merge with mnesia and ets
fix: `attribute_writable?` also makes it public
2022-07-13 15:05:55 -04:00
Zach Daniel
5a4a3009d9
docs: update seed docs on __keep_nil__
2022-07-12 01:26:13 -04:00
Zach Daniel
ba559936d8
improvement: code_interface optional arguments
...
test: add some load tests
2022-07-11 22:59:51 -04:00
Zach Daniel
0f3521b2f4
improvement: improve behavior of lazy?: true
option
...
before, any calculation that determined that it needed to load
would always load its dependencies, but now if they are already loaded
then dependencies won't be reloaded
2022-07-11 21:31:50 -04:00
Zach Daniel
a9f93c1ca3
chore: ignore unnecessary sobelow error
2022-07-10 23:45:26 -04:00
Zach Daniel
4d3c393342
docs: small docs tweaks, more modules
2022-07-10 23:39:57 -04:00
Zach Daniel
b7a9cd33ac
chore: typo in doc index
2022-07-10 17:05:03 -04:00
Zach Daniel
58b20c3490
chore: release version v1.52.0-rc.18
2022-07-10 16:20:37 -04:00
Zach Daniel
b825277116
fix: fix doc links and include in release
2022-07-10 16:20:13 -04:00
Zach Daniel
46a6bb407d
chore: docs in priv/
2022-07-10 16:06:22 -04:00
Zach Daniel
0b158ca487
docs: work on DSL documentation
2022-07-10 15:05:09 -04:00
Maciej Malecki
9707b4b7fe
Use a proper operator in the attribute_does_not_equal
validation ( #348 )
...
Previously, it was using `if current != expected do raise` while it
needs to do the opposite. Also, simplify the logic by making `update`
work in the same way as `create` (compare upcoming value - not the
original one).
2022-07-07 14:12:32 -04:00
Zach Daniel
d2a0e1f464
chore: release version v1.52.0-rc.17
2022-07-06 14:33:50 -04:00
Zach Daniel
f2bf8bccac
improvement: add back in DSL docs
2022-07-06 08:37:00 -04:00
Zach Daniel
40904cae80
fix: add back in writable?
option to relationships, and add attribute_writable?
to belongs_to
2022-07-06 08:30:13 -04:00
Maciej Malecki
b10b8e1dc2
Fix the "Runtime" formatting in the bug report template ( #347 )
2022-07-06 07:10:45 -04:00
Zach Daniel
8fed3ef702
chore: add dev utilities guide
2022-07-05 14:19:06 -04:00
Zach Daniel
394e2d089a
improvement: add match_other_defaults?
to attribute
2022-07-05 10:18:50 -04:00
Zach Daniel
b71aa3ddeb
fix: don't rescue arbitrary exception/exits
2022-07-05 09:32:06 -04:00
Zach Daniel
04fd43ebf5
chore: release version v1.52.0-rc.16
2022-07-05 08:17:07 -04:00
Zach Daniel
ac4590a0ca
improvement: remove relationship writability, as it all happens through arguments now
...
improvement: repurpose `writable?` on `belongs_to` to make the attribute writable
2022-07-05 08:16:38 -04:00
Zach Daniel
15cd3fb7bc
fix: fix return type for dump/3
ecto type
2022-06-30 22:10:37 -04:00
Zach Daniel
dd3b261a69
chore: update error types in Ash.Type
2022-06-30 22:00:24 -04:00
Zach Daniel
8cc6d014e7
fix: load/3
returns {:ok, value} | :error
2022-06-30 13:31:57 -04:00
Zach Daniel
7a027b38ca
chore: release version v1.52.0-rc.15
2022-06-28 15:17:38 -04:00