Skip to content

Commit b8f0698

Browse files
committed
[bugfix] deepflow querier datasource, tag from 'SELECT' can't load value options
**Phenomenon and reproduction steps** none **Root cause and solution** none **Impactions** none **Test method** - deepflow querier datsource - choose a tag from 'SELECT' in 'WHERE' - choose '=' operator - open value selector, options loaded auto by api request **Affected branch(es)** - main **Checklist** - [ ] Dependencies update required - [ ] Common bug (similar problem in other repo)
1 parent 6e8a454 commit b8f0698

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deepflow-querier-datasource/src/components/TagValueSelector.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Select, Input, AsyncSelect } from '@grafana/ui'
33
import { LabelItem, SelectOpts } from 'QueryEditor'
44
import _ from 'lodash'
55
import * as querierJs from 'deepflow-sdk-js'
6-
import { genGetTagValuesSql } from 'utils/tools'
6+
import { genGetTagValuesSql, getRealKey } from 'utils/tools'
77
import { getTagMapCache } from 'utils/cache'
88

99
export const INPUT_TAG_VAL_TYPES = ['int', 'ip', 'mac', 'ip_array']
@@ -47,7 +47,8 @@ export const TagValueSelector = (props: {
4747
return []
4848
}
4949

50-
const tagMapItem = getTagMapCache(db, from, basicData.key)
50+
const tagMapItem = getTagMapCache(db, from, getRealKey(basicData))
51+
5152
let opts = []
5253
try {
5354
// @ts-ignore

0 commit comments

Comments
 (0)