Skip to content

Commit

Permalink
Remove references to logical date in new UI (#43974)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi authored Nov 13, 2024
1 parent 267a332 commit 26e8063
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 10 deletions.
5 changes: 0 additions & 5 deletions airflow/ui/src/components/DagRunInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ type Props = {
readonly dataIntervalEnd?: string | null;
readonly dataIntervalStart?: string | null;
readonly endDate?: string | null;
readonly logicalDate?: string | null;
readonly nextDagrunCreateAfter?: string | null;
readonly startDate?: string | null;
};
Expand All @@ -35,7 +34,6 @@ const DagRunInfo = ({
dataIntervalEnd,
dataIntervalStart,
endDate,
logicalDate,
nextDagrunCreateAfter,
startDate,
}: Props) =>
Expand All @@ -54,9 +52,6 @@ const DagRunInfo = ({
Run After: <Time datetime={nextDagrunCreateAfter} />
</Text>
) : undefined}
{Boolean(logicalDate) ? (
<Text>Logical Date: {logicalDate}</Text>
) : undefined}
{Boolean(startDate) ? (
<Text>Start Date: {startDate}</Text>
) : undefined}
Expand Down
1 change: 0 additions & 1 deletion airflow/ui/src/pages/DagsList/Dag/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export const Header = ({
dataIntervalEnd={latestRun.data_interval_end}
dataIntervalStart={latestRun.data_interval_start}
endDate={latestRun.end_date}
logicalDate={latestRun.logical_date}
startDate={latestRun.start_date}
/>
) : undefined}
Expand Down
1 change: 0 additions & 1 deletion airflow/ui/src/pages/DagsList/DagCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export const DagCard = ({ dag }: Props) => {
dataIntervalEnd={latestRun.data_interval_end}
dataIntervalStart={latestRun.data_interval_start}
endDate={latestRun.end_date}
logicalDate={latestRun.logical_date}
startDate={latestRun.start_date}
/>
) : undefined}
Expand Down
1 change: 0 additions & 1 deletion airflow/ui/src/pages/DagsList/DagsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ const columns: Array<ColumnDef<DAGWithLatestDagRunsResponse>> = [
dataIntervalEnd={original.latest_dag_runs[0].data_interval_end}
dataIntervalStart={original.latest_dag_runs[0].data_interval_start}
endDate={original.latest_dag_runs[0].end_date}
logicalDate={original.latest_dag_runs[0].logical_date}
startDate={original.latest_dag_runs[0].start_date}
/>
) : undefined,
Expand Down
2 changes: 1 addition & 1 deletion airflow/ui/src/pages/DagsList/LatestRun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Props = {
export const LatestRun = ({ latestRun }: Props) =>
latestRun ? (
<HStack fontSize="sm">
<Time datetime={latestRun.logical_date} />
<Time datetime={latestRun.start_date} />
<Box
bg={stateColor[latestRun.state]}
borderRadius="50%"
Expand Down
2 changes: 1 addition & 1 deletion airflow/ui/src/pages/DagsList/RecentRuns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const RecentRuns = ({
<Box>
<Text>State: {run.state}</Text>
<Text>
Logical Date: <Time datetime={run.logical_date} />
Start Date: <Time datetime={run.start_date} />
</Text>
<Text>Duration: {run.duration.toFixed(2)}s</Text>
</Box>
Expand Down

0 comments on commit 26e8063

Please sign in to comment.