Cue: Add 'Join' variable format (#107129)

Add Join variable format
This commit is contained in:
Josh Hunt
2025-06-24 18:13:46 +01:00
committed by GitHub
parent 478f9bf597
commit 498ab849e4
2 changed files with 4 additions and 1 deletions

View File

@ -862,6 +862,7 @@ export enum VariableFormatID {
Glob = 'glob', Glob = 'glob',
HTML = 'html', HTML = 'html',
JSON = 'json', JSON = 'json',
Join = 'join',
Lucene = 'lucene', Lucene = 'lucene',
PercentEncode = 'percentencode', PercentEncode = 'percentencode',
Pipe = 'pipe', Pipe = 'pipe',

View File

@ -3,6 +3,8 @@ package common
// Optional formats for the template variable replace functions // Optional formats for the template variable replace functions
// See also https://grafana.com/docs/grafana/latest/dashboards/variables/variable-syntax/#advanced-variable-format-options // See also https://grafana.com/docs/grafana/latest/dashboards/variables/variable-syntax/#advanced-variable-format-options
VariableFormatID: VariableFormatID:
// Values are joined with a separator
"join" |
// Values are lucene escaped and multi-valued variables generate an OR expression // Values are lucene escaped and multi-valued variables generate an OR expression
"lucene" | "lucene" |
// Raw values // Raw values
@ -36,4 +38,4 @@ VariableFormatID:
// Format variables in their text representation. Example in multi-variable scenario A + B + C. // Format variables in their text representation. Example in multi-variable scenario A + B + C.
"text" | "text" |
// Format variables as URL parameters. Example in multi-variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C. // Format variables as URL parameters. Example in multi-variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C.
"queryparam" @cuetsy(kind="enum",memberNames="Lucene|Raw|Regex|Pipe|Distributed|CSV|HTML|JSON|PercentEncode|UriEncode|SingleQuote|DoubleQuote|SQLString|Date|Glob|Text|QueryParam") "queryparam" @cuetsy(kind="enum",memberNames="Join|Lucene|Raw|Regex|Pipe|Distributed|CSV|HTML|JSON|PercentEncode|UriEncode|SingleQuote|DoubleQuote|SQLString|Date|Glob|Text|QueryParam")