-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Add global events page to browse along with support to display only events for the dag. #43793
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
Conversation
bbovenzi
left a 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.
I will work on a fix for the scroll state and search params in a separate PR.
For extra you can try to use the renderSubComponent field on DataTable. But I'm not sure yet if that will be a great UX
…vents for the dag.
…e to eslint rule.
3290cf6 to
8bfbb32
Compare
|
Thanks @bbovenzi , I rebased the PR with latest main branch changes with fixes to scrolling and default state. Currently, clicking on events goes to I guess maybe the link to events page in browse menu could be changed to https://reactrouter.com/en/main/routers/create-browser-router |
I will skip rendering extra column in this PR since this might have more work on design and discussion. I will create an issue to track this. Thanks. |
Oh ok so that's still a bug. If its manually set to be empty then it shouldn't fall back on the default. Let me fix that. |
bbovenzi
left a 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 a great start. We'll continue to refine this page in future PRs:
- fixing default table sort
- adding filters
- adding extras
…vents for the dag. (apache#43793) * Add global events page to browse along with support to display only events for the dag. * Move column definition to a separate function outside of component due to eslint rule.
This adds support to display all events under browse page. This also adds support to display events only related to the dag under events tab in dag details which is basically filter by dag_id in the API when dag_id is present in the URL. The events per dag skips dag_id column which is redundant.
Add support to filter by when, event_log_id which needs to be replaced in the backend before querying. This was done in the legacy API connexion code and the same support is added here
airflow/airflow/api_connexion/endpoints/event_log_endpoint.py
Line 78 in e502065
Notes for self and review :
<Time />cannot be constructed forwhencolumn but I have seen this pattern used elsewhere and also previously when dags list page only had timestamp for next/last dagrun as<Time />whenin descending manner by default to display latest events first. I have passed it touseTableURLStateas default yet somehow this is not working.No Eventss foundwhere Events has a double s which needs to be fixed.Related
#43704
#43705
Screenshots