Commit graph

611 commits

Author SHA1 Message Date
Zach Daniel
5b3e3abf35 fix: fix an issue w/ matching on actions in resolver
this is an empty commit, added to refer to the previous commit
2023-09-17 19:34:30 -04:00
Zach Daniel
1950581f83 chore: attempt to fix an issue w/ incorrect action call 2023-09-17 19:17:13 -04:00
Zach Daniel
96b202221f chore: release version v0.26.1 2023-09-15 13:53:37 -04:00
Zach Daniel
49c6534d73 improvement: generic action support
docs: better docs
2023-09-15 13:45:12 -04:00
Zach Daniel
0ec762507f test: fix testing type 2023-09-13 15:52:46 -04:00
Zach Daniel
339a78ec98 fix: handle nested array types 2023-09-13 14:55:17 -04:00
Zach Daniel
a7d89c14c5 chore: release version v0.26.0 2023-08-29 21:32:47 -04:00
Zach Daniel
1d69d8ef33 fix: support aggregates over calculations 2023-08-29 21:32:22 -04:00
Alan Heywood
0c869aa522
test: add failing test for an aggregate of a calculation (#92)
An error occurs at compile time:

== Compilation error in file test/support/schema.ex ==
** (MatchError) no match of right hand side value: {:error, "Must provide field type for max"}
    lib/resource/resource.ex:2278: AshGraphql.Resource.filterable?/2
    (elixir 1.15.4) lib/enum.ex:4265: Enum.filter_list/2
    (elixir 1.15.4) lib/enum.ex:4266: Enum.filter_list/2
    lib/resource/resource.ex:2229: AshGraphql.Resource.aggregate_filter_fields/2
    lib/resource/resource.ex:2195: AshGraphql.Resource.resource_filter_fields/2
    lib/resource/resource.ex:1159: AshGraphql.Resource.args/5
    lib/resource/resource.ex:425: anonymous fn/6 in AshGraphql.Resource.queries/5
    (elixir 1.15.4) lib/enum.ex:1693: Enum."-map/2-lists^map/1-1-"/2
2023-08-29 21:30:06 -04:00
Zach Daniel
39e33ca162 chore: fix testing type 2023-08-28 16:15:58 -04:00
Barnabas Jovanovics
bce89e985c
feat: add more sort order values (#91) 2023-08-28 10:42:39 -04:00
Barnabas Jovanovics
da1d1e889c
fix: wrap type in non-null reference if allow_nil? is set to false (#90)
* fix: wrap type in non-null reference if allow_nil? is set to false

* fix: get allow_nil? from the correct place
2023-08-22 14:43:27 -04:00
Zach Daniel
8f9e79e273 fix: pass arguments to related read action 2023-08-03 19:49:59 -04:00
Zach Daniel
d5e8781abf fix: recurse through array types for union checking 2023-07-31 22:14:11 -04:00
Zach Daniel
700cc1adee fix: don't add filter input for non-filterable resources 2023-07-31 22:07:03 -04:00
Zach Daniel
7e46a627b8 chore: format 2023-07-31 15:32:02 -04:00
Zach Daniel
8e898e7003 chore: no need for absinthe_plug dependency 2023-07-31 15:17:10 -04:00
Zach Daniel
0311724375 chore: update ssl_verify_fun 2023-07-31 15:16:21 -04:00
Zach Daniel
178ea6c7e3 chore: lock/guide/tool versions 2023-07-31 15:13:23 -04:00
Jeremy Grant
de149c63a5
fix(array unions): for arrays of embedded types unions when graphql_unnested_unions is used, without it they return empty values (#87) 2023-07-28 21:36:12 -04:00
Zach Daniel
9d0a8c4234 chore: release version v0.25.13 2023-07-13 09:24:03 -04:00
Zach Daniel
fe85aab53a fix: properly display forbidden field errors
fixes #84
2023-07-13 09:23:17 -04:00
Zach Daniel
df989855ba chore: update test config 2023-07-13 08:49:34 -04:00
Barnabas Jovanovics
e11deb07aa
test: update field policy test (#83) 2023-07-13 08:46:26 -04:00
Zach Daniel
41e354e2d3 chore: update test config 2023-07-13 01:45:43 -04:00
Zach Daniel
cf57747d79 chore: release version v0.25.12 2023-07-03 23:44:38 -04:00
Jeremy Grant
682a240aa9
fix: {:array, UnionType} issues resolving embedded types (#82) 2023-07-03 23:42:40 -04:00
Zach Daniel
bf4aaff3a3 improvement: update ash 2023-07-03 22:26:29 -04:00
Zach Daniel
7580a714a5 chore: release version v0.25.11 2023-07-03 21:37:10 -04:00
Zach Daniel
ef0eb4d086 chore: fix bug report template 2023-07-03 21:35:55 -04:00
Zach Daniel
60517e6e20 chore: update tests, the fix is in main, just need to wait for release 2023-06-28 14:35:18 -04:00
Barnabas Jovanovics
14a5898958
test: add test for loading stuff through unions with fragments (#81) 2023-06-28 11:14:50 -04:00
Zach Daniel
61003d539a chore: update fix with exception for embedded resources 2023-06-28 10:52:23 -04:00
Zach Daniel
eb6d4f24f7 fix: only include types for actions being used by ash_graphql 2023-06-28 10:20:59 -04:00
Zach Daniel
d2f1f321f6 fix: handle detection of fields nested in aliases 2023-06-23 10:53:24 -04:00
Zach Daniel
dd64dd9f4f chore: update ash 2023-06-23 10:12:32 -04:00
Zach Daniel
bb96354470 improvement: support ForbiddenField 2023-06-23 10:10:39 -04:00
Alan Heywood
1c9c173631
fix: fix Logger deprecations for elixir 1.15 (#79)
Use Logger.warning instead of Logger.warn, which is deprecated
2023-06-22 17:38:24 -04:00
Zach Daniel
c70e7dec7d improvement: use parse_input for filters 2023-06-19 15:09:32 -04:00
Barnabas Jovanovics
7f504bbf17
test: add engine deadlock test (#78) 2023-06-16 10:51:50 -04:00
Zach Daniel
1f6e87ff01 fix: properly resolve arrays of unions from calculations 2023-06-15 13:04:45 -04:00
Barnabas Jovanovics
6c073e746d
test: add new calculate union tests with real resources (#77) 2023-06-15 10:36:20 -04:00
Zach Daniel
045426c629 fix: account for lists of newtype unions 2023-06-14 10:21:20 -04:00
Zach Daniel
9b8d494e1d chore: release version v0.25.10 2023-06-12 17:01:57 -04:00
Zach Daniel
102bf96221 improvement: use new can_load?/2 2023-06-12 16:59:05 -04:00
Zach Daniel
e74101044a chore: release version v0.25.9 2023-06-12 13:20:58 -04:00
Zach Daniel
74211ef3f4 fix: properly fetch aliased all attributes 2023-06-12 13:19:07 -04:00
Barnabas Jovanovics
dcc7e045b9
test: add tests for graphql aliases (#75) 2023-06-12 10:44:01 -04:00
Zach Daniel
18b2effe57 chore: release version v0.25.8 2023-06-10 13:32:07 -04:00
Zach Daniel
1169b6ec32 chore: update mix.lock 2023-06-10 13:31:51 -04:00