credativ / plutono

Fork of Grafana keeping the Apache License
Apache License 2.0
5 stars 1 forks source link

NodeGraph fails to display anything with Postgres datasource #78

Open PhilippMatthes opened 1 day ago

PhilippMatthes commented 1 day ago

Due to the following line, all edges and nodes are filtered from the fetched tables when using the Postgres datasource:

https://github.com/credativ/plutono/blob/9ea56e296c353b4ab53eebe0db78f01aa802fb81/packages/plutono-ui/src/components/NodeGraph/useCategorizeFrames.ts#L11

frame.meta?.preferredVisualisationType cannot be added in any way through the web application when fetching the data from Postgres, while it is present e.g. with the TestDB datasource.

See Grafana upstream:

https://github.com/grafana/grafana/blob/4e6a7121ed9267cdf637b55438aac2a6e7530532/public/app/plugins/panel/nodeGraph/utils.ts#L569-L576

Here the check is performed less aggressively and also considers that the data may come from a table where the refId describes the type of data (nodes or edges).

PhilippMatthes commented 1 day ago

Working on a solution rn and will open a PR soon.