Datasource settings: Add deprecation notice for database field (#58647)

* Datasource settings: Add deprecation notice for database field

* Revert store.go change
This commit is contained in:
Zoltán Bedi 2022-12-02 11:40:33 +01:00 committed by GitHub
parent 1c5a3a7d2c
commit 5712b05330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -558,6 +558,10 @@ export interface DataSourceSettings<T extends DataSourceJsonData = DataSourceJso
access: string;
url: string;
user: string;
/**
* @deprecated -- use jsonData to store information related to database.
* This field should only be used by Elasticsearch and Influxdb.
*/
database: string;
basicAuth: boolean;
basicAuthUser: string;
@ -586,6 +590,10 @@ export interface DataSourceInstanceSettings<T extends DataSourceJsonData = DataS
jsonData: T;
username?: string;
password?: string; // when access is direct, for some legacy datasources
/**
* @deprecated -- use jsonData to store information related to database.
* This field should only be used by Elasticsearch and Influxdb.
*/
database?: string;
isDefault?: boolean;
access: 'direct' | 'proxy'; // Currently we support 2 options - direct (browser) and proxy (server)