ash/test
Davide Briani b256e1d8a3
test: Test loading paginated relationship when tenant is in primary key (#1252)
* Chore: test loading paginated relationship when tenant is in primary key

Ash is already able to load paginated relationships on multitenant
resources after a create or update action.
However this change specifically test the case of a many to many
relationship where the tenant is included in the primary key of the
joined resources.

Signed-off-by: Davide Briani <davide@briani.dev>

* fix: apply pagination at runtime for non lateral join queries
fix: consider multitenancy when checking if through-join is unique

---------

Signed-off-by: Davide Briani <davide@briani.dev>
Co-authored-by: Zach Daniel <zach@zachdaniel.dev>
2024-06-21 15:00:50 -04:00
..
actions test: Test loading paginated relationship when tenant is in primary key (#1252) 2024-06-21 15:00:50 -04:00
ash improvement: support atomics, update_query, destroy_query in ETS data layer 2024-04-25 22:18:54 -04:00
authorizer
calculations fix: allow calculations to access what would forbidden fields of related items 2024-05-08 16:22:48 -04:00
changeset test: add tests showing before_transaction hooks setting derived values 2024-06-02 11:59:18 -04:00
distinct
domain
filter improvement: add can_return_nil?/1 callback to Ash expressions 2024-05-14 17:58:13 -04:00
generator fix: fix seed not working when :__keep_nil__ is generated using seed_input (#1228) 2024-06-07 08:14:39 -04:00
notifier fix: properly persist simple_notifiers 2024-05-15 16:46:16 -04:00
policy fix: support ^arg/1 and similar constructions in filter policies on generic actions 2024-06-11 13:31:13 -04:00
query fix: fix the compare/2 implementations (#1232) 2024-06-10 08:15:51 -04:00
reactor improvement: add atomic_upgrade? flag to update/destroy actions 2024-05-23 11:05:17 -04:00
resource fix: don't start async limiter tasks if async is disabled 2024-06-17 10:56:48 -04:00
sort chore: run formatter. 2024-05-21 09:17:58 +12:00
support fix: support ^arg/1 and similar constructions in filter policies on generic actions 2024-06-11 13:31:13 -04:00
type feat: add new remove_nil_items? array type constraint (#1116) 2024-05-05 12:05:04 -04:00
ash_test.exs improvement: better create/update first argument (#1060) 2024-04-30 13:02:27 -04:00
code_interface_test.exs fix: improve non-atomic-upgrade policy handling 2024-05-23 18:34:15 -04:00
count_test.exs
embedded_resource_test.exs improvement: use the source configuration for attributes in embedded resources 2024-05-14 12:32:25 -04:00
error_test.exs fix: run changesets w/ after_transaction hooks through standard logic 2024-05-02 00:06:31 -04:00
helpers_test.exs
plug_helpers.ex
query_test.exs improvement: Implement show_sensitive? config (#1180) 2024-05-21 08:47:51 -04:00
seed_test.exs improvement: add tenant option to Ash.Seed.seed! (#1230) 2024-06-10 07:47:43 -04:00
simple_data_layer_test.exs
test_helper.exs
tracer_test.exs