Re: [PR] Add Task Details page [airflow]
bbovenzi merged PR #44828: URL: https://github.com/apache/airflow/pull/44828 -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [PR] Add Task Details page [airflow]
bbovenzi commented on PR #44828: URL: https://github.com/apache/airflow/pull/44828#issuecomment-2536695859 Ok I decided to make the list of TIs only ever link to a single TI and not confuse users with links to Task or Dag Run too. I also turned "Latest Run" and "Latest Instance" fields on the Dag and Task cards into links. -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [PR] Add Task Details page [airflow]
pierrejeambrun commented on code in PR #44828: URL: https://github.com/apache/airflow/pull/44828#discussion_r1880187909 ## airflow/ui/src/pages/Task/Instances.tsx: ## @@ -0,0 +1,141 @@ +/*! + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import { Box, Link } from "@chakra-ui/react"; +import type { ColumnDef } from "@tanstack/react-table"; +import dayjs from "dayjs"; +import { Link as RouterLink, useParams } from "react-router-dom"; + +import { + useTaskInstanceServiceGetTaskInstances, + useTaskServiceGetTask, +} from "openapi/queries"; +import type { TaskInstanceResponse } from "openapi/requests/types.gen"; +import { DataTable } from "src/components/DataTable"; +import { useTableURLState } from "src/components/DataTable/useTableUrlState"; +import { ErrorAlert } from "src/components/ErrorAlert"; +import Time from "src/components/Time"; +import { Status } from "src/components/ui"; + +const columns = ( + isMapped?: boolean, +): Array> => [ + { +accessorKey: "start_date", +cell: ({ row: { original } }) => ( + + + + + +), +header: "Start Date", + }, + { +accessorKey: "end_date", +cell: ({ row: { original } }) => , +header: "End Date", + }, + { +accessorKey: "state", +cell: ({ + row: { +original: { state }, + }, +}) => {state}, +header: () => "State", + }, + { +accessorKey: "dag_run_id", Review Comment: dag_run_id is not a sortable key. This will yield an error. -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[PR] Add Task Details page [airflow]
bbovenzi opened a new pull request, #44828: URL: https://github.com/apache/airflow/pull/44828 Add a Task Details page in order to see a single task across many runs. I could use some help on deciding when to link to what level of dag/run/task/instance below: Page with a few basic details in the header and listing only its own tasks. Start date links to the task instance while dag run id links to the dag run https://github.com/user-attachments/assets/4b520fd4-3123-474b-b5d8-f1cdfa780780";> Dag Run details page listing its task instances. Clicking on a task name goes to a task page while clicking start_date goes to the task instance page. https://github.com/user-attachments/assets/b989efe1-b71c-4ddf-a148-9e1fb52a5f78";> --- **^ Add meaningful description above** Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)** for more information. In case of fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed. In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x). In case of backwards incompatible changes please leave a note in a newsfragment file, named `{pr_number}.significant.rst` or `{issue_number}.significant.rst`, in [newsfragments](https://github.com/apache/airflow/tree/main/newsfragments). -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org