Search: Return counts for values within an folder/repository (#97534)

This commit is contained in:
Ryan McKinley
2024-12-10 20:37:37 +02:00
committed by GitHub
parent b05d60e5b5
commit ea17b79c09
27 changed files with 1195 additions and 544 deletions
+5 -1
View File
@@ -75,11 +75,15 @@ func (r sqlResourceRequest) Validate() error {
type sqlStatsRequest struct {
sqltemplate.SQLTemplate
Namespace string
Folder string
MinCount int
}
func (r sqlStatsRequest) Validate() error {
return nil // TODO
if r.Folder != "" && r.Namespace == "" {
return fmt.Errorf("folder constraint requires a namespace")
}
return nil
}
type historyPollResponse struct {