Zach Daniel
d4ee7c5ac2
fix: include resource name in managed_relationship types
2023-04-16 18:15:25 -04:00
Zach Daniel
e78a9f7926
improvement: add auto? true
option for managed_relationships
2023-04-16 16:52:37 -04:00
Zach Daniel
13910dd0f1
fix: handle certain types in calculations
2023-04-14 10:46:18 -04:00
Zach Daniel
6b7ea9048f
fix: unique enum types by name
2023-04-03 11:20:34 -04:00
Mariusz Morawski
513e14f1d6
improvement: Add missing definition for Ash.Type.Time
type ( #64 )
2023-04-03 11:10:55 -04:00
Zach Daniel
c711fa2e9d
improvement: add tests & improve behavior of update managed relationships
2023-03-21 23:43:43 -04:00
Zach Daniel
fc1433170e
improvement: include primary key when managed relationship can update
2023-03-21 23:20:15 -04:00
Zach Daniel
e4dda5a3d9
improvement: don't add types for resources w/o a GQL type
...
docs: add config to getting started
2023-03-21 23:06:58 -04:00
Zach Daniel
425aee20fe
chore: fix sobelow
2023-03-21 21:27:07 -04:00
Zach Daniel
1bea680af3
feat: change type name generation for managed relationships.
...
The current type name generation could result in clashes.
We now show a warning explaining how to fix these.
2023-03-21 21:17:53 -04:00
Zach Daniel
b8b5b61786
improvement: supply arguments to relationships on loading
2023-03-17 14:56:06 -04:00
Zach Daniel
d86f6601fb
fix: properly filter enum types
2023-03-13 19:13:35 -04:00
Zach Daniel
3cc3c32f45
improvement: add support for Ash.Type.NewType
2023-03-13 18:32:36 -04:00
George Anderson
c0dcd211e7
fix: Typo in name causing Error ( #60 )
2023-03-03 17:54:45 -05:00
Zach Daniel
9d007a8401
chore: format
2023-02-24 10:00:39 -05:00
Barnabas Jovanovics
e6aadc1221
fix: always return a list from pkey_fields ( #59 )
2023-02-24 10:00:00 -05:00
Zach Daniel
7083a8363b
improvement: build inputs for the underlying get action
2023-02-22 16:25:21 -05:00
Zach Daniel
443e5fd680
improvement: add action_middleware option
2023-02-22 12:19:50 -05:00
Zach Daniel
4c26944f73
fix: don't traverse nested types for auto enums
2023-02-21 08:51:35 -05:00
Zach Daniel
f1d4c1a3cb
improvement: better tagged union handling
2023-02-16 23:33:54 -05:00
Zach Daniel
800b7eb25d
fix: properly use the nested type name for union inputs
2023-02-15 19:39:41 -05:00
Zach Daniel
b0fc800079
fix: generate proper type name for union inputs
2023-02-15 13:58:53 -05:00
Zach Daniel
ef5559ed51
fix: infinite recursion in filterability checking
2023-02-15 13:37:55 -05:00
Zach Daniel
80ee34de81
fix: pass down attribute for union type generation
2023-02-15 12:03:57 -05:00
Zach Daniel
cf8267123e
improvement: support new union types in ash
2023-02-15 08:20:35 -05:00
Zach Daniel
2a81c185c0
fix: bad error message on missing actions
...
closes #56
2023-02-13 13:42:44 -05:00
Zach Daniel
d83dacae54
improvement: make filter & sort generation optional
2023-02-08 15:16:40 -05:00
Zach Daniel
18e5f86fde
improvement: add more?
(as has_next_page
) to pagination info
2023-02-08 11:16:48 -05:00
Zach Daniel
4b90308173
chore: CI/dialyzer
2023-01-28 13:02:21 -05:00
Zach Daniel
f0836f18b6
improvement: support metadata on read actions
...
metadata on read actions is merged with the rest of the fields on the query, so must have a name unique from the attributes/calculations/aggregates.
The system will warn you if there is metadata on the underlying action that is being ignored, and will tell you how to fix it.
2023-01-28 12:32:21 -05:00
Alan Heywood
d9e17ed42b
fix: map uuid action arguments to ID type ( #52 )
2023-01-18 19:07:53 -05:00
Zach Daniel
c0f5f596cb
improvement: better error on empty input objects for managed relationships
...
closes #50
2023-01-09 19:55:35 -05:00
Zach Daniel
a58f3c998e
fix: properly generate enum for atom attributes w/ one_of
constraint again
...
closes #49
2023-01-03 10:13:17 -05:00
Zach Daniel
c62d1d50ea
docs: fix docs example
2022-12-29 23:38:42 -05:00
Zach Daniel
325ce9c6be
improvement: better error message on no type match
2022-12-29 23:36:55 -05:00
Zach Daniel
f259016455
improvement: support naive_datetime out of the box
2022-12-29 23:27:48 -05:00
Zach Daniel
c650126819
fix: resolve issues compiling resources with no type
...
fix: adding an empty query block is apparently problematic?
2022-10-31 13:07:57 -04:00
Zach Daniel
9ff395711e
improvement: handle keyset & offset pagination when combined on an action (by preferring keyset)
...
improvement: use new `depend_on_resources/` from Ash to remove the need for registry in schema
fix: various pagination fixes
2022-10-21 08:51:31 -04:00
Zach Daniel
c5662e90ba
improvement: validate that relay? queries use keyset?: true
actions
...
improvement: only add `count` to pages when one relevant query is countable
2022-10-21 07:38:33 -04:00
Zach Daniel
3be18011ea
chore: fix CI from last commit
2022-10-20 17:57:37 -04:00
Zach Daniel
07e0c6170c
improvement: split keyset_page_of
and page_of
types
...
improvement: add `start_keyset` and `end_keyset` to `keyset_page_of` type
improvement: add `count` to relay fields if there exists a countable relay query
2022-10-20 17:57:27 -04:00
Zach Daniel
75ba47215d
improvement: change calculation input type name
2022-10-13 00:53:23 -04:00
Zach Daniel
9cc9da0f2e
improvement: support calculation sort input
...
closes #31
2022-10-12 21:15:42 -04:00
Zach Daniel
3a11d988ab
improvement: support encode_primary_key? false
, and set single managed relationship primary keys do :id
type when its true
...
closes #28
2022-10-12 19:02:04 -04:00
Zach Daniel
8d79fd7d2a
fix: non relay keyset pagination was broken when relay was introduced
2022-10-12 12:11:51 -04:00
Zach Daniel
056e457522
improvement: support only exposing a subset of public relationships
2022-10-11 15:37:19 -04:00
Zach Daniel
7de4207de4
improvement: add upsert_identity
option
2022-10-09 21:05:58 -04:00
Zach Daniel
a873dfd685
fix: support determining a type for resource calculations
2022-10-03 12:00:28 -04:00
Zach Daniel
57f6315a9a
chore: raise on missing mutation
2022-09-29 15:38:38 -04:00
Zach Daniel
43c636253a
fix: raise error on missing query action
2022-09-29 15:29:21 -04:00