mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Variables: Improves inspection performance and unknown filtering (#31811)
* Refactor: moves inspect calculation to Redux * Refactor: adds valid filters and tests
This commit is contained in:
@@ -4,12 +4,14 @@ import { variableEditorReducer, VariableEditorState } from '../editor/reducer';
|
||||
import { variablesReducer } from './variablesReducer';
|
||||
import { VariableModel } from '../types';
|
||||
import { transactionReducer, TransactionState } from './transactionReducer';
|
||||
import { variableInspectReducer, VariableInspectState } from '../inspect/reducer';
|
||||
|
||||
export interface TemplatingState {
|
||||
variables: Record<string, VariableModel>;
|
||||
optionsPicker: OptionsPickerState;
|
||||
editor: VariableEditorState;
|
||||
transaction: TransactionState;
|
||||
inspect: VariableInspectState;
|
||||
}
|
||||
|
||||
export const templatingReducers = combineReducers({
|
||||
@@ -17,6 +19,7 @@ export const templatingReducers = combineReducers({
|
||||
variables: variablesReducer,
|
||||
optionsPicker: optionsPickerReducer,
|
||||
transaction: transactionReducer,
|
||||
inspect: variableInspectReducer,
|
||||
});
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user