Repository navigation
Conversation
|
Security review (golang-security skill, review mode) The skill reviewed the changed Go files. The PR changes No issues found. Security review: ✅ no issues found |
|
Conventions review (AGENTS.md gates) Reviewed the Desktop 2.3 No issues found. Conventions review: ✅ no issues found |
…optional int64 unix-ms and render created_at as RFC3339 UTC
…to RFC3339 formatter as desktopclient.FormatUnixMsRFC3339
036ff41 to
a22c481
Compare
|
Security review (golang-security skill, review mode) Analysed the PR's Go changes: No issues found. Security review: ✅ no issues found |
Oplane Security ReviewOplane identified security requirements relevant to this PR and checked the implementation against them. All requirements are satisfied. Review the generated threat model.
Change comment settings · Set up Oplane in your agent · Workflow guidance |
Summary
Fix (CLI-242):
desktop listanddesktop connection listfailed against Neo4j Desktop 2.3, which sends connectioncreatedAtas an integer unix-ms timestamp (neo4j-desktop-2 PR #355) while the CLI modeled it as a string — breaking JSON decode of the whole list. Stacked on #256.Changes
Connection.CreatedAtis now an optionalint64(json:"createdAt,omitempty") on the wire struct, matching howProject.CreatedAtis already modeledConnectionOutput.created_atrenders RFC3339 UTC and is omitted when absent;Connection.ToOutputis now an explicit field-by-field projection (no longer a straight struct conversion)createdAtpayloadsdesktopclient.FormatUnixMsRFC3339is the one unix-ms → RFC3339 implementation; the project command's private duplicate was deleted and both its call sites rewiredUser-facing impact
neo4j-cli desktop listandneo4j-cli desktop connection listwork again against Desktop 2.3 instead of failing with a JSON decode error. Connectioncreated_atnow appears in JSON/TOON/table output as an RFC3339 UTC timestamp (omitted when Desktop doesn't send one).Example usage
$ neo4j-cli desktop connection list --format json{ "connections": [ { "id": "…", "name": "…", "connection_uri": "neo4j://localhost:7687", "created_at": "2026-04-17T10:00:00Z" } ] }This description was auto generated