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 |
|
Zach Daniel
|
203b4ca287
|
fix: ensure limit/offset triggers joining for update/destroy query
|
2024-04-27 09:49:47 -04:00 |
|
Zach Daniel
|
c8d9dfa826
|
fix: only reference sub if a subquery is created
|
2024-04-27 09:44:35 -04:00 |
|
Riccardo Binetti
|
4bad5990c8
|
fix: fix argument order in AshSql.Bindings.default_bindings/4 (#251)
|
2024-04-26 19:32:42 -04:00 |
|
Zach Daniel
|
1524501236
|
fix: properly honor limit in bulk operations
|
2024-04-24 10:17:05 -04:00 |
|
Zach Daniel
|
1ad3cd4ba0
|
fix: undo change that expresses that atomics cant be done without ash-functions
|
2024-04-23 10:30:13 -04:00 |
|
Zach Daniel
|
d26a189946
|
improvement: warn on missing ash-functions at compile time
closes #242
|
2024-04-22 12:08:30 -04:00 |
|
Zach Daniel
|
e976ae5794
|
fix: update ash_sql, fix credo
|
2024-04-11 11:39:49 -04:00 |
|
Zach Daniel
|
14edb8ec36
|
chore: small formatting for task output fix
|
2024-04-09 20:51:24 -04:00 |
|
Zach Daniel
|
6d4c642522
|
docs: update docs for mix tasks
|
2024-04-09 20:49:39 -04:00 |
|
Zach Daniel
|
38eec0ba86
|
docs: reformat docs and revisit certain guides
improvement: support `mix ash.rollback` with interactive rollback
|
2024-04-09 20:21:04 -04:00 |
|
Zach Daniel
|
cfaf1f8201
|
test: fix test application in CI
fix: use proper sql implementation in `default_bindings`
|
2024-04-06 10:12:31 -04: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
|
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
|
ec75b41dbe
|
improvement: properly show unsupported error expression
|
2024-03-22 14:20:38 -04:00 |
|
Zach Daniel
|
2c1381d5e6
|
fix: encode maps on update using fragments
|
2024-03-19 00:06:15 -04:00 |
|
Zach Daniel
|
70af9ee5bd
|
fix: always exclude :order_by on bulk updateable query
|
2024-03-05 09:19:55 -05:00 |
|
Zach Daniel
|
fce0fefe72
|
fix: don't apply join relationship sort for lateral join
fixes #218
|
2024-03-04 00:10:57 -05:00 |
|
Zach Daniel
|
2b3b6b0bc9
|
fix: properly leverage subqueries throughout relationship joining
|
2024-02-28 21:22:54 -05:00 |
|
Zach Daniel
|
6455bef6ed
|
fix: ensure select is applied (or not) properly in bulk update/destroys
|
2024-02-25 21:35:33 -05:00 |
|
Zach Daniel
|
b6b2dd1dc6
|
fix: handle more subquery filter cases for aggregates
|
2024-02-24 20:20:52 -05:00 |
|
Zach Daniel
|
98f24b1923
|
Revert "fix: remove buggy global filter extraction"
This reverts commit 7c3b60b942 .
|
2024-02-24 17:35:43 -05:00 |
|
Zach Daniel
|
7c3b60b942
|
fix: remove buggy global filter extraction
|
2024-02-24 17:20:03 -05:00 |
|