Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow chaining statements to yielding calls. #964

Merged
merged 6 commits into from
May 27, 2024
Merged

Conversation

michael-simons
Copy link
Collaborator

No description provided.

@michael-simons
Copy link
Collaborator Author

Please test and add the new interface for those kinda calls / chains you are missing.

Copy link

sonarcloud bot commented Apr 11, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
76.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@michael-simons
Copy link
Collaborator Author

See spring-projects/spring-data-neo4j#2895

To get a build, use

 ./mvnw clean verify -Dcypher-dsl.version.old=2023.9.5 -Drevision=2024.0.0 -Dchangelist= -pl \!neo4j-cypher-dsl-examples/neo4j-cypher-dsl-examples-sdn6

@@ -79,7 +71,7 @@ public static FunctionInvocation id(@NotNull Node node) {
@NotNull @Contract(pure = true)
@Deprecated(since = "2023.3.0")
@SuppressWarnings({ "squid:S1133" }) // Yes, I promise, this will be removed at some point, but not yet.
public static FunctionInvocation id(@NotNull Relationship relationship) {
static FunctionInvocation id(@NotNull Relationship relationship) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could get already removed because there is no access to this method anymore, in contrast to the id(Node node) version that is used by the AbstractNode.

michael-simons and others added 5 commits May 27, 2024 18:08
Make the yielding call return statement, but that would require a major change. So use this opportunity to remove all teh deprecations.

Build will fail now as we did not make SDN aware of this in time (bummer)
…gListBasedPredicateFunction.java

Co-authored-by: Gerrit Meier <meistermeier@gmail.com>
…tStatementBuilder.java

Co-authored-by: Gerrit Meier <meistermeier@gmail.com>
Copy link

sonarcloud bot commented May 27, 2024

@michael-simons michael-simons merged commit 79e2344 into main May 27, 2024
5 checks passed
@michael-simons michael-simons deleted the feat/chaining branch May 27, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants