Commit graph

4139 commits

Author SHA1 Message Date
Zach Daniel
8317e6fca9 fix: properly pin Enum.join in atomic for enum types
fixes #1033
2024-04-20 15:50:11 +01:00
Zach Daniel
d49f991021 fix: ensure actor is set when building queries in filter 2024-04-20 15:46:49 +01:00
Zach Daniel
fc931ab224 test: add tests for code interfaces that take maps 2024-04-20 15:14:21 +01:00
Zach Daniel
7a8836ec69 chore: release version v3.0.0-rc.27 2024-04-19 16:09:53 +01:00
Zach Daniel
c7991ec8a7 fix: don't eager evaluate type because it breaks data layers 2024-04-19 16:09:42 +01:00
Rebecca Le
7c75e5c102
refactor: Move opt schema definitions for built-in changes and validations to their specific modules (#1036)
* refactor: Move Spark opts definitions for built-in changes to the relevant change modules

This allows the change modules to be read and grokked standalone, without
needing to refer back to the `Builtins` module just for the opts

* refactor: Move Spark opts definitions for built-in validations to the relevant validation modules

This allows the change modules to be read and grokked standalone, without
needing to refer back to the `Builtins` module just for the opts
2024-04-19 15:43:35 +01:00
Zach Daniel
94f319a5f4 chore: invert code interface for simpler checking 2024-04-19 14:19:49 +01:00
Zach Daniel
45967e9d23 chore: release version v3.0.0-rc.26 2024-04-19 13:41:46 +01:00
Zach Daniel
89f15103c8 fix: ensure __union_tag__ is set when calling sub-union types 2024-04-19 13:41:05 +01:00
Zach Daniel
a2ac66093c fix: handle more &Mod.fun/n variations in fragments 2024-04-17 16:12:55 +01:00
Zach Daniel
975a100c15 chore: release version v3.0.0-rc.25 2024-04-17 15:08:39 +01:00
Zach Daniel
28136ec43f chore: format 2024-04-17 15:08:29 +01:00
Zach Daniel
45b66f539b chore: remove atomic
fix: ensure validations are considered atomic
2024-04-17 15:07:15 +01:00
Zach Daniel
8e1fd3b833 improvement: better eager expression parsing and atomic error anticipation 2024-04-17 02:34:33 +01:00
Zach Daniel
ccb06b1628 fix: ensure tenant and actor are properly set in Ash.can?
fixes #1027
2024-04-17 00:14:31 +01:00
Zach Daniel
65d51ac98d chore: release version v3.0.0-rc.24 2024-04-16 21:50:38 +01:00
Zach Daniel
f960e69437 chore: remove IO.inspect 2024-04-16 21:49:59 +01:00
Zach Daniel
70cd40065b fix: ensure changeset filter is parsed for templates 2024-04-16 21:03:25 +01:00
Zach Daniel
65675ef337 fix: properly parse additional changeset expression 2024-04-16 20:45:43 +01:00
Zach Daniel
371c2d1515 fix: properly parse changeset template for filters 2024-04-16 20:41:19 +01:00
Zach Daniel
3044339396 fix: properly parse changeset filter 2024-04-16 20:35:30 +01:00
Zach Daniel
4b50550149 chore: fix typo 2024-04-16 20:31:57 +01:00
Zach Daniel
3ab096258d chore: release version v3.0.0-rc.23 2024-04-16 20:28:50 +01:00
Zach Daniel
3b8a15fd34 fix: ensure changeset filters are applied on bulk destroy/update 2024-04-16 20:27:42 +01:00
Zach Daniel
fb90709f71 chore: release version v3.0.0-rc.22 2024-04-16 18:19:51 +01:00
Zach Daniel
a147062523 improvement: add Ash.read_first 2024-04-16 18:19:20 +01:00
Zach Daniel
77ee3686eb improvement: helpful output in mix tasks helper 2024-04-16 17:37:15 +01:00
Zach Daniel
7ebf33728f docs: remove outdated information 2024-04-16 12:11:25 +01:00
Riccardo Binetti
6d209e8836
feat: configurable multitenancy on read actions (#1030)
Allow making specific read actions able to optionally or totally bypass
multitenancy
2024-04-16 12:09:13 +01:00
Riccardo Binetti
7c189ede32
fix: fix typo in load test (#1031) 2024-04-16 12:06:48 +01:00
Ben Swift
3c06d04124
docs: fix typo in code snippet for change actions doc (#1032) 2024-04-16 11:58:53 +01:00
Dmitry Maganov
8bcbfc5b17
fix: support all calculate opts in code interface methods (#1026) 2024-04-15 22:34:33 +01:00
Riccardo Binetti
11de5dd64f
improvement: use explicit read actions when reading relationships (#1029)
While filter, sorts etc are already copied from the read action into the query,
using the right action is relevant, for example, when it's checked against in
policies, or in preparations that check the action name from the query
2024-04-15 22:33:56 +01:00
Aidan Gauland
b4c382a24d
Docs: Typo fixes (#1025)
* Fix incorrect plurality

* Fix "validation" in place of "change"
2024-04-15 05:16:02 -04:00
Zach Daniel
fc02f4cc1d docs: fix typo in getting started guide 2024-04-14 17:19:28 -04:00
Riccardo Binetti
3338b343ac
improvement: use cached to_tenant when setting tenant attribute (#1021) 2024-04-14 11:53:09 -04:00
Zach Daniel
7e277673fd docs: add picosat change to upgrade guide 2024-04-14 11:11:43 -04:00
Zach Daniel
71d842bd0c chore: release version v3.0.0-rc.21 2024-04-13 20:50:48 -04:00
Zach Daniel
3519a85cee fix: ensure to_tenant is copied to aggregate query 2024-04-13 20:47:01 -04:00
Zach Daniel
fca5bff35d chore: release version v3.0.0-rc.20 2024-04-13 17:23:11 -04:00
Zach Daniel
bc69f904e2 improvement: support require_reference?: false on code interfaces
improvement: support `:filter` option on bulk create/destroy
2024-04-13 17:21:43 -04:00
Riccardo Binetti
9c74e52bd8
improvement: make match/1 overridable in Ash.Type.Enum (#1020)
Allow handling additional inputs to map them to one of the enum values
2024-04-13 14:07:23 -04:00
Zach Daniel
6658c399d5 docs: fix link to postgres upgrade guide 2024-04-13 11:29:48 -04:00
Ben Swift
2c164f0130
docs: fix typo :ubject -> :subject in get-started.md (#1019) 2024-04-12 19:50:54 -04:00
dependabot[bot]
10cc7354e3
chore(deps-dev): bump ex_doc from 0.32.0 to 0.32.1 (#1018)
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.32.0 to 0.32.1.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/v0.32.1/CHANGELOG.md)
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.32.0...v0.32.1)

---
updated-dependencies:
- dependency-name: ex_doc
  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-04-12 19:08:39 -04:00
Zach Daniel
0e2b392413 fix: compilation time improvements (hopefully) 2024-04-12 14:14:14 -04:00
Lukas Ender
10e3722446
fix: code_interface actions accept @context (#1016) 2024-04-12 10:26:46 -04:00
Zach Daniel
8ea51ec506 fix: ensure tenant is set to opts in action helpers 2024-04-11 23:33:22 -04:00
Zach Daniel
47dde10329 improvement: adding domain to embedded resource is an error 2024-04-11 22:28:47 -04:00
dependabot[bot]
13f0497d44
chore(deps): bump spark from 2.1.16 to 2.1.17 (#1013)
Bumps [spark](https://github.com/ash-project/spark) from 2.1.16 to 2.1.17.
- [Changelog](https://github.com/ash-project/spark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/spark/compare/v2.1.16...v2.1.17)

---
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-04-11 18:27:34 -04:00