Commit graph

369 commits

Author SHA1 Message Date
Zach Daniel
6b1f6bae2a improvement: add mix ash_postgres.install (mix igniter.install ash_postgres) 2024-06-21 19:49:47 -04:00
Zach Daniel
94f7c2f582 chore: update ash_sql 2024-06-18 16:38:19 -04:00
Zach Daniel
526020e26c improvement: better type handling using new type inference 2024-06-18 16:37:32 -04:00
Zach Daniel
860d085386 fix: update ash_sql to fix query generation issues 2024-06-18 07:50:54 -04:00
Zach Daniel
97e538bf63 improvement: identities w/ calculations and where clauses in upserts 2024-06-17 11:39:26 -04:00
dependabot[bot]
0db1b29c23
chore(deps): bump ash from 3.0.11 to 3.0.12 (#329)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.11 to 3.0.12.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.11...v3.0.12)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 09:04:09 -04:00
dependabot[bot]
c3190fe49c
chore(deps): bump ash_sql from 0.2.4 to 0.2.5 (#328) 2024-06-14 10:50:14 -04:00
dependabot[bot]
da4aae676e
chore(deps): bump ecto_sql from 3.11.2 to 3.11.3 (#327) 2024-06-14 10:50:02 -04:00
Zach Daniel
555ea28e21 chore: bump ash_sql version 2024-06-13 09:54:34 -04:00
Zach Daniel
c753a37cfe fix: fix invalid select on sorting by some calculations 2024-06-13 09:41:13 -04:00
dependabot[bot]
9531ffa0c4
chore(deps-dev): bump credo from 1.7.6 to 1.7.7 (#325)
Bumps [credo](https://github.com/rrrene/credo) from 1.7.6 to 1.7.7.
- [Release notes](https://github.com/rrrene/credo/releases)
- [Changelog](https://github.com/rrrene/credo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rrrene/credo/compare/v1.7.6...v1.7.7)

---
updated-dependencies:
- dependency-name: credo
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 08:22:04 -04:00
dependabot[bot]
2bee2638a0
chore(deps): bump ash from 3.0.10 to 3.0.11 (#323)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.10 to 3.0.11.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.10...v3.0.11)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 09:30:23 -04:00
dependabot[bot]
57b433023e
chore(deps): bump ash from 3.0.9 to 3.0.10 (#319)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.9 to 3.0.10.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.9...v3.0.10)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-07 14:07:42 -04:00
Zach Daniel
72ec53599f fix: update ash_sql and fix issues retaining lateral join context 2024-06-06 13:10:05 -04:00
dependabot[bot]
a68229af07
chore(deps-dev): bump benchee from 1.3.0 to 1.3.1 (#316)
Bumps [benchee](https://github.com/bencheeorg/benchee) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/bencheeorg/benchee/releases)
- [Changelog](https://github.com/bencheeorg/benchee/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bencheeorg/benchee/compare/1.3.0...1.3.1)

---
updated-dependencies:
- dependency-name: benchee
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-05 08:20:58 -04:00
dependabot[bot]
74b0819e04
chore(deps): bump ash_sql from 0.2.1 to 0.2.2 (#317)
Bumps [ash_sql](https://github.com/ash-project/ash_sql) from 0.2.1 to 0.2.2.
- [Changelog](https://github.com/ash-project/ash_sql/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_sql/compare/v0.2.1...v0.2.2)

---
updated-dependencies:
- dependency-name: ash_sql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-05 08:19:19 -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
ff47ff0e06 fix: properly support aggregate references in atomic updates
(yes, you read that right)
2024-05-29 12:30:16 -04:00
dependabot[bot]
d3b2e96b7b
chore(deps): bump ash from 3.0.7 to 3.0.8 (#310) 2024-05-29 07:37:17 -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
dependabot[bot]
cd9201af05
chore(deps): bump ash from 3.0.3 to 3.0.4 (#300)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.3 to 3.0.4.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/3.0.3...v3.0.4)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-23 09:24:27 -04:00
Zach Daniel
a372b6fd55 chore: update ash 2024-05-22 17:49:20 -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
dependabot[bot]
06f0f9befe
chore(deps): bump ecto_sql from 3.11.1 to 3.11.2 (#293)
Bumps [ecto_sql](https://github.com/elixir-ecto/ecto_sql) from 3.11.1 to 3.11.2.
- [Changelog](https://github.com/elixir-ecto/ecto_sql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elixir-ecto/ecto_sql/compare/v3.11.1...v3.11.2)

---
updated-dependencies:
- dependency-name: ecto_sql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 09:41:43 -04:00
Zach Daniel
0d2f8f9916 chore: update ash 2024-05-15 16:52:03 -05:00
dependabot[bot]
3371b6a313
chore(deps): bump ash from 3.0.0 to 3.0.1 (#281) 2024-05-14 14:13:21 -04:00
Zach Daniel
11852aec93 chore: update deps and add test 2024-05-14 12:36:16 -04:00
dependabot[bot]
8a69af9a4b
chore(deps-dev): bump git_ops from 2.6.0 to 2.6.1 (#278) 2024-05-13 09:17:56 -04:00
dependabot[bot]
66b2cfd0c7
chore(deps): bump ash_sql from 0.1.1-rc.19 to 0.1.2 (#276)
Bumps [ash_sql](https://github.com/ash-project/ash_sql) from 0.1.1-rc.19 to 0.1.2.
- [Changelog](https://github.com/ash-project/ash_sql/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_sql/compare/v0.1.1-rc.19...v0.1.2)

---
updated-dependencies:
- dependency-name: ash_sql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-11 02:06:05 -04:00
dependabot[bot]
58f09e41c5
chore(deps-dev): bump credo from 1.7.5 to 1.7.6 (#275) 2024-05-11 02:02:51 -04:00
Zach Daniel
df53ef8613 chore: release version v2.0.0 2024-05-10 17:20:42 -04:00
dependabot[bot]
1cd808244b
chore(deps): bump ash from 3.0.0-rc.45 to 3.0.0-rc.46 (#272) 2024-05-07 12:02:06 -04:00
dependabot[bot]
ca141cd095
chore(deps): bump ash_sql from 0.1.1-rc.18 to 0.1.1-rc.19 (#268)
Bumps [ash_sql](https://github.com/ash-project/ash_sql) from 0.1.1-rc.18 to 0.1.1-rc.19.
- [Changelog](https://github.com/ash-project/ash_sql/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_sql/compare/v0.1.1-rc.18...v0.1.1-rc.19)

---
updated-dependencies:
- dependency-name: ash_sql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 09:01:58 -04:00
Zach Daniel
6cd11def01 chore: update ash_sql 2024-05-05 06:00:22 -04:00
Zach Daniel
8eef44951c test additional bulk action tests 2024-05-03 21:26:08 -04:00
Zach Daniel
1bf01f14a2 chore: update ash 2024-05-03 00:03:22 -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
dependabot[bot]
098a8f845e
chore(deps): bump ash from 3.0.0-rc.38 to 3.0.0-rc.39 (#257) 2024-05-01 07:15:43 -04:00
dependabot[bot]
38b6c92526
chore(deps): bump ash_sql from 0.1.1-rc.13 to 0.1.1-rc.15 (#255) 2024-04-30 09:43:16 -04:00
Zach Daniel
8ca1383b7b improvement: support latest ash & calculate/3 capability 2024-04-29 17:05:23 -04:00
dependabot[bot]
e1a9af2d87
chore(deps): bump ash from 3.0.0-rc.32 to 3.0.0-rc.36 (#254) 2024-04-29 07:01:37 -04:00
Zach Daniel
5de491dc1b chore: update ash 2024-04-26 23:55:01 -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
49548bb964 chore: update ash_sql 2024-04-26 03:23:31 -04:00
dependabot[bot]
d44c057345
chore(deps): bump ash from 3.0.0-rc.28 to 3.0.0-rc.29 (#245) 2024-04-24 06:28:50 -04:00
Zach Daniel
090193f4ca chore: loosen dependency requirements 2024-04-23 10:57:45 -04:00
Zach Daniel
1b844d7412 chore: update mix.lock 2024-04-22 20:43:06 -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
3007ebf1bf chore: update ash_sql dependency 2024-04-22 11:31:13 -04:00
Zach Daniel
90ae9aeef9 chore: add mix_audit 2024-04-21 09:56:19 -04:00
Zach Daniel
a66a0f694c chore: update deps 2024-04-20 15:20:59 +01: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
dependabot[bot]
4d18f56baf
chore(deps): bump ash from 3.0.0-rc.21 to 3.0.0-rc.25 (#241) 2024-04-19 19:31:53 +01:00
dependabot[bot]
e86f250ae5
chore(deps): bump ash_sql from 0.1.1-rc.5 to 0.1.1-rc.6 (#234)
Bumps [ash_sql](https://github.com/ash-project/ash_sql) from 0.1.1-rc.5 to 0.1.1-rc.6.
- [Changelog](https://github.com/ash-project/ash_sql/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash_sql/compare/v0.1.1-rc.5...v0.1.1-rc.6)

---
updated-dependencies:
- dependency-name: ash_sql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 14:49:17 +01:00
Zach Daniel
e976ae5794 fix: update ash_sql, fix credo 2024-04-11 11:39:49 -04:00
dependabot[bot]
90923d20c4
chore(deps-dev): bump excoveralls from 0.18.0 to 0.18.1 (#231)
Bumps [excoveralls](https://github.com/parroty/excoveralls) from 0.18.0 to 0.18.1.
- [Release notes](https://github.com/parroty/excoveralls/releases)
- [Changelog](https://github.com/parroty/excoveralls/blob/master/CHANGELOG.md)
- [Commits](https://github.com/parroty/excoveralls/compare/v0.18.0...v0.18.1)

---
updated-dependencies:
- dependency-name: excoveralls
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-10 17:34:42 -04:00
dependabot[bot]
b8ddcf1fc1
chore(deps): bump ash from 3.0.0-rc.14 to 3.0.0-rc.18 (#230)
Bumps [ash](https://github.com/ash-project/ash) from 3.0.0-rc.14 to 3.0.0-rc.18.
- [Changelog](https://github.com/ash-project/ash/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/ash/compare/v3.0.0-rc.14...v3.0.0-rc.18)

---
updated-dependencies:
- dependency-name: ash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-10 17:34:33 -04:00
dependabot[bot]
20e32fe70a
chore(deps-dev): bump simple_sat from 0.1.2 to 0.1.3 (#229)
Bumps [simple_sat](https://github.com/ash-project/simple_sat) from 0.1.2 to 0.1.3.
- [Changelog](https://github.com/ash-project/simple_sat/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/simple_sat/compare/v0.1.2...v0.1.3)

---
updated-dependencies:
- dependency-name: simple_sat
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-10 17:34:20 -04:00
Zach Daniel
09c2083720 chore: update ash_sql 2024-04-05 19:27:43 -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
a787e9d8d7 chore: update reactor/spark 2024-03-27 20:16:30 -04:00
Zach Daniel
4ee813bc90 chore: update mix.lock 2024-03-27 20:14:27 -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
c41b7f3fab chore: update mix.lock 2024-03-27 18:09:03 -04:00
Zach Daniel
3e9d92b697 chore: fix mix.exs 2024-03-27 17:24:18 -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
adac811c79 fix: properly format migrations
fix: ensure exists aggregates have filters included
2024-03-20 16:18:27 -04:00
Zach Daniel
2a326ea6bd chore: fix dialyzer/mix.lock 2024-03-11 11:34:40 -04:00
Zach Daniel
abcdc05202 improvement: don't select fields in exists subquery 2024-03-11 11:20:50 -04:00
Zach Daniel
2c8c993cf9 chore: optimization/cleanups 2024-02-29 13:01:53 -05:00
Zach Daniel
4db1b80eb1 fix: ensure that from_many? joins are properly limited
fix: ensure that lateral joins are properly filtered
2024-02-29 09:22:37 -05:00
Zach Daniel
2dde294c51 chore: update ash in mix.lock 2024-02-29 00:41:08 -05:00
Zach Daniel
37cb3825f1 fix: properly handle complex types in lists 2024-02-23 20:53:19 -05:00
Zach Daniel
27fcdfc8fd improvement: update to latest ash 2024-02-16 16:12:23 -05:00
Zach Daniel
b53a98dbb3 chore: update mix.lock 2024-02-15 12:15:02 -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
8f10c9b824 chore: update credo 2024-02-14 12:12:54 -05:00
Zach Daniel
db3efe15ce chore: update ash 2024-02-12 10:22:32 -05:00
Zach Daniel
4494bf971f chore: changeset.resource -> resource 2024-02-01 15:21:50 -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
ffafa6c9f5 improvement: support Ash.Changeset.OriginalDataNotAvailable 2024-01-30 12:49:52 -05:00
Zach Daniel
b1d10c32cc chore: fix credo and update ash 2024-01-29 16:57:04 -05:00
Zach Daniel
717a630a84 chore: update ex_doc 2024-01-12 14:28:01 -05:00
Zach Daniel
b93b1d722b improvement: support all_tenants? option for identities
improvement: support `all_tenants?` option for custom indexes
2024-01-12 10:11:16 -05:00
Zach Daniel
f3ccb78f86 improvement: support join_filters on aggregates
fix: subquery relationships that have filters
2024-01-11 22:30:35 -05:00
Zach Daniel
76e23b186f test: add some tests for aggregate refs in calcs 2024-01-10 07:22:25 -05:00
Zach Daniel
3cb33723fe improvement: support latest ash version & operator overrides 2024-01-04 01:09:16 -05:00
Zach Daniel
c0c9621534 improvement: support new bulk operations
fix: support encoding errors with expressions in them
2023-12-31 08:40:30 -05:00
Zach Daniel
2a2fd30e33 improvement: support new return_query/2 callback
improvement: support new `:no_rollback` error signal
2023-12-29 21:49:34 -05:00
Zach Daniel
89a4363c1f improvement: support directly referencing aggregates from aggregates 2023-12-23 10:39:54 -05:00
Zach Daniel
68e2f74fe0 improvement: support aggregates using other aggregates
fix: various fixes for unnecessary aggregate additions
test: added a test to confirm context based multitenancy behavior
2023-12-22 21:14:40 -05:00
Zach Daniel
9bc5b2af9f improvement: support string_length and string_trim 2023-12-21 19:52:29 -05:00
Zach Daniel
8192d1eb3b improvement: clean up nested if statements to single case statements 2023-12-19 22:00:40 -05:00
Zach Daniel
61d229c685 fix: use lateral joins when joining to subquery w/ parent reference 2023-12-19 18:15:00 -05:00
Zach Daniel
407a7163ed improvement: support for error/2 expression 2023-12-14 17:10:11 -05:00