Skip to content

fix: filter invalid keys from node change events#187

Merged
dhrudevalia merged 5 commits intoneo4j:mainfrom
dhrudevalia:null-constraint-bug-fix
Oct 7, 2024
Merged

fix: filter invalid keys from node change events#187
dhrudevalia merged 5 commits intoneo4j:mainfrom
dhrudevalia:null-constraint-bug-fix

Conversation

@dhrudevalia
Copy link
Contributor

@dhrudevalia dhrudevalia commented Oct 3, 2024

Issue 1

If a Streams event contains a constraint that references a property that does not exist in the schema the resulting node operation is not completed.

Issue 2

If no valid keys are provided in a node event a cypher query which has no filtering is produced which can be dangerous.

Fix

  • Filter keys/constraints that do not contain a property in the schema
  • Only create cypher node statement if a valid key value pair exist

@dhrudevalia dhrudevalia requested a review from a team as a code owner October 3, 2024 16:59
@dhrudevalia dhrudevalia self-assigned this Oct 3, 2024
@dhrudevalia dhrudevalia requested a review from Emrehzl94 October 4, 2024 13:02
@dhrudevalia dhrudevalia enabled auto-merge (squash) October 7, 2024 08:20
@dhrudevalia dhrudevalia merged commit 855f7eb into neo4j:main Oct 7, 2024
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.

4 participants