Zach Daniel
5ea570591b
fix: don't attempt to key a struct
2023-10-27 11:07:11 -04:00
Zach Daniel
e8f22aa7b5
chore: release version v2.16.1
2023-10-27 00:43:53 -04:00
Zach Daniel
0a0148214a
fix: ensure item constraints are passed to array casting
2023-10-27 00:37:28 -04:00
Zach Daniel
f7b2af8bcc
fix: handle non-list values in Ash.Actions.Sort.process/4
2023-10-26 23:52:25 -04:00
Zach Daniel
348488e377
chore: fix typo copypasta
2023-10-26 22:07:33 -04:00
Zach Daniel
7b50a401d8
fix: optimize and make Ash.Type
more consistent
2023-10-26 22:04:57 -04:00
Riccardo Binetti
f12a73ad88
docs: fix Ash.Resource.Preparation moduledoc ( #759 )
...
It mentioned changeset and change instead of query and preparation
2023-10-26 19:27:30 -04:00
Zach Daniel
34a4e416b0
fix: fix typespec for include_source/2
2023-10-26 10:11:54 -04:00
Zach Daniel
0988f31811
chore: fix typespec for error class module
2023-10-26 10:05:20 -04:00
Zach Daniel
8a31284015
chore: process sort before checking for parent exprs
2023-10-26 10:02:17 -04:00
Zach Daniel
4797e148ac
improvement: detect more parent expressions
2023-10-26 09:58:08 -04:00
Zach Daniel
7296874952
chore: release version v2.16.0
2023-10-25 17:48:09 -04:00
Robert Graff
a48d43e79d
fix more handle change use cases ( #757 )
2023-10-25 17:47:50 -04:00
Zach Daniel
e680867be9
fix: don't reorder global validations/changes
...
fix: use latest spark, and new persisters callback
fix: properly validate belongs_to relationships
2023-10-25 17:45:55 -04:00
Zach Daniel
539f5a1727
fix: remove invalid usages of unsafe_change_attribute/3
...
ci: test against `ash_paper_trail`
2023-10-25 13:06:04 -04:00
Robert Graff
0e538470a2
test: regression test for Ash.Changeset.changing_attribute?/2
( #755 )
2023-10-25 12:56:45 -04:00
Barnabas Jovanovics
b843de6d78
docs: explicitly mention read action ( #754 )
2023-10-25 11:20:08 -04:00
user20230119
a4f9115e63
docs: fix typos for attribute, writable and update_default ( #753 )
2023-10-25 10:08:14 -04:00
Robert Graff
f03b6a4370
fix: handle builtin types in unions ( #752 )
2023-10-25 08:31:25 -04:00
Zach Daniel
d6c1445974
chore: update docs
2023-10-24 12:42:35 -04:00
Frédérick Capovilla
76783b355b
feat: Add unknown argument error when passing an unknown key to an action. ( #750 )
...
* improvement: Add ash_three? feature flag for Ash 3.0 related behaviors.
* test: Add the ash_three test tag to exclude tests targetting Ash 3.0
2023-10-24 12:27:33 -04:00
Zach Daniel
a7bb5e6005
chore: release version v2.15.20
2023-10-24 10:40:10 -04:00
Zach Daniel
b9c514baf9
ci: temporarily disable ash_sqlite testing
2023-10-21 23:31:32 -04:00
Zach Daniel
7eac076581
chore: update dialyzer & cleanup dead code
2023-10-21 23:30:33 -04:00
Zach Daniel
63dbf2603f
chore: format
2023-10-21 23:20:13 -04:00
Zach Daniel
9ad876af20
improvement: add Ash.Test.assert_has_error
and Ash.Test.refute_has_error
2023-10-21 23:14:45 -04:00
Zach Daniel
dec32f47ee
improvement: support to_error_class
taking changeset/query/input
2023-10-21 22:55:45 -04:00
Frédérick Capovilla
bb666ee94e
docs: link to the ash_postgres references documentation in the Relationships guide ( #748 )
...
---------
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2023-10-21 22:39:15 -04:00
Frédérick Capovilla
60d12f86da
fix: Change heading levels in generated livebook to have only one H1 ( #747 )
2023-10-21 22:32:46 -04:00
Frédérick Capovilla
5fe3cdc26e
improvement: add "filename" parameter to the livebook generator. ( #746 )
2023-10-21 22:32:05 -04:00
Jordan Hewitt
003d5eb0e3
fix: code gen interfaces check type first argument ( #749 )
...
* reproduced reported error message.
* remove path matching from code interface in order to make error error from issue 679 more clear.
---------
Co-authored-by: Jordan <srcrr-gitlab@ipriva.com>
2023-10-21 19:52:37 -04:00
Kevin Schweikert
313ec74152
docs: inset code in set_attrbute docs ( #745 )
2023-10-21 14:13:45 -04:00
Zach Daniel
799a1d1dd3
fix: properly support get
in Ash
...
fix: add back in accidentally removed transformer
2023-10-20 08:09:14 -04:00
Zach Daniel
2dbebf39e1
fix: properly determine resource from Ash.get!/2
2023-10-20 06:22:32 -04:00
Zach Daniel
1ab5a35d7f
improvement: support an api
option to use Ash.Resource
( #715 )
...
* improvement: support an `api` option to `use Ash.Resource`
improvement: add functions to `Ash` for resources w/ configured apis
improvement: default code_interface.define_for to resource's ash api
2023-10-20 06:07:34 -04:00
Zach Daniel
0176958ec0
fix: cast functional default values
2023-10-19 12:06:56 -04:00
Zach Daniel
d5621fbc8c
improvement: cast_input for default values at compile time
2023-10-19 11:57:07 -04:00
Zach Daniel
60977a4d6c
chore: make credo happy
2023-10-19 11:25:33 -04:00
Zach Daniel
b605232f7e
chore: comment out more unnecessary code
2023-10-19 11:14:57 -04:00
Zach Daniel
cb8fc298ae
fix: temporarily omit overzealous validation
2023-10-19 11:14:08 -04:00
Zach Daniel
7d06d8fa46
fix: properly honor max_concurrency
option
...
chore: remove IO.inspect
2023-10-18 16:53:12 -04:00
Zach Daniel
381d45a3f8
improvement: optimize bulk creates where results are not returned
2023-10-18 16:18:57 -04:00
Zach Daniel
ff88ce68b4
improvement: rewrite bulk creates, optimize changeset functions ( #744 )
2023-10-18 14:07:44 -04:00
De Wet Blomerus
52214bd2d9
docs: Remove extra trailing close-paran 🔥 ( #743 )
2023-10-17 21:38:08 -04:00
Zach Daniel
a92a0b4c9b
fix: support tenant option in api.can
...
closes #736
2023-10-17 21:25:53 -04:00
Zach Daniel
346b942f5e
ci: the org name is not ash-sqlite
lol
2023-10-17 15:14:19 -04:00
Zach Daniel
b32f2e55ea
fix: properly use constraints when casting expression values
2023-10-17 15:08:54 -04:00
Zach Daniel
ccf635e711
improvement: better storage_type handling, undo function change
2023-10-17 14:46:28 -04:00
Zach Daniel
24ae31c6dd
fix: don't re-case constraints in the type
function
2023-10-17 14:20:56 -04:00
Zach Daniel
c014fc2f0a
chore: release version v2.15.19
2023-10-17 14:08:19 -04:00