Scopes: Change JS linkID to linkId (#87831)

This commit is contained in:
Kyle Brandt
2024-05-14 11:01:21 -04:00
committed by GitHub
parent b07b927a94
commit ea1845edbe
4 changed files with 16 additions and 14 deletions

View File

@@ -111,7 +111,7 @@ type ScopeNodeSpec struct {
Description string `json:"description,omitempty"`
LinkType LinkType `json:"linkType,omitempty"` // scope (later more things)
LinkID string `json:"linkID,omitempty"` // the k8s name
LinkID string `json:"linkId,omitempty"` // the k8s name
// ?? should this be a slice of links
}
@@ -139,5 +139,5 @@ type TreeItem struct {
Description string `json:"description,omitempty"`
LinkType LinkType `json:"linkType,omitempty"` // scope (later more things)
LinkID string `json:"linkID,omitempty"` // the k8s name
LinkID string `json:"linkId,omitempty"` // the k8s name
}

View File

@@ -397,7 +397,7 @@ func schema_pkg_apis_scope_v0alpha1_ScopeNodeSpec(ref common.ReferenceCallback)
Enum: []interface{}{"scope"},
},
},
"linkID": {
"linkId": {
SchemaProps: spec.SchemaProps{
Description: "scope (later more things)",
Type: []string{"string"},
@@ -514,7 +514,7 @@ func schema_pkg_apis_scope_v0alpha1_TreeItem(ref common.ReferenceCallback) commo
Enum: []interface{}{"scope"},
},
},
"linkID": {
"linkId": {
SchemaProps: spec.SchemaProps{
Description: "scope (later more things)",
Type: []string{"string"},

View File

@@ -1 +1,3 @@
API rule violation: names_match,github.com/grafana/grafana/pkg/apis/scope/v0alpha1,ScopeNodeSpec,LinkID
API rule violation: names_match,github.com/grafana/grafana/pkg/apis/scope/v0alpha1,TreeItem,LinkID
API rule violation: names_match,github.com/grafana/grafana/pkg/apis/scope/v0alpha1,TreeItem,NodeID