InfluxDB: deprecate direct browser access in data source (#35105)

* influxdb: deperacate direct browser-access

* better docs-formatting

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
Gábor Farkas
2021-06-02 16:37:16 +02:00
committed by GitHub
parent 5d41e83896
commit 89fc92947c
2 changed files with 8 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ import {
onUpdateDatasourceSecureJsonDataOption,
updateDatasourcePluginJsonDataOption,
} from '@grafana/data';
import { DataSourceHttpSettings, InfoBox, InlineField, InlineFormLabel, LegacyForms } from '@grafana/ui';
import { Alert, DataSourceHttpSettings, InfoBox, InlineField, InlineFormLabel, LegacyForms } from '@grafana/ui';
const { Select, Input, SecretFormField } = LegacyForms;
import { InfluxOptions, InfluxSecureJsonData, InfluxVersion } from '../types';
@@ -279,6 +279,12 @@ export class ConfigEditor extends PureComponent<Props, State> {
</InfoBox>
)}
{options.access === 'direct' && (
<Alert title="Deprecation Notice" severity="warning">
Browser access mode in the InfluxDB datasource is deprecated and will be removed in a future release.
</Alert>
)}
<DataSourceHttpSettings
showAccessOptions={true}
dataSourceConfig={options}