Commit Graph

1230 Commits

Author SHA1 Message Date
Brian Clozel
5166dc071f Merge branch '1.2.x' 2024-03-28 17:00:47 +01:00
Brian Clozel
54d24abbb7 Remove remaining Concourse tasks for CI publish build
Closes gh-939
2024-03-28 16:59:18 +01:00
Brian Clozel
61f6afa80b Remove offending property from docs zip publishing
See gh-939
2024-03-28 16:49:25 +01:00
Brian Clozel
181fabc5c0 Fix deployment repository property name in publish action
See gh-939
2024-03-28 16:42:17 +01:00
Brian Clozel
9298ef5323 Add GitHub action for building and deploying SNAPSHOTs
See gh-939
2024-03-28 16:31:05 +01:00
Brian Clozel
19af883308 Merge branch '1.2.x' 2024-03-28 15:49:30 +01:00
Spring Builds
b9d4cbcc83 Next development version (v1.2.7-SNAPSHOT) 2024-03-28 13:27:23 +00:00
Brian Clozel
f21db214c5 Upgrade to Spring Framework 6.0.18
Closes gh-938
2024-03-28 14:17:27 +01:00
Brian Clozel
e7840e418b Upgrade to GraphQL Java 20.9
Closes gh-936
2024-03-28 09:27:16 +01:00
rstoyanchev
f9f021005f Merge branch '1.2.x' 2024-03-27 17:40:41 +00:00
rstoyanchev
b1aa0c67ed Use 0-based offset values for pagination
This is a temporary workaround to fix off-by-1 misalignment with
Spring Data, which uses 1-based offset values. Once the changes
in Spring Data become clear, we'll also adjust accordingly.

Closes gh-925
2024-03-27 17:40:17 +00:00
rstoyanchev
bb734bf894 Remove session state from onClose only
Doing the same eagerly from onError has the side effect of not being able
to delegate handleConnectionClosed to interceptors.

Closes gh-872
2024-03-27 11:50:26 +00:00
rstoyanchev
70a7b81e6e Merge branch '1.2.x' 2024-03-26 20:35:49 +00:00
rstoyanchev
ce7f77c585 Improve logic to resolve pagination arguments
The presence of either "after" or "first" leads to forward pagination.
Else if either "before" or "last" leads to backward pagination.
Fall back on forward if none are provided at all.

In addition, a small adjustment to backward pagination. If a count
is not provided, use 1 rather than 0, to advance to previous item.

Closes gh-929
2024-03-26 20:34:52 +00:00
rstoyanchev
1e6a5a09d7 Polishing in SchemaMappingInspector
See gh-934
2024-03-26 10:12:29 +00:00
rstoyanchev
eb7bc43ce9 SchemaMappingInspector consistently calls checkField
Rather than only checking for the presence of a property, also call
checkField on it. If it is a scalar then recursion stop anyway, but in the
unlikely event that it isn't, there are more fields to check.

Closes gh-934
2024-03-26 09:44:05 +00:00
rstoyanchev
651679b8ff Refactoring in SchemaMappingInspector
Rather than passing a DataFetcher into checkField, determine the return type
externally and pass it in. That makes the method more generally useful, and
independent of how the associated type is determined, e.g. whether from a
DataFetcher return type or a corresponding Java property.

See gh-934
2024-03-26 09:43:36 +00:00
rstoyanchev
27c44ecef5 Update docs for schema mapping inspection of unions and interfaces
Closes gh-924
2024-03-25 17:10:55 +00:00
rstoyanchev
a18586bed7 Polishing docs on schema mapping inspection
See gh-924
2024-03-25 15:36:20 +00:00
rstoyanchev
77b1f1a923 SchemaMappingInspector support for unions and interfaces
See gh-924
2024-03-25 14:38:39 +00:00
rstoyanchev
4a14dc2697 Extract TypePair in SchemaMappingInspector
Refactor logic to determine the GraphQL type and Java type for a
field into private, nested class.

See gh-924
2024-03-25 14:37:33 +00:00
rstoyanchev
7e2a671ca5 ClassNameTypeResolver resolves to concrete types only
See gh-924
2024-03-24 06:13:28 +00:00
rstoyanchev
e902b829e5 Polishing in ClassNameTypeResolverTests
See gh-924
2024-03-24 06:13:28 +00:00
rstoyanchev
d794d373c8 Merge branch '1.2.x' 2024-03-22 17:56:00 +00:00
rstoyanchev
1a3ae735c1 Add Thread Model section to documentation
Closes gh-907
2024-03-22 17:51:51 +00:00
rstoyanchev
7140e6cbae Avoid AssertException for persisted query
Closes gh-930
2024-03-22 13:37:28 +00:00
Brian Clozel
2f9840376e Upgrade to GraphQL Java 22 test version
This commit upgrades GraphQL Java to
"0.0.0-2024-03-20T00-25-33-974c165", a test version for the upcoming
22.0 release.

