This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new cc8bac9b474 fix ui to use backfill ui endpoint (#49434)
cc8bac9b474 is described below
commit cc8bac9b4743c71f17836101c6d0577ffd8ab1cd
Author: Rahul Vats <[email protected]>
AuthorDate: Fri Apr 18 14:14:26 2025 +0530
fix ui to use backfill ui endpoint (#49434)
---
.../src/airflow/ui/src/components/Banner/BackfillBanner.tsx | 8 ++++----
airflow-core/src/airflow/ui/src/pages/Dag/Backfills/Backfills.tsx | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git
a/airflow-core/src/airflow/ui/src/components/Banner/BackfillBanner.tsx
b/airflow-core/src/airflow/ui/src/components/Banner/BackfillBanner.tsx
index 97714ebe756..ee99cb7d275 100644
--- a/airflow-core/src/airflow/ui/src/components/Banner/BackfillBanner.tsx
+++ b/airflow-core/src/airflow/ui/src/components/Banner/BackfillBanner.tsx
@@ -22,8 +22,8 @@ import { RiArrowGoBackFill } from "react-icons/ri";
import {
useBackfillServiceCancelBackfill,
- useBackfillServiceListBackfills,
- useBackfillServiceListBackfillsKey,
+ useBackfillServiceListBackfills1,
+ useBackfillServiceListBackfills1Key,
useBackfillServicePauseBackfill,
useBackfillServiceUnpauseBackfill,
} from "openapi/queries";
@@ -47,12 +47,12 @@ const buttonProps = {
const onSuccess = async () => {
await queryClient.invalidateQueries({
- queryKey: [useBackfillServiceListBackfillsKey],
+ queryKey: [useBackfillServiceListBackfills1Key],
});
};
const BackfillBanner = ({ dagId }: Props) => {
- const { data, isLoading } = useBackfillServiceListBackfills({
+ const { data, isLoading } = useBackfillServiceListBackfills1({
dagId,
});
const [backfill] = data?.backfills.filter((bf) => bf.completed_at === null)
?? [];
diff --git a/airflow-core/src/airflow/ui/src/pages/Dag/Backfills/Backfills.tsx
b/airflow-core/src/airflow/ui/src/pages/Dag/Backfills/Backfills.tsx
index c00c13af2a1..a84cb6a8dce 100644
--- a/airflow-core/src/airflow/ui/src/pages/Dag/Backfills/Backfills.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Dag/Backfills/Backfills.tsx
@@ -20,7 +20,7 @@ import { Box, Heading, Text } from "@chakra-ui/react";
import type { ColumnDef } from "@tanstack/react-table";
import { useParams } from "react-router-dom";
-import { useBackfillServiceListBackfills } from "openapi/queries";
+import { useBackfillServiceListBackfills1 } from "openapi/queries";
import type { BackfillResponse } from "openapi/requests/types.gen";
import { DataTable } from "src/components/DataTable";
import { useTableURLState } from "src/components/DataTable/useTableUrlState";
@@ -109,7 +109,7 @@ export const Backfills = () => {
const { dagId = "" } = useParams();
- const { data, error, isFetching, isLoading } =
useBackfillServiceListBackfills({
+ const { data, error, isFetching, isLoading } =
useBackfillServiceListBackfills1({
dagId,
limit: pagination.pageSize,
offset: pagination.pageIndex * pagination.pageSize,