-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link state icons in dashboard to list page with instances filtered by the state for the given duration. #46968
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea! I've been wanting to make the dashboard link to more parts of the UI
A few comments.
We could probably move all the task instance filters into a separate component. And move TaskInstances
into its own folder.
And if we refactor that. We should probably fix the Search Tasks button to not have the same hotkey as search dags since they conflict in the Dag Details page
airflow/ui/src/pages/Dashboard/HistoricalMetrics/MetricSection.tsx
Outdated
Show resolved
Hide resolved
cc664ed
to
73f474b
Compare
Thanks, moved the filter and search to a separate component by creating
|
Let's do #2 for now. |
We can update the search in another PR. Let's just resolve the conflicts and lgtm |
73f474b
to
20043c5
Compare
I have implemented the second option to disable hotkeys when the task search appears in task instances list inside a dagrun page. On global task instances page the the hotkey will be enabled. Rebased with latest main and fixed conflicts. Thanks. |
On visiting the dashboard home page user could see many failed task instances in the last 24 hours. Quickly identifying the task instances involves user going to the dags page, task instances tab and then selecting failed state to sort by start_date/end_date to get recent failures. With this PR by clicking on the state icon in metrics section the respective list page in this case task instance is rendered and the state is filtered by "failed" and start_date/end_date passed as query parameters to get the task instances failed in last 24 hours.
It seems
airflow/ui/src/pages/TaskInstances.tsx
has become longer than 250 lines. I tried refactoring by moving some query parameter fields to constants but it's still at 253. I have disabled the eslint rule for now to this page. Any suggestions welcome.