Feat: Adding task-level filters to DAG view in graph tab#64271
Feat: Adding task-level filters to DAG view in graph tab#64271itayweb wants to merge 26 commits intoapache:mainfrom
Conversation
|
The other filters in this dropdown are backend. So let's not mix the two. I wonder if this would be better to detect the ctrl-f hotkey, give these search params and a user can tab through the matching tasks |
Oh I see.. do you prefer I'll move the new filters I've added to the options button? |
I don't want to throw more in the setting dropdown. I think we need to rethink the UX given all the features to navigate both the grid, gantt and graph are now. This could be its own Search Icon button perhaps? And yes, if you already focused on the graph view then ctrl-f will also open that search |
Done 👍 |
bbovenzi
left a comment
There was a problem hiding this comment.
Can you also update the screenshot to reflect the latest changes? Also, I'd love to see a video or gif.
airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/components/GraphTaskFilters.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/layouts/Details/Graph/useGraphFilteredNodes.ts
Show resolved
Hide resolved
…ions, moved new filters to components folder
bbovenzi
left a comment
There was a problem hiding this comment.
A bunch of small edits. But the major change I would like to see is to reduce the number of times we are walking through the dag structure's nested NodeResponse. We already do it for useOpenGroups. The best approach is probably to rename that useGroups() and have that hook handle all of these actions, because then we could have the same functionality happen in the grid view too.
airflow-core/src/airflow/ui/src/components/GraphTaskFilters.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/components/GraphTaskFilters.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/components/GraphTaskFilters.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/components/GraphTaskFilters.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/components/GraphTaskFilters.tsx
Outdated
Show resolved
Hide resolved
… converting useOpenGroups to useGroups for reuse and more
|
Actually the performance looks fine for now while we need to do virtualization for the graph view. In manual testing, the only issue I noticed was that the filters were also filtering the task instances list on the right hand side of the page. We should make the search param keys different. Maybe later we can make this all integrated but that is much more work. |
Adding new task-level filters to use on DAG view graph tab
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code following the guidelines