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

Add Join variable format
pull/107145/head
Josh Hunt 3 days ago committed by GitHub
parent 478f9bf597
commit 498ab849e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      packages/grafana-schema/src/common/common.gen.ts
  2. 4
      packages/grafana-schema/src/common/variables.cue

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

@ -3,6 +3,8 @@ package common
// Optional formats for the template variable replace functions
// See also https://grafana.com/docs/grafana/latest/dashboards/variables/variable-syntax/#advanced-variable-format-options
VariableFormatID:
// Values are joined with a separator
"join" |
// Values are lucene escaped and multi-valued variables generate an OR expression
"lucene" |
// Raw values
@ -36,4 +38,4 @@ VariableFormatID:
// Format variables in their text representation. Example in multi-variable scenario A + B + C.
"text" |
// 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")

Loading…
Cancel
Save