mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 12:51:40 +02:00
Change listQuery to jobId array, adapt filter pipe
This commit is contained in:
@@ -208,7 +208,13 @@ func buildFilterPresets(query url.Values) map[string]interface{} {
|
||||
}
|
||||
}
|
||||
if query.Get("jobId") != "" {
|
||||
filterPresets["jobId"] = query.Get("jobId")
|
||||
if len(query["jobId"]) == 1 {
|
||||
filterPresets["jobId"] = query.Get("jobId")
|
||||
filterPresets["jobIdMatch"] = "eq"
|
||||
} else {
|
||||
filterPresets["jobId"] = query["jobId"]
|
||||
filterPresets["jobIdMatch"] = "in"
|
||||
}
|
||||
}
|
||||
if query.Get("arrayJobId") != "" {
|
||||
if num, err := strconv.Atoi(query.Get("arrayJobId")); err == nil {
|
||||
|
Reference in New Issue
Block a user