jsjasonseba commented on code in PR #49361:
URL: https://github.com/apache/airflow/pull/49361#discussion_r2047397594
##########
airflow-core/src/airflow/ui/src/queries/useDags.tsx:
##########
@@ -42,16 +42,15 @@ export const useDags = (
const refetchInterval = useAutoRefresh({});
- const { orderBy, ...runsParams } = searchParams;
const {
data: runsData,
error: runsError,
isFetching: isRunsFetching,
isLoading: isRunsLoading,
} = useDagsServiceRecentDagRuns(
{
- ...runsParams,
- dagRunsLimit: 14,
+ ...searchParams,
+ dagRunsLimit: 1,
Review Comment:
Right, forgot about the DagCard. I guess we need to find another way. One
approach I can think of is to fix this from the backend side by using the
dense_rank window function partitioned by dag_id and using the rank to apply
offset and limit based on that. But, to be honest, it's a bit hacky.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]