Commit graph

3462 commits

Author SHA1 Message Date
Riccardo Binetti
b7cfddf77c
fix: make bang variant of field aggregates work correctly (#954)
split_aggregate_opts/1 was called too early so it didn't handle the translation
of :read_action to :action, leading to a NimbleOptions error during validation
2024-03-27 14:22:49 -04:00
Riccardo Binetti
8826c9ec35
fix: enforce multitenancy on aggregates (#952)
The multitenancy attribute was already considered as a filter in
aggregates, but the presence of the tenant was not enforced
2024-03-27 10:07:53 -04:00
Dmitry Maganov
4522d7349d
fix: fix missing tenant in some bulk contexts (#951) 2024-03-27 07:31:19 -04:00
WIGGLES
65a28cff33
fix: Fix places where tenant is not passed along (#950)
* pass tenant to top legel aggregate api

* pass tenant manage relationship when loading relationships
2024-03-26 13:30:37 -04:00
Zach Daniel
82b5fd4914 chore: release version v2.21.2 2024-03-26 02:10:20 -04:00
Zach Daniel
35d45238c9 fix: don't try to reselect fields when pkeys are missing 2024-03-26 02:10:03 -04:00
Zach Daniel
a31caaf08b chore: release version v2.21.1 2024-03-24 23:25:51 -04:00
Zach Daniel
88d0b46dec improvement: detect loaded-through types 2024-03-24 23:25:28 -04:00
Zach Daniel
de90f23f9f chore: release version v2.21.0 2024-03-24 19:47:08 -04:00
Zach Daniel
9f1d1ff723 chore: format 2024-03-24 19:39:06 -04:00
Zach Daniel
4e93212838 chore: fix match clause on calculation evaluation 2024-03-24 19:30:21 -04:00
Dmitry Maganov
a85f559a20
fix: convert %{__struct__: T} into %T{} (#947) 2024-03-24 19:26:38 -04:00
Dmitry Maganov
e6315e2928
improvement: support load option for create/update/destroy (#946) 2024-03-24 19:26:04 -04:00
Zach Daniel
ac0ff0e2e4 improvement: restore old behavior of leveraging in memory values for calculations 2024-03-24 19:25:13 -04:00
Dmitry Maganov
7734ac0967
fix: corrections for reload/reload! (#942) 2024-03-23 15:42:30 -04:00
Dmitry Maganov
d65294c174
fix: show that Policy.Check.strict_check can return an error tuple (#945) 2024-03-23 15:41:20 -04:00
Zach Daniel
0afb9ade26 chore: fix typo 2024-03-22 03:38:28 -04:00
Zach Daniel
6f21ecf0f8 chore: fix typo & remove unused variable 2024-03-22 03:23:27 -04:00
Zach Daniel
d1c0f0e6d6 improvement: simplify inspect for aggregates
fix: remove unnecessary function
2024-03-22 03:10:13 -04:00
Minsub Kim
75b2d2eb00
feat: add less_than, greater_than constraints to float, decimal (#936) 2024-03-22 02:39:59 -04:00
Riccardo Binetti
23055f0a18
feat: allow providing descriptions to Ash.Type.Enum values (#940)
As discussed in https://github.com/ash-project/ash_graphql/issues/116, this
allows extensions to use the description to use the provided descriptions.

The documentation assumes that if a user provides a description, it does so for
all values (since this seems to be a reasonable assumption and allows the nicer
keyword list syntax). However tests also cover an enum with some missing
descriptions.
2024-03-22 02:38:59 -04:00
Zach Daniel
5a338206b7 fix: fully expand calculation and aggregate references for applying authorization 2024-03-22 01:10:15 -04:00
Hannes Wüthrich
00b1ef3bee
fix: batch_change/3 is never called for updates (#938)
* fix: bulk updates for streams ignore :batch_size
2024-03-21 08:40:18 -04:00
Dmitry Maganov
ed4655cd83
improvement: add matches built-in policy check (#937) 2024-03-21 08:39:21 -04:00
Zach Daniel
c04b638136 chore: format, add back missing function 2024-03-20 16:44:40 -04:00
Hannes Wüthrich
b398107ca3
fix: don't double-encode vector data (#934) 2024-03-20 16:32:45 -04:00
skanderm
f5daca37c2
fix: update set/get/update_context function specs to use maps (#935) 2024-03-20 16:00:49 -04:00
Zach Daniel
e6efe135b7 chore: release version v2.20.3 2024-03-20 15:58:16 -04:00
Zach Daniel
3ca8409ba5 fix: ensure calculation context is set on aggregate contents 2024-03-20 15:51:39 -04:00
Dmitry Maganov
cc440d9fa0
fix: set source_attribute from join_relationship in many_to_many (#932) 2024-03-19 08:11:15 -04:00
Zach Daniel
f15427e03d chore: release version v2.20.2 2024-03-19 00:05:31 -04:00
Zach Daniel
aafeab5e94 fix: use proper logic for atomic present validations
improvement: cast atomic reference types, makes life easier for data layers
2024-03-19 00:04:57 -04:00
Jechol Lee
096542f352
fix: Set tenant correctly when reading many_to_many relationship. (#928) 2024-03-14 20:30:10 -04:00
Zach Daniel
d62faaa0a5 fix: properly match no_rollback error 2024-03-14 14:35:45 -04:00
Dmitry Maganov
c485e714b0
fix: load with right module in get_rewrites of Ash.Type.Struct (#927) 2024-03-13 14:41:53 -04:00
Zach Daniel
54bbcc3057 chore: I was wrong 2024-03-12 20:32:12 -04:00
Tun Cham Roeun
7d7bcaa3d7
fi: fetch_count/4 use the query after applying before_action hooks (#922)
---------

Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2024-03-12 20:28:52 -04:00
Dmitry Maganov
b75327445c
improvement: use wrap_list for where in changes.change (#926) 2024-03-12 13:02:43 -04:00
Zach Daniel
8df5d5fd92 improvement: don't require Mix to compile an Ash resource 2024-03-11 21:43:04 -04:00
Zach Daniel
b89120ff15 fix: ensure that calculation dependency loader combines selects 2024-03-11 21:37:40 -04:00
Zach Daniel
74080f8043 chore: reorder case statements 2024-03-11 21:30:08 -04:00
Zach Daniel
ea9ec7dfef fix: properly handle raised errors from async calculations
fix: ensure depended on attributes are selected in calculations
2024-03-11 21:28:59 -04:00
Zach Daniel
2c432bb193 fix: properly merge related selects when merging loads 2024-03-11 21:12:11 -04:00
Zach Daniel
a1b3105e8b chore: properly set indexed map values in casted_attributes 2024-03-11 12:34:21 -04:00
Zach Daniel
b7cb89c481 chore: ensure constrainted attributes appear in casted_*
chore: update dsl docs
2024-03-11 12:18:17 -04:00
Zach Daniel
e63b8f3b39 chore: release version v2.20.1 2024-03-11 11:35:05 -04:00
Zach Daniel
40977bce4f improvement: store casted values even if they are nil 2024-03-11 11:05:10 -04:00
Dmitrii Maganov
57a99cbc76 chore: remove unneeded persist call 2024-03-11 16:14:21 +13:00
Dmitry Maganov
19c33397aa
fix: typespec for action policy check supports list of action names (#924) 2024-03-10 21:06:11 -04:00
Dmitry Maganov
ecaef99ddf
docs: uuid_primary_key does not have generated?: true by default (#923) 2024-03-10 21:05:42 -04:00