Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeGraph fails to display anything with Postgres datasource #78

Open
PhilippMatthes opened this issue Oct 25, 2024 · 1 comment · May be fixed by #79
Open

NodeGraph fails to display anything with Postgres datasource #78

PhilippMatthes opened this issue Oct 25, 2024 · 1 comment · May be fixed by #79

Comments

@PhilippMatthes
Copy link

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

const serviceMapFrames = series.filter((frame) => frame.meta?.preferredVisualisationType === 'nodeGraph');

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
Copy link
Author

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

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 a pull request may close this issue.

1 participant