Commit Graph

1355 Commits

Author SHA1 Message Date
Brian Clozel
a68324540b Merge branch '1.2.x' 2024-06-18 17:45:59 +02:00
Brian Clozel
e2a216f91f Switch to S01 token credentials for release 2024-06-18 17:44:23 +02:00
github-actions[bot]
45405a06b1 Update Antora Spring UI to v0.4.16
Closes gh-998
2024-06-18 16:43:57 +02:00
Brian Clozel
d734b8c6f5 Upgrade to Spring Security 6.3.1
Closes gh-1012
2024-06-18 16:39:42 +02:00
Brian Clozel
89652f8583 Upgrade to Spring Data 2024.0.1
Closes gh-1011
2024-06-18 16:39:28 +02:00
Brian Clozel
e5c8cec6ef Upgrade to Micrometer 1.13.1 and Tracing 1.13.1
Closes gh-1010
2024-06-18 16:39:01 +02:00
Brian Clozel
c2d568b09c Upgrade to Reactor 2023.0.7
Closes gh-1009
2024-06-18 16:38:21 +02:00
Brian Clozel
946d2c0d9b Upgrade to Spring Framework 6.1.9
Closes gh-1008
2024-06-18 16:37:32 +02:00
Spring Builds
fa4c663de6 Next development version (v1.2.8-SNAPSHOT) 2024-06-18 14:32:18 +00:00
Brian Clozel
e86c3bd31a Merge branch '1.2.x' 2024-06-18 16:23:47 +02: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
rstoyanchev
635066436e Correct order of authentication resolvers
Closes gh-982
2024-06-18 06:36:11 +01:00
rstoyanchev
ac720eb9a2 Polishing in AuthenticationPrincipalArgumentResolverTests 2024-06-13 16:03:00 +01:00
rstoyanchev
e00e10c742 Use ReactiveAdapterRegistry for return type checks
See gh-991
2024-06-12 12:20:42 +01:00
rstoyanchev
3ea4b38ace Support Flux for batched entities query
Closes gh-991
2024-06-12 09:45:34 +01:00
rstoyanchev
aae19d388a Refactoring in EntitiesDataFetcher
See gh-991
2024-06-12 09:45:12 +01:00
rstoyanchev
43f41d2e3d Polishing in EntitiesDataFetcher/HandlerMethod
See gh-991
2024-06-11 18:25:25 +01:00
rstoyanchev
22bbc860db Minor refactoring in ContextValueMethodArgumentResolver
See gh-988
2024-06-11 12:50:42 +01:00
rstoyanchev
1d97586ffd Apply ReactiveAdapterRegistry to return values
CoroutinesUtils#invokeSuspendingFunction in adapts return values to Mono
and Flux in Kotlin. However, Flow methods don't have to be suspending
functions. This change ensures that ReactiveAdapterRegistry is applied
wherever return values are handled.

Closes gh-988
2024-06-11 12:50:42 +01:00
Brian Clozel
a9a8d0b745 Add fragments support in GraphQlTester
This commit adds support for GraphQL fragments with `GraphQlTester`.
Fragments allow to avoid repetition in GraphQL requests by reusing
field selection sets.

For example, the "releases" fragment can be reused in multiple queries
and make the overall document shorter:

```
query frameworkReleases {
  project(slug: "spring-framework") {
    name
    ...releases
  }
}
query graphqlReleases {
  project(slug: "spring-graphql") {
    name
    ...releases
  }
}

fragment releases on Project {
  releases {
    version
  }
}
```

With this change, `GraphQlTester` accepts fragments as `String` or can
load them by their name using the configured `DocumentSource`, similarly
to the document support.

Closes gh-964
2024-06-03 18:27:19 +02:00
rstoyanchev
43c32dd2e4 Replace use of deprecated methods in tests 2024-06-03 12:54:26 +01:00
rstoyanchev
2c6ef91dc0 Polishing contribution
Closes gh-983
2024-06-03 12:42:32 +01:00
peter royal
45af593668 Skip TrivialDataFetcher in ContextDataFetcherDecorator
The `applyDecorator` method is working to exclude things from
graphql-java. The TrivialDataFetcher interface is used to know when
to perform instrumentation and is a part of the public SPI and
should be preserved.

