1207 Commits

Author SHA1 Message Date
Brian Clozel
fb02c8b50b Next development version (v1.2.10-SNAPSHOT) 2024-10-22 14:04:55 +02:00
rstoyanchev
424db6616a Pass localContext only if available
See gh-1066
2024-10-21 18:33:23 +01:00
Brian Clozel
ad0e4c7abe Upgrade optional dependencies 2024-10-17 16:06:10 +02:00
Brian Clozel
70d49c350b Upgrade to Reactor 2022.0.22
Closes gh-1073
2024-10-17 16:05:43 +02:00
Brian Clozel
4584ca3d24 Upgrade to Spring Framework 6.0.23
Closes gh-1072
2024-10-17 16:05:15 +02:00
Brian Clozel
89249f751e Upgrade to Gradle 8.10.2 2024-10-17 15:52:26 +02:00
Brian Clozel
6849d3bf38 Propagate context to Dataloader in @BatchMapping
Prior to this commit, `@BatchMapping` controller methods would be
automatically registered as date fetchers delegating to data loader
calls. Those calls would not include the current local context or main
context. As a result, injecting the `BatchLoaderEnvironment` in the
controller method signature would not contain the `getKeyContext()`.

This commit ensures that dataloader calls not only use the current
source, but also the current local context/main context so that it will
be present in the key contexts map.

Fixes gh-1071
2024-10-17 12:30:37 +02:00
Brian Clozel
b8b93a0df5 Produce INTERNAL_ERROR observation outcome
Prior to this commit, the `DefaultExecutionRequestObservationConvention`
would only produce "INTERNAL_ERROR" outcomes if the response is null or
if an unresolved exception remains.

The `ExceptionResolversExceptionHandler` will catch all unresolved
exceptions and add them to the errors map with the
`ErorType.INTERNAL_ERROR` error type. This means that the
"INTERNAL_ERROR" outcome is never used.

This commit ensures that this outcome is also used if at least one
resolved error is of `ErorType.INTERNAL_ERROR`.

Fixes gh-1065
2024-10-09 12:25:43 +02:00
Brian Clozel
5ffe5122de Support application/graphql with charset information
Prior to this commit, gh-948 added a fallback support for the
"application/graphql" content-type sent by clients. This media type is
not widely used and advised against by the spec group.

This fallback checked for an exact match of the content type, not taking
into account potential media type parameters such as charset.

This commit ensure that a `MediaType#include` comparison is used to
trigger the fallback.

Fixes gh-1038
2024-07-26 15:40:44 +02:00
Brian Clozel
d0648895bc Next development version (v1.2.9-SNAPSHOT) 2024-07-16 12:04:40 +02:00
rstoyanchev
0cb95d030f Consistent logging in annotated exception handler
This commit aligns DEBUG logging of exceptions resolved via annotated
exception handler methods with ExceptionResolversExceptionHandler and
the reference documentation.

Closes gh-996
2024-07-15 11:34:57 +01:00
rstoyanchev
e43ef3a709 Polishing in exception handling
See gh-996
2024-07-15 11:34:25 +01:00
Brian Clozel
09680e1c84 Migrate all workflows to GitHub Actions
This commit completes the migration from Concourse to GitHub Actions,
adding the CI variants and release workflows.

Closes gh-1024
2024-07-11 16:50:02 +02:00
rstoyanchev
a6508f4114 Perform hasDataLoaderRegistrations check at runtime
Closes gh-1020
2024-07-04 12:48:17 +01:00
Brian Clozel
9965c0354a Fix online search in reference documentation
Fixes gh-1014
2024-06-18 19:14:13 +02:00
Brian Clozel
e2a216f91f Switch to S01 token credentials for release 2024-06-18 17:44:23 +02:00
Spring Builds
fa4c663de6 Next development version (v1.2.8-SNAPSHOT) 2024-06-18 14:32:18 +00:00
Brian Clozel
16151cce46 Upgrade to Spring Security 6.1.9
Closes gh-1007
2024-06-18 16:23:10 +02:00
Brian Clozel
29f71d0562 Upgrade to Spring Data 2023.0.12
Closes gh-1006
2024-06-18 16:22:48 +02:00
Brian Clozel
ba3874f191 Upgrade to Micrometer 1.11.12
Closes gh-1005
2024-06-18 16:22:15 +02:00
Brian Clozel
bb009f49f0 Upgrade to Reactor 2022.0.20
Closes gh-1004
2024-06-18 16:21:37 +02:00
Brian Clozel
b979f7901f Upgrade to Spring Framework 6.0.22
Closes gh-1003
2024-06-18 16:20:46 +02:00
github-actions[bot]
ce1dcfcb9d Update Antora Spring UI to v0.4.16 2024-06-18 16:09:16 +02:00
rstoyanchev
d4a6a73b1d Correct order of authentication resolvers
Closes gh-982
2024-06-18 06:37:31 +01:00
rstoyanchev
e369b12aa9 Polishing in AuthenticationPrincipalArgumentResolverTests 2024-06-18 06:37:20 +01:00
github-actions[bot]
3175b3a19c Update Antora Spring UI to v0.4.15 2024-05-28 10:02:45 +00:00
rstoyanchev
46b03c3291 Fix link to samples
See gh-208
2024-05-23 17:30:27 +01:00
rstoyanchev
54e1710bb5 Update Samples section of reference
See gh-208
2024-05-23 17:14:52 +01:00
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