oslabs-beta / QueryIQ

A developer tool displaying visualizations for overall database metrics and query metrics for PostgreSQL databases
https://www.query-iq.com/
65 stars 2 forks source link

Invalid Datasource Credentials still create datasource in Grafana #86

Open jojecameron opened 1 year ago

jojecameron commented 1 year ago

Invalid Datasource Credentials still create datasource & dashboard in Grafana Instance

What I expected to happen:

Attempting to connect to a database using invalid connection credentials should not create a datasource and dashboard in grafana, instead the datasource credentials should be verified as a valid connection before making the request to grafana.

Steps to reproduce:


  1. Press connect to Database
  2. Provide valid Grafana credentials
  3. Provide invalid database credentials
  4. Press connect
  5. Page will return popup with 'Failed to connect'
  6. Go to grafana instance, datasource and dashboards are created even for invalid credentials