Zach Daniel
dd3f4766ec
fix: handle api.can case in authorize_changeset
...
fix: properly bypass authorization in atomic update switch-over
2024-02-02 04:25:07 -05:00
Zach Daniel
c5ef834b5b
improvement: don't run check
in cases that require strict checks
2024-02-01 17:09:34 -05:00
Zach Daniel
94ffeaa057
fix: properly set action_type on atomic changesets
2024-02-01 14:32:01 -05:00
Zach Daniel
1cd73e2ec7
chore: also properly process opts for destroy atomic changesets
2024-02-01 14:29:26 -05:00
Zach Daniel
618ae4459a
chore: properly process opts for atomic changesets
2024-02-01 14:29:01 -05:00
Zach Daniel
3baa9c5951
fix: extract relationship filters from pre-authorization query
2024-02-01 13:06:43 -05:00
Zach Daniel
57654d3df4
improvement: atomic_batches behavior for bulk destroys
...
improvement: allow strategy selection for bulk actions
2024-02-01 13:00:52 -05:00
Zach Daniel
e707758c93
fix: retain metadata on updates, atomic and otherwise
...
fix: properly load expression -> runtime calculation deps
2024-02-01 10:21:22 -05:00
Barnabas Jovanovics
60c10e9af4
feat: support returning streams from mod calc ( #864 )
2024-02-01 09:06:51 -05:00
Zach Daniel
3b3e3a06f2
fix: ignore input?
when considering refs equal in filter subset checking
2024-01-31 15:57:47 -05:00
Zach Daniel
b3977817bb
chore: add sobelow skip statement
2024-01-31 15:47:38 -05:00
Dmitry Maganov
51990bd784
fix: change names of code interface methods for calculations ( #863 )
2024-01-31 15:42:22 -05:00
Zach Daniel
fc3cbc4e2c
improvement: change nested field filtering to be done with at_path
2024-01-31 15:41:10 -05:00
Zach Daniel
9efe456e16
fix: properly mark manuall created input refs with input?: true
2024-01-31 12:12:06 -05:00
Zach Daniel
f7716c5222
improvement: support referencing non-array embeds in input filters
2024-01-31 12:11:36 -05:00
Zach Daniel
107e6c53f5
improvement: bulk update in batches if not given a query
2024-01-31 10:26:08 -05:00
Zach Daniel
9749b75e3b
fix: clean vars should handle map vars
2024-01-31 09:46:11 -05:00
Zach Daniel
f8ef4529c1
fix: properly merge union loads
2024-01-31 08:29:02 -05:00
Zach Daniel
7811dfaa11
improvement: update action should respect load and select
2024-01-30 20:25:49 -05:00
Zach Daniel
6602ae63e6
fix: support expression calculations referencing runtime calculations
2024-01-30 16:34:17 -05:00
Zach Daniel
550a9c1424
chore: fix file name
2024-01-30 15:23:04 -05:00
Zach Daniel
49ac5a23dd
fix: set default access type properly
2024-01-30 13:37:34 -05:00
Zach Daniel
15ab382ee0
chore: remove IO.inspect
2024-01-30 13:17:12 -05:00
Zach Daniel
9f748b5c55
test: update authorizer tests
...
fix: properly handle the case where all valid scenarios are pruned
2024-01-30 13:11:47 -05:00
Barnabas Jovanovics
406a076ef1
test: add test that shows expr condition does not work with access_type :strict ( #858 )
2024-01-30 12:53:23 -05:00
Zach Daniel
9e02b0d0c7
improvement: introduce require_atomic?
, which defaults to false
in 2.0, true
in 3.0
...
fix: properly prevent the atomic handling of manual update actions
improvement: better support around the mixing of atomic and non atomic changes/validations
2024-01-30 12:32:41 -05:00
Zach Daniel
d7721d9b1e
chore: docs & formatter
2024-01-29 18:03:56 -05:00
Zach Daniel
8e82d9588f
chore: better handling of atomic validations
2024-01-29 17:55:56 -05:00
Zach Daniel
f4339be426
chore: fix stream option taking (again)
2024-01-29 15:56:48 -05:00
Zach Daniel
248f99ebcf
fix: fix passing extra opts to stream
...
fix: properly check if data layer can update_query
2024-01-29 15:43:21 -05:00
Zach Daniel
210d8d03c7
improvement: more atomic implementations
...
chore: wrap up load/select support in atomic updates
2024-01-29 15:17:52 -05:00
Zach Daniel
c02bced508
improvement: support loading and selecting in bulk operations
2024-01-29 14:29:50 -05:00
Zach Daniel
cf009476b2
chore: better non-atomic message on updates
2024-01-29 11:15:56 -05:00
Zach Daniel
b01168b597
improvement: use atomic create actions where possible
2024-01-29 10:37:10 -05:00
Tun Cham Roeun
c075d18f33
fix: Ash.Type.Float to support min/max constraints( #856 )
2024-01-28 09:11:10 -05:00
Zach Daniel
2549c20105
chore: format
2024-01-27 10:33:17 -05:00
Zach Daniel
c9c2408401
fix: add calculations before distinct is applied in data layer query
2024-01-27 10:20:23 -05:00
Zach Daniel
f1952a5d8b
chore: format
2024-01-27 09:55:11 -05:00
Zach Daniel
77c01123f0
fix: properly set index on embedded type array errors
...
fixes #854
2024-01-27 09:55:04 -05:00
Dmitry Maganov
c40f762eee
fix: use correct option for relationship in atomic relate_actor
( #855 )
...
---------
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2024-01-27 09:53:03 -05:00
Barnabas Jovanovics
fb3e7050a1
fix: only count resources the actor is allowed to see ( #853 )
...
* fix: only count resources the actor is allowed to see
* remove specc added by vscode
2024-01-26 13:33:03 -05:00
Zach Daniel
50b186bef9
chore: fix typespec
2024-01-25 14:22:41 -05:00
Zach Daniel
2888fea33b
chore: format
2024-01-25 13:55:09 -05:00
Zach Daniel
56a75782e3
chore: update erlang/elixir version
2024-01-25 13:47:37 -05:00
Zach Daniel
b494c76a92
fix: deselect known forbidden fields *after* query authorization is complete
2024-01-25 11:19:52 -05:00
Barnabas Jovanovics
f2994502b9
add test for selecting policy ( #852 )
2024-01-25 11:08:31 -05:00
Jechol Lee
0d504ec429
test: Remove unnecessary authorize?: false in belongs_to_test ( #849 )
2024-01-25 10:50:37 -05:00
Zach Daniel
a68a628839
improvement: always define merge_load/4
2024-01-25 10:45:08 -05:00
Dmitry Maganov
c8b1eaa8f0
fix: soft?
in destroy action options is a boolean, not an atom ( #851 )
2024-01-24 14:52:31 -05:00
Barnabas Jovanovics
cfec396f99
fix: load fails because of empty list instead of query ( #847 )
2024-01-24 11:18:51 -05:00