Skip to content

feat: add experimental GraphQL incremental delivery (G5) - #1596

Merged
jlouvel merged 6 commits into
feat/graphql-g4-websocket-serverfrom
feat/graphql-g5-incremental
Nov 1, 2026
Merged

jlouvel merged 6 commits into
feat/graphql-g4-websocket-serverfrom
feat/graphql-g5-incremental

fix: read the body of a GraphQL request refused with 406

cfdefaf
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 1, 2026 in 53s

Annotations

Check warning on line 192 in org.restlet/src/test/java/org/restlet/representation/MultipartStreamTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwtduamAgeRGv2F&open=AaGK2AwtduamAgeRGv2F&pullRequest=1596

Check warning on line 223 in org.restlet/src/main/java/org/restlet/representation/MultipartStreamRepresentation.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwfduamAgeRGv2A&open=AaGK2AwfduamAgeRGv2A&pullRequest=1596

Check warning on line 159 in org.restlet/src/test/java/org/restlet/representation/MultipartStreamTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwtduamAgeRGv2G&open=AaGK2AwtduamAgeRGv2G&pullRequest=1596

Check warning on line 92 in org.restlet.ext.graphql/src/main/java/org/restlet/ext/graphql/internal/GraphqlIncrementalStream.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "e" with an unnamed pattern.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2Ax_duamAgeRGv2Q&open=AaGK2Ax_duamAgeRGv2Q&pullRequest=1596

Check warning on line 220 in org.restlet/src/main/java/org/restlet/representation/MultipartStreamRepresentation.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwfduamAgeRGv1_&open=AaGK2AwfduamAgeRGv1_&pullRequest=1596

Check warning on line 165 in org.restlet/src/test/java/org/restlet/representation/MultipartStreamTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGQ4a8M7JDpWu2qrOm_&open=AaGQ4a8M7JDpWu2qrOm_&pullRequest=1596

Check warning on line 418 in org.restlet.ext.graphql/src/test/java/org/restlet/ext/graphql/GraphqlIncrementalTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertNotNull instead.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AyOduamAgeRGv2T&open=AaGK2AyOduamAgeRGv2T&pullRequest=1596

Check failure on line 192 in org.restlet.ext.graphql/src/main/java/org/restlet/ext/graphql/GraphqlIncrementalPublisher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwzduamAgeRGv2L&open=AaGK2AwzduamAgeRGv2L&pullRequest=1596

Check warning on line 330 in org.restlet.ext.graphql/src/main/java/org/restlet/ext/graphql/GraphqlIncrementalPublisher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "e" with an unnamed pattern.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwzduamAgeRGv2N&open=AaGK2AwzduamAgeRGv2N&pullRequest=1596

Check warning on line 31 in org.restlet/src/main/java/org/restlet/representation/MultipartStreamRepresentation.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This class has 6 parents which is greater than 5 authorized.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwfduamAgeRGv1-&open=AaGK2AwfduamAgeRGv1-&pullRequest=1596

Check warning on line 83 in org.restlet.ext.graphql/src/main/java/org/restlet/ext/graphql/internal/GraphqlIncrementalStream.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the record pattern instead of this pattern match variable.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2Ax_duamAgeRGv2P&open=AaGK2Ax_duamAgeRGv2P&pullRequest=1596

Check warning on line 345 in org.restlet.ext.graphql/src/test/java/org/restlet/ext/graphql/GraphqlIncrementalTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this String concatenation with Text block.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGQp7RTQ4iSPc4Vzhhd&open=AaGQp7RTQ4iSPc4Vzhhd&pullRequest=1596

Check warning on line 66 in org.restlet/src/main/java/org/restlet/representation/MultipartStreamRepresentation.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Excessive logic in this "pre-construction" phase makes the code harder to read and maintain.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwfduamAgeRGv2E&open=AaGK2AwfduamAgeRGv2E&pullRequest=1596

Check warning on line 90 in org.restlet.ext.graphql/src/test/java/org/restlet/ext/graphql/GraphqlIncrementalTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "e" with an unnamed pattern.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AyOduamAgeRGv2S&open=AaGK2AyOduamAgeRGv2S&pullRequest=1596

Check warning on line 325 in org.restlet.ext.graphql/src/test/java/org/restlet/ext/graphql/GraphqlIncrementalTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this String concatenation with Text block.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGQp7RTQ4iSPc4Vzhhc&open=AaGQp7RTQ4iSPc4Vzhhc&pullRequest=1596

Check warning on line 80 in org.restlet.ext.graphql/src/main/java/org/restlet/ext/graphql/internal/GraphqlIncrementalStream.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the chain of if/else with a switch expression.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2Ax_duamAgeRGv2O&open=AaGK2Ax_duamAgeRGv2O&pullRequest=1596

Check warning on line 311 in org.restlet.ext.graphql/src/test/java/org/restlet/ext/graphql/GraphqlIncrementalTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "Thread.sleep()".

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGQp7RTQ4iSPc4Vzhha&open=AaGQp7RTQ4iSPc4Vzhha&pullRequest=1596

Check warning on line 162 in org.restlet/src/test/java/org/restlet/representation/MultipartStreamTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwtduamAgeRGv2H&open=AaGK2AwtduamAgeRGv2H&pullRequest=1596

Check warning on line 231 in org.restlet/src/main/java/org/restlet/representation/MultipartStreamRepresentation.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwfduamAgeRGv2C&open=AaGK2AwfduamAgeRGv2C&pullRequest=1596

Check warning on line 226 in org.restlet/src/test/java/org/restlet/representation/MultipartStreamTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGQ4a8M7JDpWu2qrOnB&open=AaGQ4a8M7JDpWu2qrOnB&pullRequest=1596

Check failure on line 275 in org.restlet.ext.graphql/src/main/java/org/restlet/ext/graphql/GraphqlIncrementalPublisher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwzduamAgeRGv2M&open=AaGK2AwzduamAgeRGv2M&pullRequest=1596

Check warning on line 321 in org.restlet.ext.graphql/src/test/java/org/restlet/ext/graphql/GraphqlIncrementalTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this String concatenation with Text block.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGQp7RTQ4iSPc4Vzhhb&open=AaGQp7RTQ4iSPc4Vzhhb&pullRequest=1596

Check warning on line 265 in org.restlet/src/test/java/org/restlet/representation/MultipartStreamTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwtduamAgeRGv2I&open=AaGK2AwtduamAgeRGv2I&pullRequest=1596

Check warning on line 31 in org.restlet/src/main/java/org/restlet/representation/MultipartStreamRepresentation.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Override the "equals" method in this class.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGK2AwfduamAgeRGv2D&open=AaGK2AwfduamAgeRGv2D&pullRequest=1596

Check warning on line 302 in org.restlet/src/test/java/org/restlet/representation/MultipartStreamTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGQ4a8M7JDpWu2qrOnC&open=AaGQ4a8M7JDpWu2qrOnC&pullRequest=1596