Commit graph

279 commits

Author SHA1 Message Date
Zach Daniel
079eb2e08d fix: don't call ecto_type twice when resolving types 2022-02-07 15:35:18 -05:00
Zach Daniel
00d937cfa8 fix: place expressions in the proper order in selects 2022-02-07 15:35:18 -05:00
Zach Daniel
928e31a3d3 fix: match on count in expr 2022-02-07 15:35:18 -05:00
Zach Daniel
4c0fc23074 fix: remove incorrect param count tracking 2022-02-07 15:35:18 -05:00
Zach Daniel
a8ab857611 fix: properly track param count 2022-02-07 15:35:18 -05:00
Zach Daniel
96c70fcaff fix: properly reverse parameters before/after expansion 2022-02-07 15:35:18 -05:00
Zach Daniel
e034e70b91 fix: don't use the base ecto type 2022-02-07 15:35:18 -05:00
Zach Daniel
2258e6f749 all green on dynamic refactor 2022-02-07 15:35:18 -05:00
Zach Daniel
fcee70b2f7 WIP 2022-02-07 15:35:18 -05:00
Zach Daniel
e19a44d7d9 WIP on dynamic refactor 2022-02-07 15:35:16 -05:00
Zach Daniel
1dcef728fe fix: don't sort when joining 2022-01-18 18:50:14 -05:00
kernel-io
4a1f1880ff
bugfix: ensure repo is compiled (#80) 2021-12-21 14:19:33 -05:00
Zach Daniel
d7874c5ecd fix: properly construct nested join relationships 2021-12-20 23:12:28 -05:00
Zach Daniel
912fab9a96 fix: use CiStringWrapper type in ash_postgres 2021-12-17 13:25:14 -05:00
kernel-io
2790a725cc
fix: ensure we are returning * on upserts (#79)
Co-authored-by: kernel-io <kernel>
2021-11-25 21:35:26 -05:00
kernel-io
df62c35801
improvement: don't upsert defaults on conflict (#77)
Co-authored-by: kernel-io <kernel>
2021-11-24 19:31:59 -05:00
Zach Daniel
98004f3251 fix: handle new if types
improvement: relax ash version requirement
2021-11-13 14:48:14 -05:00
Zach Daniel
af97c549c5 improvement: add custom migration types, and repo level override 2021-11-10 04:18:36 -05:00
kernel-io
5a0d145249
fix: copy query prefix to newly created query (#74) 2021-11-02 17:00:13 -04:00
Zach Daniel
4c4af7ebfa fix: use proper ecto types everywhere 2021-11-01 04:41:41 -04:00
Zach Daniel
ff261d75bb fix: try to fix missing paren issue in array_agg 2021-10-26 17:01:57 -04:00
Zach Daniel
2fdcea7ef8 improvement: support default on aggregates
chore: update to latest ash patterns for testing
2021-10-25 18:53:34 -04:00
kernel-io
e4de6f59f6
bugfix: fix can? for :joins (#73) 2021-10-07 04:16:33 -04:00
Michael St Clair
4307415cca
handle when no opts are passed to custom index (#72) 2021-09-25 20:02:00 -04:00
Zach Daniel
3f0aa74db2 fix: remove unused default value 2021-09-21 15:28:45 -04:00
Zach Daniel
b9dfc20bf6 fix: use proper identity names for polymorphic resources 2021-09-21 15:10:25 -04:00
Zach Daniel
b2350a5d6b fix: set identity names propertly for polymorphic resources 2021-09-21 13:41:58 -04:00
Zach Daniel
b9afd37eb7 fix: handle nil values in snapshots better 2021-09-20 20:48:19 -04:00
Zach Daniel
9204ec0121 fix: remove unused field from snapshot parsing 2021-09-20 20:40:13 -04:00
Zach Daniel
be1fbd6137 improvement: support custom_indexes 2021-09-20 16:38:36 -04:00
Zach Daniel
981f6c8ccd improvement!: update to latest ash/ecto versions w/ parameterized types 2021-09-13 12:58:23 -04:00
zimt28
e6a68f10d0
improvement: Support default tenant migration path in releases (#69) 2021-07-30 12:22:39 -04:00
Zach Daniel
54765f300a fix: set subquery prefix properly 2021-07-27 23:03:39 -04:00
Zach Daniel
dc054e09fb chore: undo unnecessary expr casting 2021-07-27 19:15:28 -04:00
Zach Daniel
e6ec25ec64 improvement: info on migration generator output 2021-07-27 18:35:14 -04:00
Zach Daniel
c6841c9e72 fix: set subquery source correctly
fix: create parameter for ci strings
2021-07-27 18:35:14 -04:00
Zach Daniel
548f0f4eba improvement: use match: :full on attr multitenancy 2021-07-26 18:02:30 -04:00
Zach Daniel
7d9d7611cb fix: explicitly set prefix at each level 2021-07-24 16:59:23 -04:00
Zach Daniel
5e5b5f3fc0 fix: interaction w/ attribute and context tenancy 2021-07-24 11:28:58 -04:00
Zach Daniel
85f27337d6 improvement: upgrade ash dep
chore: remove comment
test: add a sort test
2021-07-22 15:23:38 -04:00
Zach Daniel
17efc83eaa fix: don't add a non-list to a list 2021-07-19 17:12:01 -04:00
Zach Daniel
487c9f32d6 improvement: fix significant performance issue in lateral joins
fix: ensure source table is sorted in lateral join
2021-07-19 13:56:36 -04:00
Zach Daniel
aa334eb152 improvement: support default_prefix configuration 2021-07-12 02:43:39 -04:00
Zach Daniel
95be84f734 improvement: --name when generating migrations 2021-07-08 14:52:53 -04:00
Zach Daniel
ddbd43b611 fix: fix migrator mix tasks w/ only/except tenants
fix: drop foreign keys after table create properly
2021-07-08 13:35:16 -04:00
Zach Daniel
7f5a56d9bd improvement: add mix ash_postgres.rollback
fix: drop foreign keys before dropping table
2021-07-08 11:37:33 -04:00
Zach Daniel
be7e2a89bc fix: left_lateral_join for many_to_many aggregates
fix: properly reference nested aggregate fields for join
fix: properly determine fallback table for polymorphic resources
2021-07-05 14:12:21 -04:00
Zach Daniel
a67c8b4e11 fix: ensure non-tenant resources can be aggregates 2021-07-02 23:43:30 -04:00
Zach Daniel
f13f31330f fix: properly set aggregate query sources 2021-07-02 12:41:44 -04:00
Zach Daniel
2b2f5f1646 fix: retain parent as bindings 2021-07-02 11:08:31 -04:00
Zach Daniel
a82325e28d fix: don't add rel_source at all 2021-07-02 01:50:41 -04:00
Zach Daniel
ba0c66e395 fix: properly build atoms list 2021-07-02 01:08:53 -04:00
Zach Daniel
ad497f0182 fix: horribly hack ecto for dynamic bindings 2021-07-02 01:01:56 -04:00
Zach Daniel
46744c5d4a fix: properly coalesce aggregate values 2021-07-01 15:28:27 -04:00
Zach Daniel
576c317b68 improvement: leverage new private_vars for errs 2021-06-23 17:21:09 -04:00
Zach Daniel
1b23bb3ccc fix: always add nullability flag 2021-06-15 16:04:17 -04:00
Zach Daniel
da9d24c96f fix: sort references only after other same-table ops 2021-06-08 17:41:35 -04:00
Zach Daniel
3e50a0d119 fix: generate multitenant foreign keys properly 2021-06-06 03:31:22 -04:00
Zach Daniel
5583270426 improvement: support calculation sorts 2021-06-05 18:13:20 -04:00
Zach Daniel
dae39f5fda feat: support expression based calculations
feat: support concat + if expressions
improvement: various other improvements
2021-06-04 01:48:35 -04:00
Zach Daniel
84fe7a4822 fix: set prefix to "public" for fkeys to public schema
improvement: set explicit prefix on join filters
2021-05-22 23:56:52 -04:00
Zach Daniel
c2fca09e2d improvement: support new ash upsert specifying targets 2021-05-18 23:04:37 -04:00
Zach Daniel
f0b901173c fix: properly group many_to_many aggregates 2021-05-12 13:17:26 -04:00
Zach Daniel
7911de61a5 improvement: support latest ash/filtering on related aggregates 2021-05-08 23:25:28 -04:00
Zach Daniel
e6e5ca8165 fix: properly construct sources for lateral joins 2021-05-07 12:09:09 -04:00
Zach Daniel
8f80c89db9 improvement: update to latest ash 2021-05-07 12:00:52 -04:00
Zach Daniel
ea26d3f432 fix: copy the correct data for lateral join queries 2021-05-07 11:04:09 -04:00
Zach Daniel
f82e2d44c8 fix: better errors in error cases 2021-05-07 03:09:49 -04:00
Zach Daniel
48c3830209 fix: don't cast booleans to string in last_ditch_cast 2021-05-07 01:49:04 -04:00
Zach Daniel
f28ee00d68 improvement: support latest ash version resource sorts 2021-05-07 01:12:13 -04:00
Zach Daniel
29956794ff improvement: update to latest ash
chore: add aggregate test
chore: small experimental interface change
2021-05-06 17:37:29 -04:00
Zach Daniel
7b37042817 test: more lateral join testing
fix: join to join table in lateral join query
2021-05-04 02:14:24 -04:00
Zach Daniel
ebde2b620e fix: multitenancy + lateral join sources
fix: don't distinct in lateral joins
2021-05-04 01:36:25 -04:00
Jeremy Ward
11665e0784
fix: fix fragment processing broken (#64) 2021-05-01 10:05:12 -04:00
Zach Daniel
7115bec586 feat: support new side load improvements 2021-04-29 17:31:34 -04:00
zimt28
fe7d188e26
improvement: Preserve attribute order (#63) 2021-04-28 17:23:24 -04:00
Zach Daniel
b7efe6e078 improvement: custom index names
fix: simpler index names
2021-04-27 17:16:56 -04:00
Zach Daniel
41e95af715 fix: don't prefix unique indices with prefix() 2021-04-27 16:15:55 -04:00
Zach Daniel
ae3f2c0b07 fix: sort index operations last 2021-04-27 16:08:16 -04:00
Zach Daniel
07244d66a8 fix: remove inspects that were left in by accident 2021-04-27 13:16:44 -04:00
Zach Daniel
79cba4553b fix: type cast atoms to strings in last ditch cast 2021-04-27 13:03:02 -04:00
Zach Daniel
0e235a6ded fix: properly type cast 2021-04-27 12:09:21 -04:00
zimt28
eba0878895
fix: Remove duplicate file extension (#60) 2021-04-27 10:52:47 -04:00
Zach Daniel
1cce277e7d improvement: support list aggregate 2021-04-26 16:45:47 -04:00
Zach Daniel
8bcc2a16eb fix: stringify struct defaults in migration generator 2021-04-26 13:21:57 -04:00
zimt28
04190e18e2
fix: properly comment out extension uninstallation code 2021-04-25 20:29:05 -04:00
Zach Daniel
301f05604c improvement: support ash enums 2021-04-21 13:50:11 -04:00
Zach Daniel
e9222bebfa fix: include type in references (because it is *not* automatic) 2021-04-19 17:28:00 -04:00
Zach Daniel
1f6621b852 feat: add check_constraints, both for validation and migrations 2021-04-19 14:26:41 -04:00
Zach Daniel
aa49b0f4ea chore: fix default foreign key name 2021-04-13 12:38:39 -04:00
Zach Daniel
250f8b195c fix: always drop constraints before modifying
fix: properly compare old references and new references
2021-04-13 12:19:50 -04:00
Zach Daniel
4417eaa6a1 improvement: default integers to :bigint
fix: don't explicitly set type in `references`
2021-04-12 14:13:23 -04:00
WolfDan
ac0b18c72b
improvement: primary autoincrement key as bigserial (#54) 2021-04-12 12:30:30 -04:00
Zach Daniel
737a6a5442 improvement: support new ash select feature 2021-04-09 00:53:50 -04:00
Zach Daniel
2d0245e368 chore: open up some migration APIs for experimentation purposes 2021-04-04 16:09:26 -04:00
Michael St Clair
cf92fe14a5
improvement: add sum aggregate (#53) 2021-04-04 16:05:41 -04:00
Zach Daniel
30223a1f9b fix: raise when all_tenants/0 default impl is called 2021-04-02 10:24:42 -04:00
Zach Daniel
4d2d29d976 feat: support configuring references
feat: support configuring polymorphic references
feat: support `distinct` Ash queries
2021-04-01 02:19:30 -04:00
Zach Daniel
e2eb2d4483 improvement: only count resources w/ create action for nullability 2021-03-29 09:27:18 -04:00
Simon Bergström
dc628c32ca
fix: Made AshPostgres.Repo.init/2 overridable (#51) 2021-03-22 13:07:01 -04:00