Commit graph

1126 commits

Author SHA1 Message Date
Barnabas Jovanovics
0f614aea15 add another test case with 2 relationships 2024-02-14 14:17:05 +01:00
Barnabas Jovanovics
a3d0fa3ffd fix typo 2024-02-14 10:41:58 +01:00
Barnabas Jovanovics
44f11adbd9 add test to show problem with field policies in filters 2024-02-14 10:36:34 +01:00
Zach Daniel
6d0a29f45c chore: credo 2024-02-12 10:24:59 -05:00
Zach Daniel
db3efe15ce chore: update ash 2024-02-12 10:22:32 -05:00
Zach Daniel
930d16a5e9 fix: handle original data not available in destroy_query 2024-02-12 10:08:48 -05:00
Zach Daniel
03b630396c test: update tests to demonstrate streaming update 2024-02-10 18:31:34 -05:00
Barnabas Jovanovics
a9d38e91e1
Improvement: mark (i)like functions as predicates (#205) 2024-02-07 14:45:34 -05:00
Zach Daniel
1ea360d15c improvement: detect bigserial when altering attributes
closes #204
2024-02-07 14:39:38 -05:00
Zach Daniel
c72b57ece5 fix: use primary key of source as join key 2024-02-06 12:39:16 -05:00
Barnabas Jovanovics
3f7bdb8fc1
test: add test for parent in relationship filter (#203) 2024-02-06 10:04:35 -05:00
Kilian Cirera Sant
b2b05618b5
improvement: Include modules in installed_extensions return type (#202)
As per the documentation (and indeed the actual behavior):

> Extensions can be a string, representing a standard postgres
extension, or a module that implements `AshPostgres.CustomExtension`.
2024-02-05 16:52:09 -05:00
Zach Daniel
809cd5582f improvement: don't drop primary key in case of removal 2024-02-04 10:12:39 -05:00
Eduardo B. A
a8b7f3b3e7
feat: Make MigrationGenerator accept atoms (#201)
Co-authored-by: Eduardo B. Alexandre <sezdocs@github.com>
2024-02-02 12:25:02 -05:00
Zach Daniel
43b576e09d fix: use pkey if error fields is empty 2024-02-01 15:48:23 -05:00
Zach Daniel
4494bf971f chore: changeset.resource -> resource 2024-02-01 15:21:50 -05:00
Zach Daniel
de7d6feaa3 fix: forgot to bind keys to a variable 🤦🏻 2024-02-01 15:12:17 -05:00
Zach Daniel
a940022eba fix: ensure identity keys is never missing 2024-02-01 14:59:49 -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
Zach Daniel
d71cb81792 improvement: handle if select is present on query 2024-01-31 16:30:23 -05:00
Zach Daniel
e956e7ead2 chore: update ash 2024-01-30 21:07:17 -05:00
Zach Daniel
6ceac063f8 chore: credo 2024-01-30 20:55:13 -05:00
Alan Heywood
745a3b8264
test: add failing test to demo bug with changeset loading related data (#200) 2024-01-30 20:04:42 -05:00
Zach Daniel
5006a195bd test: add test reproducing ash core fix for expression calculations 2024-01-30 16:39:17 -05:00
Zach Daniel
82dd14b953 chore: credo 2024-01-30 15:32:50 -05:00
Zach Daniel
8c43deea9b fix: properly build subqueries when required for relationship queries 2024-01-30 15:21:59 -05:00
Barnabas Jovanovics
fbd41407c3
test: add test that shows subquery error (#199) 2024-01-30 13:17:40 -05:00
Zach Daniel
ffafa6c9f5 improvement: support Ash.Changeset.OriginalDataNotAvailable 2024-01-30 12:49:52 -05:00
Alan Heywood
aad5f9a182
test: add failing test to demonstrate bug with manual updates (#198) 2024-01-30 09:26:39 -05:00
Zach Daniel
4930a69b95 improvement: support count_nils expression 2024-01-29 17:17:32 -05:00
Zach Daniel
b1d10c32cc chore: fix credo and update ash 2024-01-29 16:57:04 -05:00
Zach Daniel
a05783d422 fix: only migrate/rollback one repo at a time
fixes #197
2024-01-29 16:47:55 -05:00
Zach Daniel
647a268183 chore: skip sobelow warning 2024-01-29 15:52:08 -05:00
Zach Daniel
4d86fa73ad docs: update formatter and cheat sheet 2024-01-29 10:52:34 -05:00
Zach Daniel
7b9929f07c chore: format 2024-01-29 10:36:20 -05:00
Zach Daniel
5952889ac7 chore: remove IO.inspect 2024-01-29 10:25:27 -05:00
Zach Daniel
2b813c8975 chore: consider ignore_fields when comparing custom indexes 2024-01-27 10:56:11 -05:00
Zach Daniel
98b1d2ad6c improvement: error_fields for custom_index
fix: proper return types for updates from queries
fix: allow atomics to return `nil`
2024-01-27 10:02:57 -05:00
Ryan
64e117603a
fix: Correct the matching used in building a distinct expression (#196) 2024-01-26 15:04:54 -05:00
Zach Daniel
29da61d661 chore: format 2024-01-24 12:49:38 -05:00
Zach Daniel
9926d5cb7c fix: only rollback to savepoint on specific errors 2024-01-24 11:37:24 -05:00
Dmitry Maganov
8f3100a381
fix: keep fields of custom_index in format that they were provided (#195) 2024-01-22 11:32:34 -05:00
Zach Daniel
445de282c0 fix: remap selected fields, don't subquery in aggregate joins 2024-01-19 20:13:42 -05:00
Zach Daniel
f20a07f54b improvement: support latest ash changes 2024-01-19 00:12:50 -05:00
Zach Daniel
97847da734 fix: include explicit schema in snapshot folder name
closes #193
2024-01-16 23:44:49 -05:00
Jechol Lee
62a640ecb7
fix: Support all_tenants? in custom index (#194) 2024-01-15 05:40:05 -05:00
Zach Daniel
55d319c66c chore: simplify doc selection 2024-01-12 14:48:41 -05:00
Zach Daniel
717a630a84 chore: update ex_doc 2024-01-12 14:28:01 -05:00
Zach Daniel
b4d9fd1925 docs: clean up hexdocs 2024-01-12 14:27:14 -05:00
Zach Daniel
21702052aa chore: release version v1.4.0 2024-01-12 10:11:42 -05:00