Skip to content

Commit

Permalink
Use execution_date= param as a backup to base date for grid view (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi authored and amoghrajesh committed Jan 30, 2024
1 parent 817c5a4 commit 498c3de
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 498c3de

Please sign in to comment.