Scopes: Generate new field for default parent node (#108666)
* Generate new field for default parent node * Update ScopeSpec with defaultPath and fix list types. Remove unused field * Update frontend types * Fix some errors * ScopesSelector: Update zod types for spec schema * Promlib: Update Scopes schema --------- Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com>
This commit is contained in:
co-authored by
Matheus Macabu
parent
60fed679c4
commit
eb16fa1642
@@ -80,10 +80,8 @@ type PrometheusQueryProperties struct {
|
||||
type ScopeSpec struct {
|
||||
Name string `json:"name"` // This is the identifier from metadata.name of the scope model.
|
||||
Title string `json:"title"`
|
||||
Type string `json:"type"`
|
||||
Description string `json:"description"`
|
||||
Category string `json:"category"`
|
||||
Filters []ScopeFilter `json:"filters"`
|
||||
DefaultPath []string `json:"defaultPath,omitempty"`
|
||||
Filters []ScopeFilter `json:"filters,omitempty"`
|
||||
}
|
||||
|
||||
// ScopeFilter is a hand copy of the ScopeFilter struct from pkg/apis/scope/v0alpha1/types.go
|
||||
|
||||
Reference in New Issue
Block a user