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
Zach Daniel
7849541b29
chore: fix typespec
2023-10-17 13:58:17 -04:00
Zach Daniel
5d85c5be14
improvement: properly honor ecto type init
callback
2023-10-17 13:39:21 -04:00
Zach Daniel
d9bacc1554
fix: handle new type constraints properly
2023-10-17 12:50:14 -04:00
Zach Daniel
f892192969
chore: release version v2.15.18
2023-10-17 12:24:43 -04:00
Zach Daniel
12840ae235
fix: honor max_concurrency
option
2023-10-17 12:24:28 -04:00
Zach Daniel
7301e09654
chore: fetch type in include_source/3
2023-10-17 11:11:18 -04:00
Zach Daniel
eca3b84105
chore: generalize embed type __source__
logic
2023-10-17 11:03:50 -04:00
Zach Daniel
c12f24d55d
chore: changeset optimizations
...
ci: test ash-sqlite subproject
2023-10-17 10:49:37 -04:00
Zach Daniel
4900d69a92
chore: optimize upsert update defaults
2023-10-17 10:39:59 -04:00
Zach Daniel
6e2fa036d7
chore: update docs
2023-10-17 10:37:46 -04:00
Zach Daniel
ae147011ea
fix: handle generic actions in list_arguments_and_attributes
2023-10-17 10:36:57 -04:00
Zach Daniel
fcc7e3b08a
chore: revert recent change to datetime storage type default
2023-10-17 10:26:05 -04:00
Zach Daniel
20cc1cc24e
improvement: various optimizations and compile time caching
...
fix: fix type casting for embedded resources
2023-10-17 10:18:26 -04:00
Pierre Le Gall
e14e1b2e29
improvement: set default many to many options ( #737 )
...
Many to many relationship `source_attribute_on_join_resource`
and `destination_attribute_on_join_resource` are now guessed
by there module name if not explicitly set in the relationship.
2023-10-17 10:03:21 -04:00
Zach Daniel
7f7469eb9f
improvement: various performance improvements
2023-10-17 01:08:26 -04:00
Zach Daniel
52337b7bff
improvement: various optimizations for bulk create actions
2023-10-16 23:50:05 -04:00
Zach Daniel
3dd61a6ff8
fix: ensure after action hooks are run on bulk creates
2023-10-16 17:00:04 -04:00
Zach Daniel
b2c7048359
fix: return records from batches if items have after action hooks
2023-10-16 16:30:15 -04:00
Zach Daniel
f53626e65d
improvement: support max_concurrency
option on bulk creates
...
improvement: better error message on missing identities
improvement: better error message on invalid data passed to `YourApi.load`
2023-10-16 14:53:27 -04:00
Zach Daniel
ecdc4c1c64
fix: don't transform errors to changesets when rolling back in with_hooks
2023-10-13 22:04:44 -04:00
Zach Daniel
931ff30641
fix: undo previous changes where transactional actions might not roll back
...
instead, I've added a `rollback_on_error?` option to allow more fine grained
control over what happens when you call an individual action and it encounters
an error and would roll back.
2023-10-13 18:12:48 -04:00
Zach Daniel
5a462a3ffc
fix: undo regression where errors weren't wrapped in a changeset
2023-10-13 16:51:10 -04:00
Zach Daniel
7ff3a96db2
improvement: better handling of nested errors in transactions
...
If you call a nested action currently, and anything goes wrong, the whole
transaction is aborted. However, we want to be able to *recover* from
internal errors, and that means allowing things to fail without failing
the entire transaction. If something that *starts* a transaction
encounters an error, then it will rollback the transaction.
2023-10-13 14:33:25 -04:00
Zach Daniel
4fe4411286
fix: provide full constraints when determining Ash.Type.NewType
storage types
2023-10-12 10:57:10 -04:00
Zach Daniel
b93cbb9577
fix: go back to original default timestamp behavior
...
fixes #733
2023-10-12 07:25:46 -04:00
Zach Daniel
20ea16d33e
chore: release version v2.15.17
2023-10-11 19:45:10 -04:00
Zach Daniel
6e0be43c51
fix: properly authorize access to query aggregates in all cases
2023-10-11 19:44:50 -04:00
Zach Daniel
ea51d4d096
chore: release version v2.15.16
2023-10-11 17:58:55 -04:00