See gh-932
2024-03-21 15:19:47 +01:00
rstoyanchev
3da533d245 Update EntityMapping test to use batch mapping 2024-03-20 20:14:37 +00:00
rstoyanchev
47b873af12 Revert "Configurable ContextSnapshotFactory instance"
This reverts commit dcaa1511a1.
2024-03-15 10:02:08 +00:00
rstoyanchev
267b514cf2 Schema inspection support for unmapped arguments
Closes: gh-740
2024-03-15 10:01:18 +00:00
rstoyanchev
dcaa1511a1 Configurable ContextSnapshotFactory instance
Closes gh-919
2024-03-13 13:32:08 +00:00
Brian Clozel
0ccb4464ce Merge branch '1.2.x' 2024-03-08 10:00:19 +01:00
Brian Clozel
0fa2c4f104 Do not override custom local context in observation instrumentation
Prior to this commit, the `GraphQlObservationInstrumentation` would
always assume that local context instances are of type `GraphQLContext`.
This means that a custom context type would be overwritten with a
`GraphQLContext` that contains the current observation.

Instead, this commit ensures that a local context is contributed only if
none was present, or that we wrap the existing one only if it is a
`GraphQLContext` in the first place. If the parent data fetcher
contributes a custom context, the current observation will not be added.

Fixes gh-918
2024-03-08 09:49:20 +01:00
Maksim Sasnouski
0bdda15b2d Upgrade com.gradle.enterprise plugin to 3.16.2 2024-03-07 11:05:34 +00:00
Brian Clozel
e21d4aedbd Upgrade to Spring Security 6.3.0-M2
See gh-888
2024-02-21 10:30:57 +01:00
Brian Clozel
64f0698a39 Upgrade to Micrometer 1.13.0-M1
See gh-886
2024-02-21 10:30:29 +01:00
Brian Clozel
3933d3a954 Update Javadoc link to graphql-java 21.3 2024-02-21 10:29:51 +01:00
Brian Clozel
fffc21569f Merge branch '1.2.x' 2024-02-21 10:11:53 +01:00
Spring Builds
9d735b9c94 Next development version (v1.2.6-SNAPSHOT) 2024-02-21 08:55:43 +00:00
rstoyanchev
bd6ca27376 Merge branch '1.2.x' 2024-02-20 23:20:07 +00:00
rstoyanchev
248cfe22ba Revise default ScrollSubrange for QueryDsl and QBE
The QueryDsl and QBE data fetcher builders now accept a default count
and a function for a default position with awareness of the scroll
direction.

Closes gh-917
2024-02-20 23:19:48 +00:00
rstoyanchev
9817230638 Adapt offset scroll from inclusive to exclusive
Both forward and backward scrolling needed adjustment.
For forward, we were not advancing by 1.
For backward, we were advancing by the count and 1 more than necessary.

Closes gh-916
2024-02-20 23:19:26 +00:00
Brian Clozel
eba7e9540a Merge branch '1.2.x' 2024-02-20 11:03:52 +01:00
Brian Clozel
53108d0c8d Fix ControllerAdvice ordering support
Prior to this commit, the `ControllerAdvice` support would detect all
beans and exception handler methods, to put them in an ordered `TreeMap`
using the `OrderComparator.INSTANCE`. Doing so would naturally consider
beans with the same order as duplicates and would write a single entry
in the map. This effectively ignored many `ControllerAdvice` beans with
the same order (but one).

This commit removes the use of a `TreeMap` and instead uses a
`LinkedHashMap` and the insertion order for proper ordering.

Fixes gh-901
2024-02-20 10:57:26 +01:00
Brian Clozel
86237efcfe Update build status in README for 1.3.x 2024-02-20 10:27:01 +01:00
rstoyanchev
69f3b2453a Merge branch '1.2.x' 2024-02-20 07:26:58 +00:00
rstoyanchev
43a76c487a Polishing
See gh-915
2024-02-20 07:20:54 +00:00
rstoyanchev
3381774fb9 Improve check whether to create DataLoaderRegistry
Closes gh-915
2024-02-20 07:18:34 +00:00
rstoyanchev
c5acccf770 Add DgsGraphQlClient
Closes gh-846
2024-02-19 19:41:23 +00:00
Brian Clozel
b727854fa5 Make SchemaMappingInspectorTests more resilient
This commit prevents false positive for test failures, when the ordering
of schema inspection statement varies.
2024-02-17 20:15:05 +01:00