azure-data-explorer-datasource icon indicating copy to clipboard operation
azure-data-explorer-datasource copied to clipboard

Set query database to default if unspecified

Open aangelisc opened this issue 1 year ago • 3 comments

If a query is missing the database property the current behaviour will cause that query to fail. This change will set the database property on the query to the data source default if available.

Fixes #615

aangelisc avatar Apr 16 '24 10:04 aangelisc

Use the following command to run this PR with Docker at http://localhost:3000:

docker run --rm -p 3000:3000 grafana/plugin-builds:9116b23e435c16cf5808766e66a6bf847194b981pre

github-actions[bot] avatar Apr 16 '24 10:04 github-actions[bot]

@bossinc that's a good call-out. The only reason I'm thinking this is worthwhile is to solve the original issue of not wanting to specify the database in generated dashboards. Maybe we should add a default cluster option too?

aangelisc avatar Apr 19 '24 19:04 aangelisc

@bossinc that's a good call-out. The only reason I'm thinking this is worthwhile is to solve the original issue of not wanting to specify the database in generated dashboards. Maybe we should add a default cluster option too?

@aangelisc lets talk about this next week. I am mixed about how we are doing defaults

bossinc avatar Apr 19 '24 20:04 bossinc