Commit graph

4137 commits

Author SHA1 Message Date
Zach Daniel
d053db0736 improvement: consider from: nil in changing_attributes/1 check 2024-05-16 09:55:01 -05:00
Rebecca Le
619a0d61ad
bug: Add more failing tests around cascade_destroy functionality (#1173)
Issues occur when there is no data to cascade destroy, or notifications are requested but none are returned
2024-05-16 09:54:22 -05:00
Sucipto
441bc74d40
docs: fix typo on destroy actions (#1174) 2024-05-16 09:54:06 -05:00
Zach Daniel
751153990b docs: add alternatives guide 2024-05-16 09:38:31 -05:00
Barnabas Jovanovics
b4cf231be2
fix: only return valid non nil values items from generator (#1121) 2024-05-16 08:26:56 -05:00
Zach Daniel
7f7c1377cf fix: properly validate input action on bulk destroy
fix: allow setting `authorize?: false`
2024-05-16 00:02:18 -05:00
Zach Daniel
b74ef1e83e chore: set default value for get?: true 2024-05-15 23:36:40 -05:00
Zach Daniel
13c57a6b7e fix: honor get? for bulk update/bulk destroy 2024-05-15 23:25:18 -05:00
Rebecca Le
48b458c4fd
bug: Add failing test for verifying bulk destroy actions (#1172)
* bug: Add failing test for verifying bulk destroy actions

* bug: Add failing test for skipping authorization checks on a bulk destroy
2024-05-15 23:24:44 -05:00
Alan Heywood
4214522302
^ref argument order fixes (#1171) 2024-05-15 19:56:06 -04:00
Zach Daniel
937d026827 chore: release version v3.0.2 2024-05-15 16:50:39 -05:00
Zach Daniel
7ec98ef8ab fix: properly persist simple_notifiers 2024-05-15 16:46:16 -04:00
Zach Daniel
5b18e71738 fix: accept ids in code interfaces again 2024-05-15 15:45:58 -04:00
Zach Daniel
835187df49 fix: ensure that the changed? context is set in after action hooks on batches 2024-05-15 14:08:19 -04:00
Zach Daniel
ad0274b0a3 improvement: add pattern matching for clarity on ref/1 and ref/2
chore: remove debug logger configuration from test
2024-05-15 11:25:54 -04:00
Zach Daniel
8481873ed5 fix: allow for inferred domains when authorizing join queries
closes #1167
2024-05-15 09:48:24 -04:00
m0rt3nlund
d3ff7b1656
Update sensitive-data.md, tyring to clearify that public? applies to … (#1168)
* fix typo

* Update sensitive-data.md, tyring to clearify that public? applies to read

---------

Co-authored-by: Barnabas Jovanovics <barnabas.jovanovics@gmail.com>
2024-05-15 09:31:52 -04:00
Zach Daniel
35bbd3f1b0 docs: use strict_loads false in upgrade guide 2024-05-14 21:29:48 -04:00
Zach Daniel
2681684922 improvement: add can_return_nil?/1 callback to Ash expressions 2024-05-14 17:58:13 -04:00
Zach Daniel
3263ec2ee9 fix: don't show a type error on nil for lists
closes #1166
2024-05-14 17:09:34 -04:00
Davide Briani
449da541e2
Fix: keep data's metadata in atomic update (#1165) 2024-05-14 13:17:51 -04:00
Zach Daniel
576c729bba improvement: raise argument error on unknown options in Ash.Type.NewType
closes #1142
2024-05-14 12:34:25 -04:00
Zach Daniel
23d78ec43f improvement: use the source configuration for attributes in embedded resources
closes #1143
2024-05-14 12:32:25 -04:00
Zach Daniel
a3682d3ef6 chore: update changelog 2024-05-14 11:42:50 -04:00
Zach Daniel
124a3c734e improvement: better types for checks, for spark autocomplete
chore: update spark
2024-05-14 11:38:33 -04:00
Zach Daniel
5392a3ae78 improvement: added a did_you_mean field and error message for NoSuchInput 2024-05-14 10:36:46 -04:00
Zach Daniel
6ee4fb484d chore: fix spark dep 2024-05-14 10:16:43 -04:00
Zach Daniel
3f77e09b3c chore: release version v3.0.1 2024-05-14 10:15:48 -04:00
Zach Daniel
fa172b3be2 fix: don't eager evaluate exists erroneously 2024-05-14 10:11:27 -04:00
Barnabas Jovanovics
ca61d56fcf
docs: fix typo (#1164) 2024-05-14 09:50:06 -04:00
Barnabas Jovanovics
0dfad7c228
fix: handle nil case (#1163) 2024-05-14 06:16:07 -04:00
dependabot[bot]
610c0195c5
chore(deps): bump stream_data from 0.6.0 to 1.0.0 (#1162) 2024-05-13 20:11:00 -04:00
Zach Daniel
8f7a679289 chore: put spark dep back 2024-05-13 16:04:50 -04:00
Zach Daniel
7b1b26943c fix: don't attempt to traverse not loaded and forbidden values when rewriting policies 2024-05-13 15:56:47 -04:00
Nicholas Moen
c3957749bf
docs: change wording to discourage use of simple_sat unless needed (#1161) 2024-05-13 12:52:57 -04:00
Barnabas Jovanovics
de0bd815e8
fix: add __source__ to union inner_constraints (#1160) 2024-05-13 18:45:31 +02:00
Barnabas Jovanovics
3e27ca9df5
fix: copy context for the other destroy calls too (#1159) 2024-05-13 09:43:43 -04:00
Barnabas Jovanovics
f755af2228
fix: inifite recursion if query is empty (#1158) 2024-05-13 09:20:27 -04:00
Simon Nyström
f69e946a7d
docs: Fix incorrect documentation for Ash.create (#1157) 2024-05-13 09:11:13 -04:00
Rebecca Le
6afd9f57f2
docs: Clarify resource code in Actions guide (#1156) 2024-05-13 07:30:59 -04:00
12de8d19a5 fix(cascade_destroy): Always return and explicitly dispatch notifications.
**note** `notify?` option is now `return_notifications?`.
2024-05-13 09:28:20 +12:00
e7c8edc8f3 fix: Seems like we shouldn't just throw away notifications without being upset about it. 2024-05-13 09:28:20 +12:00
55e625e63a chore: code gardening. 2024-05-13 09:28:20 +12:00
89db4ac154 fix: incorrect result matching in bulk destroy.
Transactions return an ok/error tuple, so we need to handle it and simulate an bulk result error on error.
2024-05-13 09:28:20 +12:00
70c1a688f8 feat: Add cascade_destroy to builtin changes. 2024-05-13 09:28:20 +12:00
Zach Daniel
11f0f9aa03 fix: ensure that changeset filters are honored in ETS destroy/update_query
fix: in simulated bulk actions, a stale record should be ignored
fix: don't rollback transactions on stale records
2024-05-12 16:16:39 -04:00
Riccardo Binetti
1f8c27225f
chore: add failing tests for filter on stream bulk update/destroy (#1151) 2024-05-12 15:32:13 -04:00
Zach Daniel
b48c989b15 fix: don't check required belongs to fields until after setting them in bulk creation
docs: fix doc links for code interface guide

fixes #1154
2024-05-12 14:12:24 -04:00
Riccardo Binetti
69ba0f7ce3
fix: check require_reference? when generating update code interface (#1152) 2024-05-11 20:11:44 -04:00
Zach Daniel
c303c8c7f4 docs: wording 2024-05-11 18:50:55 -04:00