Zach Daniel
dcfd53f22f
chore: add back in and improve tmp_ref logic
2024-06-24 21:33:55 -04:00
Zach Daniel
daf4b08ab1
chore: more fixes for ash_started_transaction?
2024-06-24 19:55:38 -04:00
Zach Daniel
1d45802d32
fix: ensure we reset ash_started_transaction process flag
2024-06-24 19:51:20 -04:00
Zach Daniel
fb5e7e7e74
fix: ensure we always set ash_started_transaction?
back to false
2024-06-24 19:47:24 -04:00
kernel-io
7ac9d9bdb2
fix: gather notifications in main ref not tmp ref. ( #1263 )
...
Signed-off-by: kernel-io <kernel-io@users.noreply.github.com>
2024-06-24 18:51:03 -04:00
Zach Daniel
83434b0d1a
improvement: bulk destroy for handling array changes in embeds
...
improvement: set `__union_tag__` constraint in array handlers for unions
fix: sleep to avoid uuidv7 specifity flaky test
test: remove unused variable in tests
2024-06-24 09:48:08 -04:00
Zach Daniel
ec4ff55529
fix: ensure that we notify on code-interface id synthesized bulk operations
2024-06-24 08:38:45 -04:00
Zach Daniel
d72b59253a
docs: update docs on batch callbacks
2024-06-24 08:25:30 -04:00
Matheus Cardoso
d858044037
docs: Fix typo in Changes docs ( #1260 )
2024-06-24 08:22:09 -04:00
Zach Daniel
60630f23a6
fix: initialize subtypes of unions
...
fix: properly apply load-through behavior for arrays
2024-06-23 21:12:12 -04:00
Zach Daniel
eb5490fe6f
improvement: support offset in the simple data layer
...
closes #1257
2024-06-23 20:22:21 -04:00
Zach Daniel
ced91af39f
chore: avoid trying nil
loads
2024-06-23 18:58:39 -04:00
Andreas Donig
23d504e151
Handle relationship filter on primary key ( #1254 )
...
Co-authored-by: Andreas Donig <git@innwiese.de>
2024-06-23 18:20:28 -04:00
Alessio Montagnani
7f2e7d3ec1
improvement: bring uuid version 7 into the core ( #1253 )
2024-06-23 18:16:20 -04:00
Zach Daniel
e17fa8a1c5
chore: get build passing
2024-06-23 17:44:02 -04:00
Zach Daniel
85b928b0d9
chore: remove IO.inspect 🤦🏻
2024-06-23 17:42:46 -04:00
Zach Daniel
9421dbe535
improvement: properly handle after_action hooks in fully atomic changesets
2024-06-23 17:41:11 -04:00
Zach Daniel
78114226a6
improvement: yes, we can in fact do after action hooks atomically
2024-06-23 16:30:10 -04:00
Zach Daniel
abb28cae4a
improvement: make after_action change builtin atomic
2024-06-23 16:09:18 -04:00
Matheus Cardoso
e8a38207b7
docs: Fix typo in Multitenancy docs ( #1256 )
...
* Fix typo in Multitenancy docs
* Remove unnecessary new line in Multitenancy docs
2024-06-23 07:56:33 -04:00
Matheus Cardoso
30d413eb74
docs: Fix typo in Actors and Authorization docs ( #1255 )
2024-06-23 07:55:56 -04:00
Zach Daniel
04707aafd7
chore: elixir 1.17 warning
2024-06-21 19:41:08 -04:00
Zach Daniel
5727cc273f
improvement: add mix ash.install
...
improvement: add `mix ash.gen.resource`
improvement: add `mix ash.gen.base_resource`
improvement: add `mix ash.gen.domain`
improvement: add `mix ash.extend`
2024-06-21 19:09:35 -04:00
Zach Daniel
229887347e
docs: update changelog
2024-06-21 15:05:42 -04:00
Zach Daniel
c43286cb6b
chore: release version v3.0.16
2024-06-21 15:02:50 -04:00
Zach Daniel
af1fa5eca3
fix: use the proper opts when calling manual updates in bulk updates
2024-06-21 15:01:14 -04:00
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
Zach Daniel
2bdc6efde3
fix: don't run any before_action
hooks if changeset is invalidated in prior hook
2024-06-21 11:04:26 -04:00
Zach Daniel
cb29738927
chore: fix credo/build
2024-06-20 18:43:51 -04:00
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