Describe the bug
The datasource validates and saves successfully, but when refreshing the page the "Enable" switch from Direct DB connection appears turned off.
Screenshots

saved.
Then F5:

Software versions
| Grafana | Zabbix | Grafana-Zabbix Plugin |
| ------- | ------ | --------------------- |
| 6.1.4 | 4.2.1 | 3.10.2 |
Confirm same issue
Grafana - Grafana v5.4.2 (d812109)
Zabbix - 3.4.15
Grafana-Zabbix Plugin - 3.10.1, 3.10.2
On 3.10.0 work
Can confirm the same with MySQL
Grafana - v6.1.6 (cf9cb45)
Zabbix - 4.2.1.
Grafana-Zabbix Plugin - 3.10.2
same for PSQL
Grafana - v6.0.2
Zabbix - 4.0.7
Plugin - 3.10.2
same for InfluxDB FYI
Yes, some issue.
Grafana - v6.1.6
Zabbix - 4.2.1
grafana-zabbix - 3.10.2
Same here. Noticed when trying to add the same DB connection on a second Org. The first one (create a while ago) is still working.
Grafana - v6.1.6
Zabbix - 4.2.1
grafana-zabbix - 3.10.2
so i have a temp workaround that seems to work
manually edit the row in the data_source table and edit the json_data column
NOTE: the zabbix api user/pass is in this field so only amend the dbConnectionDatasourceName and
dbConnectionRetentionPolicy fields as required
example (mysql/PGSQL):
{"addThresholds":false,"alerting":false,"alertingMinSeverity":3,"dbConnectionDatasourceId":null,"dbConnectionEnable":true, "dbConnectionDatasourceName":"Zabbix-PostgreSQLTSDB", "dbConnectionRetentionPolicy":"","disableReadOnlyUsersAck":true,"keepCookies":[],"oauthPassThru":false,"password":"xxxxxxxxx","trends":true,"trendsFrom":"7d","trendsRange":"4d","username":"xxxxxxxxx","zabbixVersion":4}
InfluxDB:
{"addThresholds":false,"alerting":false,"alertingMinSeverity":3,"dbConnectionDatasourceId":null,"dbConnectionEnable":true, "dbConnectionDatasourceName":"Zabbix-InfluxDB", "dbConnectionRetentionPolicy":"SomeRetentionPolicy","disableReadOnlyUsersAck":true,"keepCookies":[],"oauthPassThru":false,"password":"xxxxxxxxx","trends":true,"trendsFrom":"7d","trendsRange":"4d","username":"xxxxxxxxx","zabbixVersion":4}
Then you can view the data source in the GUI to verify the change worked just don't save it again via the GUI
Same thing here, env:
Same while testing with InfluxDB (with Effluence):
Zabbix 4.0
Grafana 5.4.2
Plugin 3.10.2
What the feature broken, or just the UI? Thanks for the quick fix! 馃憤