From 3e9de95d3f0b55e86611f4561fa7fd32496e444f Mon Sep 17 00:00:00 2001 From: Christopher Henn Date: Wed, 20 Jun 2018 09:17:12 -0700 Subject: [PATCH] Remove unused "query" template type --- chronograf.go | 2 +- server/templates.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chronograf.go b/chronograf.go index 1fed8dbbb..b26c3bea0 100644 --- a/chronograf.go +++ b/chronograf.go @@ -177,7 +177,7 @@ type TemplateID string type Template struct { TemplateVar ID TemplateID `json:"id"` // ID is the unique ID associated with this template - Type string `json:"type"` // Type can be fieldKeys, tagKeys, tagValues, CSV, constant, query, measurements, databases, map, influxql + Type string `json:"type"` // Type can be fieldKeys, tagKeys, tagValues, CSV, constant, measurements, databases, map, influxql Label string `json:"label"` // Label is a user-facing description of the Template Query *TemplateQuery `json:"query,omitempty"` // Query is used to generate the choices for a template } diff --git a/server/templates.go b/server/templates.go index 41109b35d..6f158ac3c 100644 --- a/server/templates.go +++ b/server/templates.go @@ -15,7 +15,7 @@ func ValidTemplateRequest(template *chronograf.Template) error { switch template.Type { default: return fmt.Errorf("Unknown template type %s", template.Type) - case "query", "constant", "csv", "fieldKeys", "tagKeys", "tagValues", "measurements", "databases", "map", "influxql": + case "constant", "csv", "fieldKeys", "tagKeys", "tagValues", "measurements", "databases", "map", "influxql": } for _, v := range template.Values {