QueryLibrary: Added IsVisibility property to Query data (#104579)

* QueryLibrary: Added IsVisibility property to Query data

* Added asserts for unit test

* generated openapi changes
This commit is contained in:
Collin Fingar
2025-05-09 12:46:19 -04:00
committed by GitHub
parent e2cb3e74f3
commit 6ebf49a383
4 changed files with 89 additions and 0 deletions
@@ -14,6 +14,9 @@ type QueryTemplate struct {
// Longer description for why it is interesting
Description string `json:"description,omitempty"`
// Toggle for visible/hidden queries
IsVisible bool `json:"isVisible,omitempty"`
// The variables that can be used to render
// +listType=map
// +listMapKey=key
@@ -400,6 +400,13 @@ func schema_apis_query_v0alpha1_template_QueryTemplate(ref common.ReferenceCallb
Format: "",
},
},
"isVisible": {
SchemaProps: spec.SchemaProps{
Description: "Toggle for visible/hidden queries",
Type: []string{"boolean"},
Format: "",
},
},
"vars": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{