Repository navigation
Add Audit Log View to Dag View - #20733
Conversation
bbovenzi
left a comment
There was a problem hiding this comment.
Nice work! I left a few comments on some improvements to make here and there.
Also, could you provide an example of an event that has comments in the screenshots?
Co-authored-by: Sam Wheating <[email protected]>
Co-authored-by: Sam Wheating <[email protected]>
Co-authored-by: Sam Wheating <[email protected]>
|
Thank you both for your review @SamWheating and @bbovenzi . Addressed the comments . Waiting on the build to run, testing to see and will reach out again after for a last review! |
|
I was thinking, should we even have any of this in the config? I think a better UX would be to show all possible events on the page and allow a user to check/uncheck each as they wish. Therefore on the page, a user immediately knows which types of events they can see instead of having to look at the config. |
|
Hey @SamWheating @bbovenzi I think this PR is officially complete for what it set out to complete. If you don't mind taking a look I fixed the tests/checks. Next steps will be described in followup. Is slack or email best to do that conversation? |
Co-authored-by: Sam Wheating <[email protected]>
Co-authored-by: Sam Wheating <[email protected]>
Co-authored-by: Sam Wheating <[email protected]>
Co-authored-by: Sam Wheating <[email protected]>
Co-authored-by: Brent Bovenzi <[email protected]>
Co-authored-by: Brent Bovenzi <[email protected]>
|
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
|
I have tried everything I can to get the docker-compose quick start test to complete successfully. I see other PRs also failing similarly. |
Yeah. Smth wrong with it - I will take a look today to see if I can fix it. |
|
thank you @potiuk ! Let me know if I can help too. Would be interested but need to learn about git actions a bit more to help here |
|
Finally thank you @potiuk it is good :) Do I need to do anything else for this to be merged? |
Nope. Just merged! Great job. Audit log view has been a highly requested feature ! |
|
Thank you so much! Glad can help and had a lot of help from Sam + Brent here. I'll start the discussion in the slack about the improvements discussed. |

A common use case for our users is that they want to know exactly what actions pertain to their dags. This is partially available because Airflow as a system allows for event logging, but these event logs have a ton of noise. Each organization may only care about certain events only - maybe some want only POST events, some could want all events minus system generated events, others could want to see them all. The fact is, this is all available but to present this data could be useful if we have it just on the dag view level. In this case, we filter the view to just display events for the specific dag of course, and we provide in the airflow.cfg a way to only filter based on events they care for. The screenshots below capture this, and how can interact with this.
In this view too, there is a link back to the Log View which will have all events. We simply put the events of the last X days (default it to 31 in the cfg) but we can change this behavior if the open source community doesn't like it. It is primarily meant to allow users to know who cleared the dag, or marked a date or anything of that sort recently. Actions that would directly affect the run of the workflow.
First screenshots are just of all the records, but later on we use the below settigns to remove the excluded events to show they will not be displayed either.
This PR is ready for merging as it doesn't touch any new major components, but any concerns can be discussed and altered.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.