Commit Graph

1179 Commits

Author SHA1 Message Date
rstoyanchev
6d9a8a2b74 Forward compatibility with GraphQL Java 21
Closes gh-974
2024-05-20 16:55:23 +01:00
rstoyanchev
33bdea9556 Consistent catch handling in InvocableHandlerMethodSupport
Closes gh-973
2024-05-20 13:11:20 +01:00
rstoyanchev
91b6beb2b2 Fix test failure only seen on CI
The failure was in GraphQlWebSocketHandlerTests for WebMvc.
the subscriptionExists test checks that a second subscription with
same id will close the connection with 4409. It also checks that
2 messages have arrived (connection_init) and one message from the
first subscription. However, since message handling as async,
handling of the two subscriptions is concurrent, and the connection
may be closed before the first subscription is able to send.

This commit adjusts the message checks to be more lenient and
accept between 1 and 2 messages.
2024-05-20 12:23:36 +01:00
rstoyanchev
aa1ee77867 Document how to configure custom ExecutionStrategy
Closes gh-832
2024-05-18 13:05:02 +01:00
rstoyanchev
7dd9cf54ca Support application/graphql for request body
Closes gh-948
2024-04-22 12:30:34 +01:00
rstoyanchev
bf9c584919 Minor refactoring in HTTP handler tests
Change WebFlux handler to actually decode from JSON rather
than take an already decoded SerializableGraphQlRequest.

See gh-948
2024-04-22 12:30:05 +01:00
Brian Clozel
8eb3cfd19d Update build status badge in README 2024-04-16 17:31:44 +02:00
Brian Clozel
2cb43e9368 Polishing
See gh-863
2024-04-16 17:26:00 +02:00
Brian Clozel
1d98f9b45f Document schema Namespacing with annotated controllers
Closes gh-863
2024-04-16 17:16:44 +02:00
Brian Clozel
2a54ef486d Apply checkstyle changes to spring-graphql-test
See gh-943
2024-04-04 22:06:11 +02:00
Brian Clozel
4f1f0a2b20 Apply checkstyle changes to spring-graphql-docs
See gh-943
2024-04-04 22:05:38 +02:00
Brian Clozel
163027e525 Apply checkstyle changes to spring-graphql
See gh-943
2024-04-04 22:05:00 +02:00
Brian Clozel
b66eb64241 Re-enable checkstyle configuration in project
See gh-943
2024-04-04 22:04:33 +02: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
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
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
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
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
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
Spring Builds
9d735b9c94 Next development version (v1.2.6-SNAPSHOT) 2024-02-21 08:55:43 +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
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
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
Brian Clozel
c72415f361 Upgrade optional dependencies 2024-02-17 19:08:59 +01:00
Brian Clozel
05947f92e0 Upgrade to Spring Security 6.1.7
Closes gh-913
2024-02-17 19:08:37 +01:00
Brian Clozel
5b1be8f556 Upgrade to Spring Data 2023.0.9
Closes gh-912
2024-02-17 19:08:05 +01:00
Brian Clozel
ad63bad767 Upgrade to Micrometer 1.11.9 and Tracing 1.1.10
Closes gh-911
2024-02-17 19:05:46 +01:00
Brian Clozel
375c26598c Upgrade to Reactor 2022.0.16
Closes gh-910
2024-02-17 19:03:57 +01:00
Brian Clozel
f054149e35 Upgrade to Spring Framework 6.0.17
Closes gh-909
2024-02-17 19:01:25 +01:00
Brian Clozel
698ca0356c Upgrade to Kotlin 1.9.22
Closes gh-908
2024-02-17 19:00:27 +01:00
rstoyanchev
dab10e7383 Apply default ScrollSubrange correctly
The defaults are now applied before the call to ScrollSubrange#create.
After is too late given that for offset positions, the direction may
switch from backward to forward.

Closes gh-900
2024-02-14 13:17:26 +00:00
Brian Clozel
5248a3253b Polish SerializableGraphQlRequest for GraalVM support
This commit improves the `SerializableGraphQlRequest` by declaring its
reflection usage for GraalVM native applications.

See gh-905
2024-02-14 14:05:36 +01:00
rstoyanchev
fb1f0ee0e7 Deserialize HTTP request body to POJO
Closes gh-905
2024-02-08 20:54:55 +00:00
rstoyanchev
1736d2abf0 WebMvc handler skips ASYNC if possible
Closes gh-904
2024-02-08 11:14:38 +00:00
rstoyanchev
3279332901 SchemaMappingInspector accepts Map of registrations
Closes gh-894
2024-01-31 20:02:20 +00:00
rstoyanchev
78f7df2736 Consistently check errors in GraphQlTester
Closes gh-891
2024-01-30 09:24:26 +00:00
Nils Hartmann
b37a06bf59 ExecutionGraphQlService instead of GraphqlService
See gh-877
2024-01-26 09:59:53 +00:00
Brian Clozel
e3f672e019 Track 1.2.x branch in CI pipeline 2024-01-26 10:09:53 +01:00
Brian Clozel
311e5647b4 Upgrade CI to JDK 17.0.10+13 and 21.0.2+14 2024-01-26 10:06:06 +01:00
Brian Clozel
9908707430 Upgrade CI to Docker 25.0.1 2024-01-26 10:05:06 +01:00
Brian Clozel
5b07edc81d Upgrade CI to Ubunutu Jammy 20240111 2024-01-26 10:04:38 +01:00