Skip to content

Commit

Permalink
Use execution_date= param as a backup to base date for grid view (#37018
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bbovenzi authored Jan 26, 2024
1 parent edce535 commit fee7e33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion airflow/www/static/js/dag/useFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export interface FilterHookReturn extends UtilFunctions {

// Params names
export const BASE_DATE_PARAM = "base_date";
export const EXECUTION_DATE_PARAM = "execution_date";
export const NUM_RUNS_PARAM = "num_runs";
export const RUN_TYPE_PARAM = "run_type";
export const RUN_STATE_PARAM = "run_state";
Expand All @@ -93,7 +94,10 @@ const useFilters = (): FilterHookReturn => {
? searchParams.get(FILTER_DOWNSTREAM_PARAM) === "true"
: undefined;

const baseDate = searchParams.get(BASE_DATE_PARAM) || now;
const baseDate =
searchParams.get(BASE_DATE_PARAM) ||
searchParams.get(EXECUTION_DATE_PARAM) ||
now;
const numRuns =
searchParams.get(NUM_RUNS_PARAM) || defaultDagRunDisplayNumber.toString();

Expand Down

0 comments on commit fee7e33

Please sign in to comment.