Commit graph

393 commits

Author SHA1 Message Date
Robert Timis
793d27ddd1
test: replicate type mismatch bug (#364) 2024-07-27 14:27:02 -04:00
Barnabas Jovanovics
306dc84ac2
test validation aggregates individually as well (#360)
* test aggregates individually as well

* test with atomic and non atomic actions

* test atomic and non atomic actions

* use message in context
2024-07-23 06:55:44 -04:00
Barnabas Jovanovics
9e4efa7b9b remove Logger config and enable aggregates in validation again 2024-07-23 10:00:52 +02:00
Barnabas Jovanovics
0a6f890907 add update case to validation test 2024-07-23 09:39:18 +02:00
Zach Daniel
1b687b6c2a fix: properly convert tenant to string when building lateral join 2024-07-22 15:38:42 -04:00
Zach Daniel
b00a7e6482 fix: update ash & ash_sql for fixes, test atomic alidations in destroys 2024-07-22 11:49:59 -04:00
Barnabas Jovanovics
a672c89697
test: test more aggregates (#359) 2024-07-22 11:25:00 -04:00
Barnabas Jovanovics
ece56c2bc9
test: add test for list aggregate in atomic validation (#358) 2024-07-22 10:29:00 -04:00
Zach Daniel
c63c988339 improvement: pluralize table name in extender
chore: get build passing & clean up code

closes #354
2024-07-18 12:53:38 -04:00
Zach Daniel
10983856b1 chore: update tests/migrations 2024-07-17 11:40:17 -04:00
Robert Timis
64740bac18
test: replicate error when using calculation over nested relationship (#351) 2024-07-17 08:09:45 -04:00
Zach Daniel
d5f5bae117 test: add tests for include_nil? on first aggregates as well 2024-07-16 22:58:14 -04:00
Zach Daniel
7cf06f3956 fix: update ash_sql for include_nil? fix and test it 2024-07-16 22:40:15 -04:00
Zach Daniel
2393c2c633 chore: update tests to account for non-keepable-atom-keys 2024-07-16 18:22:23 -04:00
Robert Timis
1e637f9205
test: replicate error when building json object and using inline aggregate (#350) 2024-07-16 15:39:04 -04:00
Zach Daniel
a121ba177f chore: test changes & update dependency 2024-07-16 08:58:04 -04:00
Zach Daniel
ab97b2947b improvement: add binding() expression 2024-07-15 10:25:39 -04:00
Zach Daniel
5a9812f016 fix: ensure synthesized query aggregates have context set 2024-07-15 09:20:39 -04:00
Zach Daniel
cef4c8fce0 improvement: support new type determination code 2024-07-14 09:25:49 -04:00
Robert Timis
27f63d8d8e
error reproduction test (#349) 2024-07-13 16:06:52 -04:00
Zach Daniel
ef58c78313 test: add more tests for atomic update interactions
chore: get build passing
2024-07-12 23:23:42 -04:00
Alessio Montagnani
72b029be21
improvement: add support for :uuid_v7 type (#333) 2024-07-09 19:57:38 -04:00
Zach Daniel
24576c168c fix: ensure that we return {:ok, zipper} from find_and_update_or_create_module
closes #345
2024-07-09 07:54:50 -04:00
Zach Daniel
d293d0f302 improvement: use Ash.Igniter.codegen 2024-07-08 15:56:58 -04:00
Barnabas Jovanovics
3385bd21f1
improvement: add storage type option (#342)
---------

Co-authored-by: Zach Daniel <zach@zachdaniel.dev>
2024-07-08 09:54:50 -04:00
Zach Daniel
f0d07a3a4d fix: ensure that from_many? relationships in lateral join are limited 2024-07-06 06:38:31 -04:00
Zach Daniel
ffd3ff5a81 test: rollback change for uuid -> string type in tests 2024-07-02 13:01:54 -04:00
Zach Daniel
185e9bea83 test: adjustments for tests 2024-07-02 12:30:25 -04:00
Zach Daniel
e42665b14c chore: update to latest igniter 2024-07-01 21:34:47 -04:00
Zach Daniel
e520ddfc35 chore: get build passing
fix: properly delete args passed from migrate to ecto
2024-06-24 10:20:16 -04:00
Zach Daniel
6b1f6bae2a improvement: add mix ash_postgres.install (mix igniter.install ash_postgres) 2024-06-21 19:49:47 -04:00
Emad Shaaban
8bf1e2ede9
fix: ensure index keys are atoms in generated migrations (#332)
---------

Co-authored-by: Zach Daniel <zach@zachdaniel.dev>
2024-06-19 14:22:21 -04:00
Zach Daniel
526020e26c improvement: better type handling using new type inference 2024-06-18 16:37:32 -04:00
Barnabas Jovanovics
2a1bc993eb
test: update tests to show many_to_many filter problem (#309) 2024-06-18 09:03:24 -04:00
Zach Daniel
860d085386 fix: update ash_sql to fix query generation issues 2024-06-18 07:50:54 -04:00
Barnabas Jovanovics
14938f9f47
test: add test to show error with building a reference (#330) 2024-06-18 06:23:27 -04:00
Zach Daniel
97e538bf63 improvement: identities w/ calculations and where clauses in upserts 2024-06-17 11:39:26 -04:00
Zach Daniel
9cc942f233 chore: credo 2024-06-13 09:53:40 -04:00
Zach Daniel
c753a37cfe fix: fix invalid select on sorting by some calculations 2024-06-13 09:41:13 -04:00
Jefferson Queiroz Venerando
27837d1e30
test: Add a failing test for sorting on relationship (#324)
* add a failing test for sorting on relationship

* fix relationship pattern match

* fix title sort
2024-06-13 08:28:27 -04:00
Zach Daniel
b9e2fe45f4 test: add @moduletag :migration to squash snapshots test 2024-06-11 12:08:10 -04:00
Zach Daniel
8e32e0ab9a fix: ensure that context multitenancy is properly applied to lateral many-to-many joins 2024-06-10 12:49:04 -04:00
Robert Timis
6c81699b0d
feat: autogenerate index in references (#321)
* feat: autogenerate index in references

* check if old had index
2024-06-10 08:43:24 -04:00
Zach Daniel
4b5d980c69 chore: undo accidental git stash for previous commit 2024-06-06 14:34:01 -04:00
Zach Daniel
46452ba533 chore: update changelog 2024-06-06 13:10:59 -04:00
Jesse Williams
9940edf633
test: demonstrating issue filtering relationship by parent (#318) 2024-06-05 13:12:32 -04:00
Zach Daniel
df250964e0 fix: ensure that all current attribute values are selected on bulk update shifted root query
closes #314
2024-06-02 12:35:57 -04:00
Zach Daniel
bc46d9d9c4 test: add test reproducing related aggregate reference 2024-05-30 00:27:20 -05:00
Zach Daniel
ff47ff0e06 fix: properly support aggregate references in atomic updates
(yes, you read that right)
2024-05-29 12:30:16 -04:00
Zach Daniel
9f1936aef4 fix: ensure that identities are dropped when where/nils_distinct? are changed
fix: ensure that `where` is wrapped in parenthesis
2024-05-28 13:52:53 -04:00