Skip to content

Conversation

msenechal
Copy link
Contributor

Description

Note

Adding a created_at property on the :Session and :Message node to enable tracking of message history, feedback loops as well as analytics purposes.

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Documentation update
  • Project configuration change

Complexity

Note

Very low

Complexity:

How Has This Been Tested?

  • Unit tests
  • E2E tests
  • Manual tests

Checklist

The following requirements should have been met (depending on the changes in the branch):

  • Documentation has been updated
  • Unit tests have been updated
  • E2E tests have been updated
  • Examples have been updated
  • New files have copyright header
  • CLA (https://neo4j.com/developer/cla/) has been signed
  • CHANGELOG.md updated if appropriate

@msenechal msenechal requested a review from a team as a code owner May 28, 2025 08:53
@@ -25,7 +25,7 @@
Neo4jMessageHistoryModel,
)

CREATE_SESSION_NODE_QUERY = "MERGE (s:`{node_label}` {{id:$session_id}})"
CREATE_SESSION_NODE_QUERY = "MERGE (s:`{node_label}` {{id:$session_id, created_at: datetime()}})"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the property be createdAt to follow Neo4j convention? Otherwise looks good to me!

Copy link
Contributor

@stellasia stellasia left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution Morgan!

@stellasia stellasia merged commit 18963b2 into neo4j:main Jun 9, 2025
7 checks passed
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.

2 participants