mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Transformations: Add (base field name) to Join transformer (#79192)
This commit is contained in:
parent
cf164145bf
commit
393711c3a1
@ -11,9 +11,9 @@ import {
|
||||
import { JoinByFieldOptions, JoinMode } from '@grafana/data/src/transformations/transformers/joinByField';
|
||||
import { getTemplateSrv } from '@grafana/runtime';
|
||||
import { Select, InlineFieldRow, InlineField } from '@grafana/ui';
|
||||
import { useFieldDisplayNames, useSelectOptions } from '@grafana/ui/src/components/MatchersUI/utils';
|
||||
|
||||
import { getTransformationContent } from '../docs/getTransformationContent';
|
||||
import { useAllFieldNamesFromDataFrames } from '../utils';
|
||||
|
||||
const modes = [
|
||||
{
|
||||
@ -32,7 +32,9 @@ const modes = [
|
||||
];
|
||||
|
||||
export function SeriesToFieldsTransformerEditor({ input, options, onChange }: TransformerUIProps<JoinByFieldOptions>) {
|
||||
const fieldNames = useAllFieldNamesFromDataFrames(input).map((item: string) => ({ label: item, value: item }));
|
||||
const names = useFieldDisplayNames(input);
|
||||
const fieldNames = useSelectOptions(names);
|
||||
|
||||
const variables = getTemplateSrv()
|
||||
.getVariables()
|
||||
.map((v) => {
|
||||
|
Loading…
Reference in New Issue
Block a user