Skip to content

Commit

Permalink
Merge pull request #1995 from Netflix/feature/legacy-module-removal
Browse files Browse the repository at this point in the history
Remove legacy modules
  • Loading branch information
paulbakker authored Dec 11, 2024
2 parents 4e46433 + b29d2e0 commit 62d589f
Show file tree
Hide file tree
Showing 209 changed files with 5,430 additions and 18,894 deletions.
8 changes: 3 additions & 5 deletions graphql-dgs-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ dependencies {
testImplementation("org.springframework.boot:spring-boot-starter-webflux")
testImplementation("com.graphql-java:graphql-java-extended-scalars")
testImplementation("io.projectreactor:reactor-test")
testImplementation(project(":graphql-dgs-subscriptions-graphql-sse-autoconfigure"))
testImplementation(project(":graphql-dgs-subscriptions-sse-autoconfigure"))
testImplementation(project(":graphql-dgs-subscriptions-websockets-autoconfigure"))
testImplementation(project(":graphql-dgs-spring-boot-oss-autoconfigure"))
testImplementation(project(":graphql-dgs-spring-webmvc-autoconfigure"))

testImplementation(project(":graphql-dgs-spring-graphql-starter"))
testImplementation(project(":graphql-dgs-spring-graphql-starter-test"))
}
757 changes: 436 additions & 321 deletions graphql-dgs-client/dependencies.lock

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class GraphqlSSESubscriptionGraphQLClient(
webClient
.post()
.uri(url)
.contentType(MediaType.APPLICATION_JSON)
.bodyValue(jsonPayload)
.accept(MediaType.TEXT_EVENT_STREAM)
.retrieve()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ import java.util.*
* This client can be used for servers which are following the subscriptions-transport-sse specification, which can be found here:
* https://github.com/CodeCommission/subscriptions-transport-sse
*/
@Deprecated(
"This client uses the obsolete subscriptions-transport-sse protocol. Use GraphqlSSESubscriptionGraphQLClient to use the newer graphql-sse spec https://github.com/graphql/graphql-over-http/blob/d51ae80d62b5fd8802a3383793f01bdf306e8290/rfcs/GraphQLOverSSE.md.",
ReplaceWith("GraphqlSSESubscriptionGraphQLClient"),
DeprecationLevel.WARNING,
)
class SSESubscriptionGraphQLClient(
private val url: String,
private val webClient: WebClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ import java.util.concurrent.atomic.AtomicReference
* Reactive client implementation using websockets and the subscription-transport-ws protocol:
* https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md
*/
@Deprecated(
"This client is using the deprecated subscription-transport-ws protocol, which is no longer supported by DGS servers. Use Spring GraphQL WebSocketGraphQlClient instead. https://docs.spring.io/spring-graphql/reference/client.html#client.websocketgraphqlclient",
level = DeprecationLevel.WARNING,
)
class WebSocketGraphQLClient(
private val client: OperationMessageWebSocketClient,
private val acknowledgementTimeout: Duration = DEFAULT_ACKNOWLEDGEMENT_TIMEOUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@ package com.netflix.graphql.dgs.client
import com.netflix.graphql.dgs.DgsComponent
import com.netflix.graphql.dgs.DgsQuery
import com.netflix.graphql.dgs.DgsTypeDefinitionRegistry
import com.netflix.graphql.dgs.autoconfig.DgsAutoConfiguration
import com.netflix.graphql.dgs.subscriptions.graphql.sse.DgsGraphQLSSEAutoConfig
import com.netflix.graphql.dgs.webmvc.autoconfigure.DgsWebMvcAutoConfiguration
import com.netflix.graphql.dgs.test.EnableDgsTest
import graphql.language.FieldDefinition
import graphql.language.ObjectTypeDefinition
import graphql.language.TypeName
import graphql.schema.idl.TypeDefinitionRegistry
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.boot.test.web.server.LocalServerPort
Expand All @@ -39,10 +36,10 @@ import org.springframework.http.HttpMethod
import org.springframework.web.client.RestTemplate

@SpringBootTest(
classes = [DgsAutoConfiguration::class, DgsWebMvcAutoConfiguration::class, WebClientGraphQLClientTest.TestApp::class],
classes = [WebClientGraphQLClientTest.TestApp::class],
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
)
@EnableAutoConfiguration(exclude = [DgsGraphQLSSEAutoConfig::class])
@EnableDgsTest
class CustomGraphQLClientTest {
@Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN")
@LocalServerPort
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,13 @@ package com.netflix.graphql.dgs.client
import com.netflix.graphql.dgs.DgsComponent
import com.netflix.graphql.dgs.DgsQuery
import com.netflix.graphql.dgs.DgsTypeDefinitionRegistry
import com.netflix.graphql.dgs.autoconfig.DgsAutoConfiguration
import com.netflix.graphql.dgs.subscriptions.graphql.sse.DgsGraphQLSSEAutoConfig
import com.netflix.graphql.dgs.webmvc.autoconfigure.DgsWebMvcAutoConfiguration
import com.netflix.graphql.dgs.test.EnableDgsTest
import graphql.language.FieldDefinition
import graphql.language.ObjectTypeDefinition
import graphql.language.TypeName
import graphql.schema.idl.TypeDefinitionRegistry
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.boot.test.web.server.LocalServerPort
Expand All @@ -37,10 +34,10 @@ import org.springframework.web.reactive.function.client.toEntity
import reactor.test.StepVerifier

@SpringBootTest(
classes = [DgsAutoConfiguration::class, DgsWebMvcAutoConfiguration::class, WebClientGraphQLClientTest.TestApp::class],
classes = [WebClientGraphQLClientTest.TestApp::class],
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
)
@EnableAutoConfiguration(exclude = [DgsGraphQLSSEAutoConfig::class])
@EnableDgsTest
class CustomReactiveGraphQLClientTest {
@LocalServerPort
var port: Int? = null
Expand Down
Loading

0 comments on commit 62d589f

Please sign in to comment.