neo4j-labs / neodash

NeoDash - a Dashboard Builder for Neo4j
https://neo4j.com/labs/neodash/
Apache License 2.0
400 stars 129 forks source link

NeoDash unable to load Dashboard from Neo4j Node #776

Closed WiseGeorge closed 5 months ago

WiseGeorge commented 5 months ago

I am attempting to load a saved dashboard from Neo4j into the NeoDash platform. However, I am encountering an error message that states, “Unable to load dashboard. A dashboard with the provided name could not be found.” I have verified that all configurations are correctly set. I am currently using NeoDash version 2.4.2 and Neo4j version 4.4.30 Community Edition. Here is my current configuration:

{
  // Single Sign-On (SSO) settings
  "ssoEnabled": false,
  "ssoProviders": [],
  "ssoDiscoveryUrl": "",

  // Standalone mode settings
  "standalone": true,
  "standaloneProtocol": "neo4j",
  "standaloneHost": "localhost",
  "standalonePort": "7687",
  "standaloneDatabase": "neo4j",
  "standaloneDashboardName": "DashboardName (Node label)",
  "standaloneDashboardDatabase": "neo4j",
  "standaloneDashboardURL": "",

  // Additional standalone mode settings
  "standaloneAllowLoad": true,
  "standaloneLoadFromOtherDatabases": true,
  "standaloneMultiDatabase": true,
  "standaloneDatabaseList": "neo4j",

  // Logging settings
  "loggingMode": "0",
  "loggingDatabase": "logs",

  // Custom header for the application
  "customHeader": "Custom Header"
}
WiseGeorge commented 5 months ago

Solved Issue

I’m delighted to share that I’ve resolved an issue that was initially a misunderstanding on my part. I was under the impression that the dashboard name referred to the label, when in fact, it refers to the ‘Name’ provided in the ‘Dashboard Title’ section. In an attempt to rectify the issue, I even changed the label of the node, which, in hindsight, was not the correct approach.

The solution lies in setting the ‘d.title’ of the Dashboard node in the ‘config.json’. Here’s the part of the code where the dashboard is loaded:

MATCH (d:_Neodash_Dashboard) WHERE d.title = $name RETURN d.content as dashboard ORDER by d.date DESC LIMIT 1

I hope this solution can assist others who might encounter the same problem. Happy coding!