See gh-983
2024-06-03 12:31:57 +01:00
Brian Clozel
f3b7861127 Add missing matching pattern attribute
Prior to this commit, we introduced in gh-906 custom `RequestPredicates`
for faster and more efficient matching. These custom WebFlux and MVC
predicates did not set the matching `PathPattern` as a request attribute
for positive matches. This value is used by observability conventions
for metrics and traces KeyValues; as a result, observation metadata is
missing the "uri" metadata and is using the "UNKNOWN" value instead.

This commit adds the missing request attribute in our custom request
predicates.

Fixes gh-987
2024-06-01 10:07:04 +02:00
github-actions[bot]
6b3e277722 Update Antora Spring UI to v0.4.15 2024-05-28 10:02:49 +00:00
github-actions[bot]
3175b3a19c Update Antora Spring UI to v0.4.15 2024-05-28 10:02:45 +00:00
Brian Clozel
1ec66ddee8 Add workflow for automating Antora UI upgrades 2024-05-27 17:29:09 +02:00
rstoyanchev
46b03c3291 Fix link to samples
See gh-208
2024-05-23 17:30:27 +01:00
rstoyanchev
c35fc08783 Fix link to samples
See gh-208
2024-05-23 17:27:30 +01:00
rstoyanchev
54e1710bb5 Update Samples section of reference
See gh-208
2024-05-23 17:14:52 +01:00
rstoyanchev
351ce9fbd5 Update Samples section of reference
See gh-208
2024-05-23 17:14:18 +01:00
Spring Builds
da473ca00b Next development version (v1.3.1-SNAPSHOT) 2024-05-21 12:37:18 +00:00
rstoyanchev
5609aff32e Upgrade dependencies
Closes gh-976, gh-977, gh-978, gh-979
2024-05-21 10:41:22 +01:00
rstoyanchev
97be2d92e0 Upgrade to GraphQL Java 22.1
Closes gh-975
2024-05-21 09:37:22 +01:00
rstoyanchev
4d2cde83e4 Polishing contribution
Closes gh-969
2024-05-21 08:38:40 +01:00
kutlueren
1318ca4316 Allow Map of variables in GraphQlTester
See gh-969
2024-05-21 07:03:15 +01:00
rstoyanchev
987f88d22d Merge branch '1.2.x' 2024-05-20 16:57:45 +01:00
rstoyanchev
6d9a8a2b74 Forward compatibility with GraphQL Java 21
Closes gh-974
2024-05-20 16:55:23 +01:00
rstoyanchev
84dac20b7b Fix compiler "deprecation" warnings 2024-05-20 16:33:46 +01:00
Dariusz Kuc
4e53faf63b Upgrade federation-jvm to 5.0.0
Closes gh-972

Federation JVM v5 is now using `graphql-java` v22 which caused following breaking changes in behavior

- Apollo `CacheControlInstrumentation` - was using old deprecated instrumentation methods so old version will not work with latest `spring-graphql` version
- there was a breaking change in the schema printing behavior of `@deprecated` information - previously it was always included regardless whether printed schema was filtering  `@deprecated` directive definition. This is an issue for folks relying on self-managed Federation that uses `_service { sdl }` endpoint to obtain subgraph schemas as the supergraph schema would no longer include any deprecation information.
2024-05-20 16:29:59 +01:00
rstoyanchev
55482cca1a Fix checkstyle issue 2024-05-20 13:46:35 +01:00
rstoyanchev
320bce7348 Merge branch '1.2.x' 2024-05-20 13:40:42 +01:00
rstoyanchev
33bdea9556 Consistent catch handling in InvocableHandlerMethodSupport
Closes gh-973
2024-05-20 13:11:20 +01:00