QueryLibrary: Added IsLocked field (#105634)
* QueryLibrary: Added IsLocked field * Updated openapi * Update backend field description
This commit is contained in:
@@ -17,6 +17,10 @@ type QueryTemplate struct {
|
||||
// Toggle for visible/hidden queries
|
||||
IsVisible bool `json:"isVisible,omitempty"`
|
||||
|
||||
// Whether the query is locked and cannot be edited
|
||||
// Note: This is purely for UI display purposes and not for security
|
||||
IsLocked bool `json:"isLocked,omitempty"`
|
||||
|
||||
// The variables that can be used to render
|
||||
// +listType=map
|
||||
// +listMapKey=key
|
||||
|
||||
@@ -409,6 +409,13 @@ func schema_apis_query_v0alpha1_template_QueryTemplate(ref common.ReferenceCallb
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"isLocked": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Whether the query is locked and cannot be edited Note: This is purely for UI display purposes and not for security",
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"vars": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
|
||||
Reference in New Issue
Block a user