mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
FieldOverides: apply field overrides based on configuration (#22047)
* test apply * test apply * Move standard field config editor registry to grafana-data * merge master * Apply field config defaults * Make field and dataFrameIndex optional on on FieldOverrideContext * Apply custom field config overrides * Gauge - make sure thresholds are set * Move series and field scoped vars calculation * Enable template variables interpolation in title fields * Expose standars field configs from grafana ui via function * Add missing option to the config for the min value to be derived from field values * Fix ts issue Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
co-authored by
Dominik Prokop
parent
824f7362d4
commit
2c9b321c48
+3
-1
@@ -25,7 +25,7 @@ import angular from 'angular';
|
||||
import config from 'app/core/config';
|
||||
// @ts-ignore ignoring this for now, otherwise we would have to extend _ interface with move
|
||||
import _ from 'lodash';
|
||||
import { AppEvents, setLocale, setMarkdownOptions } from '@grafana/data';
|
||||
import { AppEvents, setLocale, setMarkdownOptions, standardFieldConfigEditorRegistry } from '@grafana/data';
|
||||
import appEvents from 'app/core/app_events';
|
||||
import { addClassIfNoOverlayScrollbar } from 'app/core/utils/scrollbar';
|
||||
import { checkBrowserCompatibility } from 'app/core/utils/browser';
|
||||
@@ -40,6 +40,7 @@ import { PerformanceBackend } from './core/services/echo/backends/PerformanceBac
|
||||
|
||||
import 'app/routes/GrafanaCtrl';
|
||||
import 'app/features/all';
|
||||
import { getStandardFieldConfigs } from '@grafana/ui';
|
||||
|
||||
// add move to lodash for backward compatabiltiy
|
||||
// @ts-ignore
|
||||
@@ -82,6 +83,7 @@ export class GrafanaApp {
|
||||
setLocale(config.bootData.user.locale);
|
||||
|
||||
setMarkdownOptions({ sanitize: !config.disableSanitizeHtml });
|
||||
standardFieldConfigEditorRegistry.setInit(getStandardFieldConfigs);
|
||||
|
||||
app.config(
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user