File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,10 @@ export const QueryBuilderProvider: FC = ({children}) => {
337337 _source += `from(bucket: "${ data . buckets [ 0 ] . name } ")`
338338 }
339339
340+ const limit = isFlagEnabled ( 'increasedMeasurmentTagLimit' )
341+ ? EXTENDED_TAG_LIMIT
342+ : DEFAULT_TAG_LIMIT
343+
340344 // TODO: Use the `v1.tagValues` function from the Flux standard library once
341345 // this issue is resolved: https://github.com/influxdata/flux/issues/1071
342346 query (
@@ -348,7 +352,7 @@ export const QueryBuilderProvider: FC = ({children}) => {
348352 |> distinct(column: "${
349353 cards [ idx ] . keys . selected [ 0 ]
350354 } ")${ searchString }
351- |> limit(n: ${ DEFAULT_TAG_LIMIT } )
355+ |> limit(n: ${ limit } )
352356 |> sort()` ,
353357 scope
354358 )
Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ export function findValues({
100100 ? ''
101101 : `\n |> filter(fn: (r) => r._value =~ regexp.compile(v: "(?i:" + regexp.quoteMeta(v: "${ searchTerm } ") + ")"))`
102102
103+ const adjustedLimit = isFlagEnabled ( 'increasedMeasurmentTagLimit' )
104+ ? EXTENDED_LIMIT
105+ : limit
106+
103107 // TODO: Use the `v1.tagValues` function from the Flux standard library once
104108 // this issue is resolved: https://github.com/influxdata/flux/issues/1071
105109 const query = `import "regexp"
@@ -110,7 +114,7 @@ export function findValues({
110114 |> keep(columns: ["${ key } "])
111115 |> group()
112116 |> distinct(column: "${ key } ")${ searchFilter }
113- |> limit(n: ${ limit } )
117+ |> limit(n: ${ adjustedLimit } )
114118 |> sort()`
115119
116120 event ( 'runQuery' , {
You can’t perform that action at this time.
0 commit comments