-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Add task instance state and name filter to task instances tab in a dagrun #45215
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
Add task instance state and name filter to task instances tab in a dagrun #45215
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.
Looks good! Just a small nit in my view. Else: LGTM
3a2fe8f
to
fe68b6f
Compare
Note: As PR #45312 has been merged, the code formatting rules have changed for new UI. Please rebase and re-run pre-commit checks to ensure that formatting in folder airflow/ui is adjusted. |
fe68b6f
to
e2b6060
Compare
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.
Tested working as expected and code looks good overall.
A few suggestion before merging.
67746c6
to
c67eec9
Compare
Lgmt looks like we need to rebase though |
c67eec9
to
2f6fd16
Compare
@bbovenzi Thanks, rebased and fixed conflicts. |
…grun (apache#45215) * Add state filter to task instances tab in dagrun page. * Add tasks search in task instances page. * Make dropdown clearable. * Rebase and run format for line number rule. * Add support for multiple state selection. * Support no status for filtering. * Fix rebase errors.
…grun (apache#45215) * Add state filter to task instances tab in dagrun page. * Add tasks search in task instances page. * Make dropdown clearable. * Rebase and run format for line number rule. * Add support for multiple state selection. * Support no status for filtering. * Fix rebase errors.
…grun (apache#45215) * Add state filter to task instances tab in dagrun page. * Add tasks search in task instances page. * Make dropdown clearable. * Rebase and run format for line number rule. * Add support for multiple state selection. * Support no status for filtering. * Fix rebase errors.
A dagrun might have a lot of task instances that are paginated. This PR adds filters to filter by state e.g. failed task instances which is similar to the filter in dagrun page now. I have also added search by task_id or task_display_name so that users can quickly get to the required task instance in a paginated setting. Slightly related issues for grid view to search by name #32239 . This also updates the URLs so that it's shareable.
Notes for reviewer and self :
searchBar
component but doesn't need advanced search as of now as it's not implemented and not useful here where search by task name is only needed. This can be added in future and thehideAdvanced
part can be removed.Screenshot :