Zach Daniel
56f3a5eb2f
fix: fix calculate when exprs aren't dynamics
...
test: add test for datetimes
2024-05-02 21:29:21 -04:00
Riccardo Binetti
65f93561d8
chore: add failing test for bulk actions and non-null violations ( #260 )
...
- bulk_create returns a Postgrex error instead of Ash.Error.Changes.Required
like the non-bulk create does
- bulk_update with :stream strategy does the same
- bulk_update with :atomic strategy doesn't trim the empty string and writes it
to the database
2024-05-02 20:31:35 -04:00
Zach Daniel
3e95715be8
chore: update ash_sql for bug fix
2024-05-02 01:40:32 -04:00
Zach Daniel
a6c1dedffb
test: add tests for fix in ash_sql around actor refs in relationships
2024-05-01 08:27:49 -04:00
Zach Daniel
a2083ff736
fix: update ash_sql for inner join fixes
...
closes #252
chore: small test fixes
2024-04-26 23:51:29 -04:00
Zach Daniel
1524501236
fix: properly honor limit
in bulk operations
2024-04-24 10:17:05 -04:00
Zach Daniel
3c4a3d30a5
fix: handle missing aggregate relationships and fields better in transformers
...
fix: update ash_sql for bug fixes
2024-04-22 20:42:11 -04:00
32448ea5de
chore: Add failing test for tenanted aggregate bug. ( #244 )
2024-04-22 19:06:06 -04:00
Zach Daniel
ec91e2ee9b
fix: reproduce issue around atomic updates & validations
2024-04-22 18:58:57 -04:00
Zach Daniel
3007ebf1bf
chore: update ash_sql dependency
2024-04-22 11:31:13 -04:00
Zach Daniel
7f3661ce42
chore: support adapter
option to use AshPostgres.Repo
2024-04-21 11:11:00 -04:00
Zach Daniel
8f1ae86db9
test: add some explicit destroy/soft destroy tests
2024-04-21 09:35:47 -04:00
Zach Daniel
4957ed28f3
fix: ensure that exists
with a filter paired with from_many?
functions properly
2024-04-20 14:39:53 +01:00
Zach Daniel
eb08fed28b
improvement: fixes for 3.0 changes and AshSql changes
2024-04-01 13:58:44 -04:00
Zach Daniel
efcc1a651b
improvement: move many internals out to AshSql
package
2024-03-31 22:38:12 -04:00
Zach Daniel
3647fc42ee
improvement: add default implementation for pg_version, and rename to min_pg_version
2024-03-27 19:20:49 -04:00
Zach Daniel
8a505607ab
ci: set PG_VERSION
better for CI
2024-03-27 17:46:51 -04:00
Zach Daniel
7bd63ffcaf
test: update tests with migration changes
2024-03-27 17:28:28 -04:00
Zach Daniel
3ad3f5f5d6
chore: update ash, resources and an error message
2024-03-27 17:03:16 -04:00
Zach Daniel
37cc01957d
improvement!: 3.0 ( #227 )
...
* WIP
* chore: fix mix.lock merge issues
* improvement: upgrade to 3.0
* chore: remove `repo.to_tenant`
* chore: continue removal of unnecessary helper
* chore: use `Ash.ToTenant`
2024-03-27 16:52:28 -04:00
Zach Daniel
5a513a82c2
fix: handle fully fleshed out aggregate fields
2024-03-22 02:13:07 -04:00
Zach Daniel
a0e2693998
fix: don't fail on aggregate query generation
...
fixes #225
2024-03-20 18:37:38 -04:00
Jinkyou Son
b60f680ab3
Fix: undo default of nulls_distinct option to true ( #223 )
2024-03-20 12:01:53 -04:00
Jinkyou Son
e27ce5e074
improvement: Add nulls_distinct option to CustomIndex ( #221 )
2024-03-12 20:22:34 -04:00
Zach Daniel
40481a17a0
fix: prevent ecto/pg from getting confused about the type of maps
2024-03-06 08:23:56 -05:00
Zach Daniel
43deb00e36
fix: properly handle multiple sorts in aggregate
2024-02-29 13:42:42 -05:00
Zach Daniel
f716e3bb69
fix: simplify(and fix) exists subquery generation
2024-02-28 22:55:53 -05:00
Zach Daniel
23dd650100
test: test improvements, regression test
2024-02-28 21:24:31 -05:00
Zach Daniel
b6b2dd1dc6
fix: handle more subquery filter cases for aggregates
2024-02-24 20:20:52 -05:00
Zach Daniel
f6d029d85b
improvement: add test for aggregates
2024-02-24 18:08:00 -05:00
Zach Daniel
37cb3825f1
fix: properly handle complex types in lists
2024-02-23 20:53:19 -05:00
Zach Daniel
c185ba80e8
fix: ensure select is properly set on delete_all
2024-02-21 16:37:28 -05:00
Zach Daniel
d0041ce88d
improvement: optimize aggregate query filtering
2024-02-21 14:03:28 -05:00
Zach Daniel
2b91ebe488
fix: ensure proper return value for single aggregate runs
2024-02-21 09:56:33 -05:00
Zach Daniel
b5b1077032
chore: fix recursion error in to_many_path?
2024-02-20 22:13:23 -05:00
Zach Daniel
38d1beb0d8
fix: properly handle to_many joins in aggregates
...
fix: honor aggregate query filters
2024-02-20 18:38:35 -05:00
Zach Daniel
557bc6019c
fix: handle non-inner joins in delete_all
...
fix: handle non-inner joins in update
2024-02-19 13:29:41 -05:00
Zach Daniel
7cbe482fc9
fix: don't update_all or delete_all with order_by
2024-02-19 12:40:26 -05:00
Zach Daniel
0979756b0b
fix: handle updating from queries w/ non-inner initial joins
2024-02-19 11:56:48 -05:00
Minsub Kim
96c367689d
test: filter by has_one from_many? ( #209 )
2024-02-19 09:04:14 -05:00
Zach Daniel
3fd5a7a907
test: add some tests for atomics
2024-02-15 10:54:20 -05:00
Zach Daniel
2d18c9cbeb
fix: properly alter renaming attributes in migration generator
...
fixes #207
2024-02-15 09:23:48 -05:00
Zach Daniel
256b4d0b9a
test: add test for filter policy on bulk actions
2024-02-14 17:54:28 -05:00
Zach Daniel
7a4fe87561
chore: update ash, add tests
2024-02-14 13:56:58 -05:00
Zach Daniel
3146d5f97d
chore: update ash, add tests for field policies
2024-02-14 11:04:06 -05:00
Barnabas Jovanovics
be15759de0
test: add test to show problem with field policies in filters ( #206 )
2024-02-14 10:25:25 -05:00
Zach Daniel
6d0a29f45c
chore: credo
2024-02-12 10:24:59 -05:00
Zach Daniel
03b630396c
test: update tests to demonstrate streaming update
2024-02-10 18:31:34 -05:00
Barnabas Jovanovics
3f7bdb8fc1
test: add test for parent in relationship filter ( #203 )
2024-02-06 10:04:35 -05:00
Zach Daniel
b018262637
test: add new test verifying batch destroy behavior
...
chore: add sobelow warning skip
2024-02-01 13:09:06 -05:00