[search] - filter by starred (#98651)

[search] - filter by starred
This commit is contained in:
Scott Lepper
2025-01-09 16:45:04 -05:00
committed by GitHub
parent 1e9f5367af
commit 07d3bdbe72
16 changed files with 58 additions and 31 deletions
+3 -3
View File
@@ -53,8 +53,8 @@ type IndexableDocument struct {
// The resource key
Key *ResourceKey `json:"key"`
// The resource type ( for federated indexes )
Kind string `json:"kind,omitempty"`
// The k8s name
Name string `json:"name,omitempty"`
// Resource version for the resource (if known)
RV int64 `json:"rv,omitempty"`
@@ -164,8 +164,8 @@ func NewIndexableDocument(key *ResourceKey, rv int64, obj utils.GrafanaMetaAcces
}
doc := &IndexableDocument{
Key: key,
Kind: key.Resource,
RV: rv,
Name: key.Name,
Title: title, // We always want *something* to display
TitleSort: strings.ToLower(title), // Lowercase for case-insensitive sorting
Labels: obj.GetLabels(),