mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-27 16:02:43 +00:00
Merge commit from fork
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
8af484292f
commit
812ff6ea5e
@@ -894,17 +894,18 @@ async fn list_schedule(
|
||||
}
|
||||
if let Some(broad_filter) = &lsq.broad_filter {
|
||||
let pat = format!("%{}%", escape_ilike_pattern(broad_filter));
|
||||
// `binds` fills every `?` in one pass; chained `bind`s would re-scan a `?` in the bound value
|
||||
sqlb.and_where(
|
||||
"(path ILIKE ? OR script_path ILIKE ? OR description ILIKE ? OR summary ILIKE ? OR schedule ILIKE ?)"
|
||||
.bind(&pat).bind(&pat).bind(&pat).bind(&pat).bind(&pat)
|
||||
.binds(&[&pat]),
|
||||
);
|
||||
}
|
||||
if let Some(label) = &lsq.label {
|
||||
for l in label.split(',') {
|
||||
// `binds` fills every `?` in one pass; chained `bind`s would re-scan a `?` in the bound value
|
||||
sqlb.and_where(
|
||||
"(labels @> ARRAY[?] OR folder_labels(workspace_id, path) @> ARRAY[?])"
|
||||
.bind(&l.trim())
|
||||
.bind(&l.trim()),
|
||||
.binds(&[&l.trim()]),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user