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

Bump spring-boot-starter-parent from 3.3.5 to 3.4.0 #161

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

scordio
Copy link
Collaborator

@scordio scordio commented Nov 22, 2024

No description provided.

@meistermeier
Copy link
Collaborator

Because we (as in Neo4j) are planning to release the Neo4j 5 LTS version in a few weeks, I think it is good to bump the id function to elementId (finally). We sticked with the -for Neo4j 5- deprecated id function because the latest LTS version was still Neo4j 4.

Comment on lines -86 to +85
when(idDescription.asIdExpression(anyString())).thenReturn(Functions.id(Cypher.anyNode()));
when(idDescription.asIdExpression(anyString())).thenReturn(Cypher.anyNode().elementId());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here, I had to find an alternative to Functions.id because it was no longer accessible with the Neo4J version that Spring Boot is now pulling, but I have to admit I didn't go after all the details.

Is this related to what you just mentioned, @meistermeier? Anything you would do differently?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, it is from a product perspective very different. The elementId is a complete new (internal) field introduced in Neo4j 5 as a replacement for the id.
From a dependency perspective the update might have pulled in new major version of the Cypher DSL (sorry that I have missed this) where we tried to unify the entry point to Cypher.... for operations and functions.
The only difference, if users don't specify the right Neo4j dialect for the CypherDSL (Neo4j_5) is that the elementId function will create a fallback to toString(id(node)) (no index) instead of elementId(node) (index support) in the resulting Cypher statement.
It's ok with me because a) we should really switch to elementId and b) it is documented in the CypherDSL. (https://neo4j.github.io/cypher-dsl/2024.2.0/#dialect-support)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the explanation, @meistermeier! I wait then for your formal approval before merging these changes 🙂

Copy link
Collaborator

@meistermeier meistermeier left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. Just wanted to check something.

@scordio scordio merged commit 20a89f6 into main Nov 25, 2024
2 checks passed
@scordio scordio deleted the spring-batch-neo4j/spring-boot-3.4.0 branch November 25, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants