-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Implement new filtering options in graph view #29226
Conversation
7d0f7bb
to
16860e4
Compare
emm.. static checks failed, I thought I run it before without a problem
is it not covering the webserver code? |
OK, so I should actually run |
a52cbe3
to
734ffee
Compare
This chapter explain examples of different ways you can run the checks - including --all-files or --last-commit or just a single pre-commit id. And even links to the "pre-commit.com" for even more options (you can add --ref-from, --ref-to for example). The It's up to you what you run and you need to consciously choose it. The Also if you follow the instructions and use CI runs So eventually - it's you who are empowered here and decide what's best command to use. That's why we explain you the options that you need to understand consequences of and you should choose what you think is best in the situation. But if you have idea how to describe it better - without impacting the freedom of choice and educating users like you on what to do, PRs are most welcome. Maybe my answer will give you better understanding that you will be able to explain better for users like you? |
BTW. Also in some cases the pre-commit "include/exclude" might miss a thing. Maybe what you experienced is just a missing include/exclude in .pre-commit that would trigger the righ set of check when certain files are modified (this might be the reason why it did not run for you before. I do not know which tests failed for you before but if you could track it down and find out if the specification in .pre-commit-config.yml are correct, that would be awesome (and a good PR to contribute if you fix it). |
looks like it times out waiting for CI image
|
Thanks for tackling this @yxiao1996. Left a tardy UI mockup suggestion for consideration in #28847 (comment). |
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.
This is cool!
Although we need to show a user what filters are enabled. Maybe something along these lines?
Also, the button in the modal should be highlighted if that filter is already enabled. Clicking on a highlighted button removes the filter.
We may even need a "Reset" button so users can go back to the full dag
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.
Actually, we don't need the UI part. By the time this launches I plan to update the graph quite a lot and I'll integrate these filtering options.
Well this sounds exciting. Any notes on what is coming? |
Looks amazing! Is it possible to add default limit of dependency depth and operators number for graph view? |
Description
This change implements new task filtering options in graph view:
The current
Filter Upstream
button is replaces by a dropdown button with 3 options:Testing
Tested on local airflow environment, run unit tests by
breeze testing tests --test-type WWW
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
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.