Commit graph

332 commits

Author SHA1 Message Date
Zach Daniel
3afbae2c80 fix: ensure that returning is not an empty list 2024-09-15 20:56:51 -04:00
Zach Daniel
b35b976547 improvement: support upcoming action_select options 2024-09-10 20:09:32 -04:00
Zach Daniel
b144ee1937 improvement: ensure Repo is started after telemetry
improvement: update to latest igniter functions
2024-09-10 13:40:21 -04:00
Zach Daniel
2015aa658c improvement: support ash main upsert_condition logic 2024-09-03 18:02:14 -04:00
Zach Daniel
1c18bc6227 chore: fix ash_sql call 2024-08-26 10:45:33 -04:00
Zach Daniel
65adf04ee0 fix: ensure default bindings are present on data layer 2024-08-26 10:04:12 -04:00
Zach Daniel
d2b73fc3c3 fix: set a proper default for skip_unique_indexes 2024-08-15 10:43:22 -04:00
Jonatan Männchen
a539f6443e
fix: handle filter condition on create (#368) 2024-08-12 14:48:45 -04:00
Zach Daniel
2ddc53885b improvement: dynamically select and allow setting a repo 2024-07-31 17:48:55 -04:00
Zach Daniel
ac08104b25 fix: don't overwrite non-updated fields on update
improvement: update ash_sql for cleaner queries
2024-07-25 16:16:12 -04:00
Zach Daniel
cb397e9387 fix: use a subquery if any exists aggregates are in play
improvement: update ash_sql dependencies for bug fixes
2024-07-23 07:57:57 -04: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
Jesse Williams
8f79fcb59d
fix: allow non-unique has_many source_attributes (#355)
* fix: allow non-unique has_many source_attributes

* fix composite primary key case
2024-07-18 16:37:31 -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
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
Zach Daniel
7dcf19e895 fix: update ash_sql to fix select_merge behavior 2024-07-11 08:58:13 -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
Riccardo Binetti
3741bbc0b3
chore: fix 1.17 warning (#343) 2024-07-05 12:29:23 -04:00
Zach Daniel
e42be38183 chore: update to latest igniter goodies 2024-07-02 18:07:50 -04:00
Zach Daniel
844d9b0717 chore: fix 1.17 warning 2024-06-27 13:49:03 -04:00
Zach Daniel
6b1f6bae2a improvement: add mix ash_postgres.install (mix igniter.install ash_postgres) 2024-06-21 19:49:47 -04:00
Zach Daniel
cacf71cd55 fix: ensure that parens are always added to calculation generated SQL 2024-06-17 15:34:05 -04:00
Zach Daniel
2287b45a59 chore: don't wrap the sql in parens 2024-06-17 15:26:04 -04:00
Zach Daniel
54c88a882c fix: properly get calculation sql 2024-06-17 15:07:05 -04:00
Zach Daniel
97e538bf63 improvement: identities w/ calculations and where clauses in upserts 2024-06-17 11:39:26 -04:00
Zach Daniel
c753a37cfe fix: fix invalid select on sorting by some calculations 2024-06-13 09:41:13 -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
Zach Daniel
f0779580b3 fix: list_tenants -> all_tenants
fix: when checking for roll back-able migrations, only check `Path.basename`
2024-06-10 09:09:10 -04:00
Zach Daniel
4b5d980c69 chore: undo accidental git stash for previous commit 2024-06-06 14:34:01 -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
cf9f6ec60a test: add test reproducing related aggregate reference 2024-06-02 12:35:57 -04: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
f8916c14ca improvement: require clarification of index names > 63 characters
closes #304
2024-05-28 13:32:20 -04:00
Zach Daniel
284928e5c1 chore: always reselect primary key on updates 2024-05-28 00:08:34 -04:00
Zach Daniel
8ad92cc3c0 improvement: update ash and support new identity features 2024-05-24 01:14:55 -04:00
Zach Daniel
083807888c fix: ensure update's reselect all changing values
test: add calculation tests
2024-05-23 18:42:06 -04:00
Zach Daniel
264f4c0bac fix: handle complex maps/list on update
fix: support anonymous aggregates in sorts
fix: ensure parent_as bindings properly reference binding names

closes #296
closes #297
closes #298
2024-05-22 17:47:10 -04:00
Davide Briani
814e7de496
improvement: support on_delete: :nilify for specific columns (#289) 2024-05-16 19:18:17 -05:00
Zach Daniel
6d825792b3 fix: rework the update and destroy query builder to support multiple kinds of joining 2024-05-15 11:15:34 -04:00
Zach Daniel
d0c7984a89 test: add tests for action filters in bulk update/destroy
fix: ensure filter is included in stale record error message
2024-05-12 16:28:48 -04:00
Zach Daniel
590fb64db3 fix: ensure that codegen dry run works 2024-05-09 14:31:54 -04:00
Zach Daniel
f6b1aa3d29 fix: ensure we don't duplicate selects on destroy_query calls
we fixed this by combining the logic for query building for bulk destroys
and bulk updates
2024-05-06 11:27:13 -04:00
Zach Daniel
8eef44951c test additional bulk action tests 2024-05-03 21:26:08 -04:00
Zach Daniel
77b824e23d fix: update ash & fix subquery sort references 2024-05-03 00:02:04 -04:00
Zach Daniel
56f3a5eb2f fix: fix calculate when exprs aren't dynamics
test: add test for datetimes
2024-05-02 21:29:21 -04:00
Zach Daniel
8ca1383b7b improvement: support latest ash & calculate/3 capability 2024-04-29 17:05:23 -04:00