mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-20 00:03:21 +00:00
fix: improve filter jobs query
This commit is contained in:
@@ -1150,10 +1150,6 @@ pub fn filter_list_queue_query(
|
||||
"started_at",
|
||||
format!("to_timestamp({} / 1000.0)", dt.timestamp_millis()),
|
||||
);
|
||||
sqlb.and_where_ge(
|
||||
"created_at",
|
||||
format!("to_timestamp({} / 1000.0)", dt.timestamp_millis()),
|
||||
);
|
||||
}
|
||||
if let Some(fs) = &lq.is_flow_step {
|
||||
sqlb.and_where_eq("is_flow_step", fs);
|
||||
@@ -4429,10 +4425,6 @@ pub fn filter_list_completed_query(
|
||||
"started_at",
|
||||
format!("to_timestamp({} / 1000.0)", dt.timestamp_millis()),
|
||||
);
|
||||
sqlb.and_where_ge(
|
||||
"created_at",
|
||||
format!("to_timestamp({} / 1000.0)", dt.timestamp_millis()),
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(dt) = &lq.created_or_started_before {
|
||||
@@ -4446,10 +4438,6 @@ pub fn filter_list_completed_query(
|
||||
"started_at",
|
||||
format!("to_timestamp({} / 1000.0)", dt.timestamp_millis()),
|
||||
);
|
||||
sqlb.and_where_ge(
|
||||
"created_at",
|
||||
format!("to_timestamp({} / 1000.0)", dt.timestamp_millis()),
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(dt) = &lq.created_or_started_after_completed_jobs {
|
||||
@@ -4457,10 +4445,6 @@ pub fn filter_list_completed_query(
|
||||
"started_at",
|
||||
format!("to_timestamp({} / 1000.0)", dt.timestamp_millis()),
|
||||
);
|
||||
sqlb.and_where_ge(
|
||||
"created_at",
|
||||
format!("to_timestamp({} / 1000.0)", dt.timestamp_millis()),
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(sk) = &lq.is_skipped {
|
||||
|
||||
Reference in New Issue
Block a user