Commit graph

373 commits

Author SHA1 Message Date
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
Zach Daniel
74ef0aa6c3 improvement: support composite_type/2 expression 2023-11-29 09:57:10 -05:00
Zach Daniel
592e79a2f9 improvement: support composite types 2023-11-27 17:47:54 -05:00
Zach Daniel
b2d0f7e1bf chore: update ash version 2023-11-16 11:13:25 -05:00
Zach Daniel
4f5312a089 fix: add calculation context to calculation expressions 2023-11-16 08:31:50 -05:00
Zach Daniel
db8255e5b1 improvement: support a 2 argument function for the repo option 2023-11-14 10:56:22 -05:00
Zach Daniel
cae89d856e fix: get resource from proper bindings on exists query 2023-11-13 17:42:37 -05:00
Zach Daniel
77d035b326 chore: unlock unused deps 2023-10-24 12:39:56 -04:00
Zach Daniel
52302046e1 fix: properly join to related references in relationship filters 2023-10-24 12:25:23 -04:00
Zach Daniel
112e1fe175 chore: update spark/ash and add benchmark 2023-10-18 16:41:23 -04:00
Zach Daniel
2eb7f34e9f chore: update deps 2023-10-17 12:25:38 -04:00
Zach Daniel
1a6e469e57 improvement: support atomics on upserts 2023-10-11 15:17:50 -04:00
Zach Daniel
a712cb38c1 chore: update mix.lock 2023-10-10 16:04:05 -04:00
Zach Daniel
772c12b5a3 fix: don't run main query if only exists aggs are specified
fixes: #170
2023-10-10 09:43:09 -04:00
Zach Daniel
270d8685e7 improvement: support to-one references in calculations 2023-10-09 18:57:06 -04:00
Zach Daniel
472b17ce64 docs: update spark for docs improvements 2023-09-26 23:17:47 -04:00
Zach Daniel
a56f4ef52f docs: overhaul hexdocs 2023-09-22 16:14:25 -04:00
Zach Daniel
b35f8c715b improvement: add AshPostgres.Tsquery 2023-09-20 16:41:32 -04:00
Zach Daniel
e8a4b41758 improvement: support vector types and vector_cosine_distance 2023-09-11 22:34:51 -04:00
James Harton
6cc88c82b4
improvement: Allow resources to opt out of the primary key requirement. (#166) 2023-09-06 01:18:57 -04:00
Zach Daniel
33eb4f9fb7 improvement: better error message for missing table config 2023-09-04 11:25:03 -04:00
Zach Daniel
eabb745fc3 chore: update tests for latest ash atomics support 2023-08-31 11:47:15 -04:00
Zach Daniel
5a4a52854b
improvement: support atomics (#165) 2023-08-28 16:18:56 -04:00
Zach Daniel
36d83d0671 chore: update mix.lock 2023-08-22 14:54:46 -04:00
Zach Daniel
99b2a5631c improvement: support in-line aggregates
fix: support non-atom named aggregates
2023-08-22 14:51:31 -04:00
Zach Daniel
c8aa2a8dd8 improvement: add value_to_postgres_default/3 and AshPostgres.Type 2023-08-18 11:22:01 -04:00
Zach Daniel
c838960b82 improvement: update ash 2023-07-31 23:37:53 -04:00
Zach Daniel
d2e309c126 improvement: support the new parent/1 expr in relationships 2023-07-26 17:32:09 -04:00
Zach Daniel
89333fbc56 fix: un-break aggregates referencing calculations 2023-07-20 22:00:37 -04:00
Zach Daniel
c7866c6c16 improvement: support new distinct_sort option 2023-07-19 12:50:05 -04:00
Zach Daniel
c05c0bec05 chore: update ssl_verify_fun 2023-07-18 14:51:12 -04:00
Zach Daniel
c920b09277 improvement: support new distinct features from ash core 2023-07-18 14:48:35 -04:00
Zach Daniel
ed62006b3f improvement: support unary -/1 operator 2023-07-17 22:35:46 -04:00
Zach Daniel
d2e071773e improvement: support exists aggregates 2023-07-13 00:13:50 -04:00
Zach Daniel
11ad5f4d1b improvement: support at/2 expression 2023-07-12 17:05:33 -04:00
Zach Daniel
c1a630ee16 improvement: support string_split 2023-07-12 15:16:28 -04:00
Zach Daniel
06cb5b5c89 chore: update ash/tests 2023-05-26 23:59:35 -04:00
Zach Daniel
4a57a300da fix: handle raised errors in bulk actions 2023-05-22 21:17:30 -04:00
Zach Daniel
f59bbee443 improvement: raise better errors on conflicting locks 2023-05-17 13:17:37 -04:00
Zach Daniel
41a2e4f1d1 fix: check changeset.action_type not changeset.action.type 2023-05-15 15:59:21 -04:00
Zach Daniel
333c3ad95d improvement: support changeset.filters (for optimistic locking) 2023-05-08 15:54:43 -04:00
Zach Daniel
95510f9e4d chore: update ash 2023-05-02 22:20:25 -04:00
Zach Daniel
08a0a926e5 improvement: support bulk upserts 2023-05-02 22:16:21 -04:00
Zach Daniel
aed14f7ffd test: add test to confirm lateral join fix in Ash 2023-05-01 14:11:33 -04:00
Zach Daniel
805de0f2f1 improvement: support locking 2023-04-27 21:49:13 -04:00
Zach Daniel
5d50b98298 improvement: handle new spark versions better, more explicit snapshots 2023-04-26 22:23:43 -04:00
Zach Daniel
903b1dd2e7 improvement: update ash
test: update tests
2023-04-21 10:43:58 -06:00
Zach Daniel
4f3a21443e chore: unlock unused 2023-04-12 10:58:55 -04:00
Zach Daniel
d954825b7e chore: update ecto in lock & fix warnings
fixes: #138
2023-04-12 10:44:43 -04:00
Zach Daniel
7952a515fe fix: properly handle newtypes, add test 2023-04-07 10:56:06 -04:00
Zach Daniel
4ccec4fe8b improvement: update ash
chore: fix tests
2023-04-04 21:49:24 -04:00
Zach Daniel
58ee514004 chore: update mix.lock 2023-03-31 16:12:01 -04:00
Zach Daniel
0cf98d67a0 chore: update mix.lock 2023-03-31 12:37:24 -04:00
Barnabas Jovanovics
e2ee0016ea
test: add test that reproduces dependent select problem (#136) 2023-03-31 12:12:13 -04:00
Zach Daniel
422281bde6 chore: update mix.lock 2023-03-23 17:19:58 -04:00
Zach Daniel
3ff49c4fcb improvement: support new date expressions 2023-03-03 12:11:29 -05:00
Zach Daniel
b4fa4d0d9d chore: update ash_postgres and fix credo 2023-02-21 10:26:36 -05:00
Zach Daniel
589fb4d620 improvement: better type casting for concat operator 2023-02-12 19:09:25 -05:00
Zach Daniel
8eabbde953 add tests for new transaction behavior 2023-02-10 15:41:41 -05:00
Zach Daniel
8e8a308cd2 improvement: support new uniq? option on count/list aggregates 2023-02-09 16:09:44 -05:00
Zach Daniel
627151afc1 chore: release version v1.3.8 2023-02-06 00:20:03 -05:00
Zach Daniel
610bfc0239 chore: update mix.lock 2023-02-06 00:19:21 -05:00
Zach Daniel
cc643393d9 improvement: add migration_ignore_attributes
chore: update ash, fix ci
2023-02-01 02:05:04 -05:00
Zach Daniel
5875b68484 chore: update ash in CI and mix.lock 2023-01-30 13:45:21 -05:00
Zach Daniel
14d1f04a24 chore: update ash to latest version 2023-01-29 18:42:40 -05:00
Zach Daniel
b52da94b32 fix: properly convert to/from ecto, only when necessary 2023-01-29 18:20:59 -05:00
Zach Daniel
ce3cb0f2df fix: support latest ecto interop changes in ash core 2023-01-27 20:54:40 -05:00
Zach Daniel
2c788ddb06 improvement: update ash 2023-01-18 01:05:28 -05:00
Zach Daniel
a3577479e3 improvement: update to latest ash 2023-01-10 21:54:28 -05:00
Zach Daniel
1aab3dd7e3 fix: properly type cast in fragments (and elsewhere) 2023-01-09 09:48:25 -05:00
Zach Daniel
c15a6e4613 fix: undo changes that caused type casting bugs 2023-01-06 17:45:10 -05:00
Zach Daniel
3c496512e2 fix: use parent_expr instead of this
fix: various expression & type building fixes
2023-01-06 17:05:23 -05:00
Zach Daniel
475ec0f1ca feat: support latest ash 2023-01-04 12:36:18 -05:00
Zach Daniel
301466e1b5 improvement: support calculations as aggregate targets
fix: handle lists with expressions inside
2022-12-28 22:08:07 -05:00
Zach Daniel
46f3676e9a improvement: udpate to latest ash, fix array issues 2022-12-14 21:47:50 -05:00
Zach Daniel
98418599f9 chore: release version v1.2.0 2022-12-13 14:55:26 -05:00
Zach Daniel
68c6d7aaf8 improvement: better error messages from mix tasks
fix: various broken behavior from new aggregate work
improvement: validate that references refer to relationships

closes #99
2022-12-10 15:59:50 -05:00
Zach Daniel
e271a27d3c improvement: avg/min/max/custom aggregate support
fix: fix various problems with the model behind aggregates
2022-12-07 20:32:38 -05:00
Zach Daniel
1c7478e502 improvement: upgrade and depend on ash version 2022-12-04 15:20:56 -05:00
Zach Daniel
ee8e77dca4 fix: properly set binding names for many to many join filters 2022-12-04 15:01:24 -05:00
Zach Daniel
498d54e812 improvement: update ash, add test for transaction hooks 2022-11-30 20:51:06 -05:00
Zach Daniel
18d151c8e3 improvement: use new docs 2022-11-03 10:02:31 -07:00
Zach Daniel
2451879d46 test: add test for code interface 2022-10-31 11:53:03 -04:00
Zach Daniel
13413d3cc7 feat: support now() in latest Ash 2022-10-20 01:08:35 -04:00
Zach Daniel
cc754ffdba improvement: update to Ash 2.0 2022-10-17 12:52:59 -05:00
Zach Daniel
7fd1e73baa fix: don't apply filter to array_agg 2022-10-10 12:06:54 -04:00
Zach Daniel
0efec304ff chore: update git_ops 2022-10-07 15:51:24 -04:00
Zach Daniel
b7b5758134 improvement: update to the latest ash
improvement: remove the need to dynamically expand fragments
2022-10-07 15:50:20 -04:00
Zach Daniel
b2e3c3ff32 improvement: update to latest ash 2022-10-04 16:13:52 -04:00
Zach Daniel
3b1b90d7ab chore: add mix tasks to doc index 2022-09-28 23:27:46 -04:00
Zach Daniel
dfbbddf2c7 improvement: update to the latest ash 2022-09-27 23:56:15 -04:00
Zach Daniel
31d0ec20ac improvement: support latest ash 2022-09-20 23:00:29 -04:00
Zach Daniel
ee45ee3015 chore: update to latest ash 2022-09-15 17:08:34 -04:00
Zach Daniel
edfe901f43 improvement: update to latest ash 2022-09-15 16:56:13 -04:00
Zach Daniel
02b6dcec22 improvement: upgrade to latest ash 2022-09-15 00:27:20 -04:00
Zach Daniel
11561ea163 improvement: support latest ash 2022-09-14 12:59:01 -04:00
Zach Daniel
170b9fc9e7 improvement: support latest ash exists/2 expr 2022-09-06 18:33:17 -04:00