Commit graph

4217 commits

Author SHA1 Message Date
dependabot[bot]
fae2c728b0
chore(deps-dev): bump ex_doc in the dev-dependencies group (#1251) 2024-06-20 18:33:10 -04:00
dependabot[bot]
aa93fe086d
chore(deps): bump the production-dependencies group with 2 updates (#1250) 2024-06-20 18:32:53 -04:00
Davide Briani
71d871b54a
Test loading relationships on multitenant resources after create or update (#1249)
* Chore: add tests on loading relationship on multitenant resource

Add tests to verify that relationships can be loaded on multitenant
resources after a create or update action.

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

* fix: set tenant in ets data layer when generating aggregates

---------

Signed-off-by: Davide Briani <davide@briani.dev>
Co-authored-by: Zach Daniel <zach@zachdaniel.dev>
2024-06-20 16:46:29 -04:00
m0rt3nlund
3888acb454
docs: fix typo in update-actions.md (#1248) 2024-06-20 15:07:42 -04:00
Zach Daniel
0eea01d21b chore: consider MapSet as valid for {:array type in matches_type?/2 2024-06-19 19:50:03 -04:00
Zach Daniel
62e06532f1 chore: fix typo in dirty hook checking 2024-06-19 11:29:22 -04:00
Zach Daniel
b32990df3a chore: support after_action hooks in atomic upgrade 2024-06-19 11:27:34 -04:00
Zach Daniel
97df7e714a fix: only prevent atomic upgrade when hooks were explicitly added 2024-06-19 11:23:52 -04:00
Dmitry Maganov
c0f1e2a622
fix: use right argument name in query set_result/clear_result (#1247) 2024-06-19 10:18:27 -04:00
Zach Daniel
2a2f20ade0 improvement: retain error context on overridden messages 2024-06-18 18:20:30 -04:00
Zach Daniel
d13f2eca47 chore: release version v3.0.15 2024-06-18 16:17:58 -04:00
Zach Daniel
29032725fb improvement: add optional matches_type?/2 callback to Ash.Type 2024-06-18 16:17:32 -04:00
Zach Daniel
91d4d86656 improvement: add backwards_compatible_interface? option to use Ash.Domain
use this to turn off inclusion of the old 2.0-based interface functions, i.e
`Domain.read`, `Domain.destroy`, `Domain.get` etc.
2024-06-18 11:56:32 -04:00
Zach Daniel
ac87338980 chore: remove unnecessary quotes from dependabot.yml 2024-06-18 10:15:10 -04:00
Zach Daniel
17bc583ccf ci: dependabot improvements 2024-06-18 10:12:14 -04:00
Zach Daniel
3499270a76 chore: release version v3.0.14 2024-06-18 09:16:21 -04:00
Zach Daniel
23973dc36e fix: apply join relationship filter when loading many_to_many relationships 2024-06-18 09:08:13 -04:00
Zach Daniel
154d43f6cc fix: ensure we honor any computed select changes when loading through attributes 2024-06-18 07:08:40 -04:00
Zach Daniel
54770a061f improvement: add subject and context keys to policy context 2024-06-17 22:01:00 -04:00
dependabot[bot]
81812d22e9
chore(deps): bump spark from 2.2.1 to 2.2.3 (#1245)
Bumps [spark](https://github.com/ash-project/spark) from 2.2.1 to 2.2.3.
- [Changelog](https://github.com/ash-project/spark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/spark/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: spark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 20:36:14 -04:00
Zach Daniel
377760cd57 chore: release version v3.0.13 2024-06-17 11:26:06 -04:00
Zach Daniel
fa5d4a1a96 fix: don't start async limiter tasks if async is disabled
fix: properly set default timeout to `:infinity`

this avoids unnecessary processes starting when in the vast majority of cases some external thing is imposing a timeout.

fix: pass down `identity` when doing upserts, for new feature support
2024-06-17 10:56:48 -04:00
Zach Daniel
1fe799c7bb chore: fix match eror in changeset hook runner 2024-06-15 11:31:39 -04:00
Zach Daniel
2316b7b056 fix: ensure that before_transaction hook errors fail the operation
fix: ensure that `before_transaction` hook errors still trigger `after_transaction` hooks
2024-06-15 11:27:47 -04:00
Zach Daniel
f3943acdba fix: abort bulk updates on before transaction hook errors 2024-06-15 11:13:42 -04:00
dependabot[bot]
3a20262db2
chore(deps): bump spark from 2.2.0 to 2.2.1 (#1243) 2024-06-14 18:51:35 -04:00
Zach Daniel
f0d2919928 chore: release version v3.0.12 2024-06-14 14:24:51 -04:00
Zach Daniel
05c51505f2 fix: fix expression interpolation for cast_atomic for integer, decimal, float 2024-06-14 14:16:20 -04:00
Barnabas Jovanovics
c3e02f7b9d
do not lose constraints context (#1242) 2024-06-14 10:48:19 -04:00
dependabot[bot]
4c73aa82bd
chore(deps): bump stream_data from 1.1.0 to 1.1.1 (#1241)
Bumps [stream_data](https://github.com/whatyouhide/stream_data) from 1.1.0 to 1.1.1.
- [Changelog](https://github.com/whatyouhide/stream_data/blob/main/CHANGELOG.md)
- [Commits](https://github.com/whatyouhide/stream_data/commits)

---
updated-dependencies:
- dependency-name: stream_data
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 19:56:20 -04:00
dependabot[bot]
3a02de77a7
chore(deps): bump spark from 2.1.24 to 2.2.0 (#1240)
Bumps [spark](https://github.com/ash-project/spark) from 2.1.24 to 2.2.0.
- [Changelog](https://github.com/ash-project/spark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/spark/compare/v2.1.24...v2.2.0)

---
updated-dependencies:
- dependency-name: spark
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 19:56:10 -04:00
Zach Daniel
9882037780 fix: set default argument values on generic actions
fixes #1220
2024-06-13 10:25:25 -04:00
Jechol Lee
c5d96e1a0a
chore: Fix warning: using map.field notation (#1238) 2024-06-13 08:02:35 -04:00
dependabot[bot]
fc6e377941
chore(deps-dev): bump credo from 1.7.6 to 1.7.7 (#1237)
Bumps [credo](https://github.com/rrrene/credo) from 1.7.6 to 1.7.7.
- [Release notes](https://github.com/rrrene/credo/releases)
- [Changelog](https://github.com/rrrene/credo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rrrene/credo/compare/v1.7.6...v1.7.7)

---
updated-dependencies:
- dependency-name: credo
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 19:39:27 -04:00
Zach Daniel
731fe30330 improvement: set a module when validating accepts 2024-06-12 09:37:24 -04:00
Zach Daniel
00e294e050 fix: support ^arg/1 and similar constructions in filter policies on generic actions
closes #1221
2024-06-11 13:31:13 -04:00
Zach Daniel
c4f7efac7a docs: update changelog 2024-06-11 10:15:16 -04:00
Zach Daniel
25b214444c chore: release version v3.0.11 2024-06-11 10:09:57 -04:00
Davide Briani
cd06f919c0
fix: load relationships on bulk operations (#1234)
This change validates that the `load` statement of bulk operations is
respected when specified, and correctly loads relationships.

Loading relationships with pagination on results for bulk destroys is
still not supported. Indeed, relationships are currently queried using a
lateral join but after the resource deletion has happened, so it looks
like nothing is related.

Signed-off-by: Davide Briani <davide@briani.dev>
2024-06-10 20:14:37 -04:00
dependabot[bot]
55457d4b8d
chore(deps): bump spark from 2.1.23 to 2.1.24 (#1235)
Bumps [spark](https://github.com/ash-project/spark) from 2.1.23 to 2.1.24.
- [Changelog](https://github.com/ash-project/spark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/spark/compare/v2.1.23...v2.1.24)

---
updated-dependencies:
- dependency-name: spark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-10 19:59:46 -04:00
Zach Daniel
e3706c2552 improvement: use IO.warn for allow_nil_inputs error 2024-06-10 17:53:35 -04:00
Zach Daniel
d5d0b04bb6 improvement: validate require_attributes and allow_nil_input at compile time 2024-06-10 17:43:15 -04:00
Zach Daniel
22b5c644b8 chore: select -> query.select 2024-06-10 15:27:10 -04:00
Zach Daniel
5d4c51015e fix: only apply load through for attributes that are being selected directly
fix: ensure we lateral join with `from_many?: true` or any `:many` cardinality relationships
2024-06-10 15:23:26 -04:00
Zach Daniel
8dc0c2cb05 chore: remove ancient adapter code 2024-06-10 11:30:01 -04:00
Davide Briani
ae9671158f
fix: correctly load paginated relationships after create, update, delete (#1229)
Ensure that relationships can be correctly loaded, even with pagination,
on the resources resulting from create, update and delete actions.

Signed-off-by: Davide Briani <davide.briani@secomind.com>
2024-06-10 10:46:49 -04:00
Zach Daniel
46450f75e3 fix: return proper {:ok, value} from Ash.Type.Atom.apply_constraints/2 2024-06-10 10:43:14 -04:00
Andreas Donig
4153ba7ef3
fix: fix the compare/2 implementations (#1232)
Co-authored-by: Andreas Donig <git@innwiese.de>
2024-06-10 08:15:51 -04:00
Robert Timis
6b964b9384
improvement: add tenant option to Ash.Seed.seed! (#1230) 2024-06-10 07:47:43 -04:00
dependabot[bot]
1f34fa9191
chore(deps): bump spark from 2.1.22 to 2.1.23 (#1231) 2024-06-07 19:02:59 -04:00